PHP.mk документација
Schema::existsInDatabase
Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.
Патека
mysql-xdevapi-schema.existsindatabase.php
Локална патека за оваа страница.
Извор
php.net/manual/en
Оригиналниот HTML се реупотребува и локално се стилизира.
Режим
Прокси + превод во позадина
Кодовите, табелите и белешките остануваат читливи во истиот тек.
Референца
mysql-xdevapi-schema.existsindatabase.php
Schema::existsInDatabase
Референца за `mysql-xdevapi-schema.existsindatabase.php` со подобрена типографија и навигација.
Schema::existsInDatabase
(Нема достапни информации за верзијата, можеби е само во Git)
Schema::existsInDatabase — Check if exists in database
= NULL
Checks if the current object (schema, table, collection, or view) exists in the schema object.
Параметри
Оваа функција нема параметри.
Вратени вредности
true if the schema, table, collection, or view still exists in the schema, else false.
Примери
Пример #1 mysql_xdevapi\Schema::existsInDatabase() example
<?php
$session = mysql_xdevapi\getSession("mysqlx://user:password@localhost");
$session->sql("DROP DATABASE IF EXISTS food")->execute();
$session->sql("CREATE DATABASE food")->execute();
$session->sql("CREATE TABLE food.fruit(name text, rating text)")->execute();
$schema = $session->getSchema("food");
$schema->createCollection("trees");
// ...
$trees = $schema->getCollection("trees");
// ...
// Is this collection still in the database (schema)?
if ($trees->existsInDatabase()) {
echo "Yes, the 'trees' collection is still present.";
}Горниот пример ќе прикаже нешто слично на:
Yes, the 'trees' collection is still present.
Белешки од корисници
Нема белешки од корисници за оваа страница.