« RowResult::getWarningsCount
Schema::__construct »
PHP Manual
Mysql_xdevapi
Classe Schema
Classe Schema
(PECL mysql-xdevapi >= 8.0.11)
Introduction
Synopsis de la classe
class
mysql_xdevapi\Schema
implements
mysql_xdevapi\DatabaseObject
{
/* Propriétés */
public
$
name
;
/* Méthodes */
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
}
Propriétés
name
Sommaire
Schema::__construct
— Constructeur de schema
Schema::createCollection
— Ajoute une collection au schéma
Schema::dropCollection
— Supprime une collection du schéma
Schema::existsInDatabase
— Vérifie si l'objet existe dans la base de données
Schema::getCollection
— Renvoie une collection du schéma
Schema::getCollectionAsTable
— Renvoie une collection en tant qu'objet Table
Schema::getCollections
— Renvoie toutes les collections du schéma
Schema::getName
— Renvoie le nom du schéma
Schema::getSession
— Renvoie la session du schéma
Schema::getTable
— Renvoie la table du schéma
Schema::getTables
— Renvoie les tables du schéma