« RowResult::getWarningsCount
Schema::__construct »
PHP Manual
Mysql_xdevapi
Класс Schema
Класс Schema
(PECL mysql-xdevapi >= 8.0.11)
Введение
Обзор классов
class
mysql_xdevapi\Schema
implements
mysql_xdevapi\DatabaseObject
{
/* Свойства */
public
$
name
;
/* Методы */
public
createCollection
(
string
$name
,
string
$validate
= ?
):
mysql_xdevapi\Collection
public
dropCollection
(
string
$collection_name
):
bool
public
existsInDatabase
():
bool
public
getCollection
(
string
$name
):
mysql_xdevapi\Collection
public
getCollectionAsTable
(
string
$name
):
mysql_xdevapi\Table
public
getCollections
():
array
public
getName
():
string
public
getSession
():
mysql_xdevapi\Session
public
getTable
(
string
$name
):
mysql_xdevapi\Table
public
getTables
():
array
}
Свойства
name
Содержание
Schema::__construct
— Конструктор
Schema::createCollection
— Добавить коллекцию в схему
Schema::dropCollection
— Удалить коллекции из схемы
Schema::existsInDatabase
— Проверить, существует ли в базе данных
Schema::getCollection
— Получить коллекцию из схемы
Schema::getCollectionAsTable
— Получить объект таблицы коллекции
Schema::getCollections
— Получить все коллекции схемы
Schema::getName
— Получить имя схемы
Schema::getSession
— Получить сессию схемы
Schema::getTable
— Получить таблицу схемы
Schema::getTables
— Получить таблицы схемы