Schema class
(PECL mysql-xdevapi >= 8.0.11)
简介
类摘要
mysql_xdevapi\Schema
implements mysql_xdevapi\DatabaseObject {
/* 属性 */
public
$name ;
/* 方法 */
public
createCollection (
string
$name
) :
mysql_xdevapi\Collection
public
dropCollection (
string
$collection_name
) :
bool
public
existsInDatabase (
void ) :
bool
public
getCollection (
string
$name
) :
mysql_xdevapi\Collection
public
getCollectionAsTable (
string
$name
) :
mysql_xdevapi\Table
public
getCollections (
void ) :
array
public
getName (
void ) :
string
public
getSession (
void ) :
mysql_xdevapi\Session
public
getTable (
string
$name
) :
mysql_xdevapi\Table
public
getTables (
void ) :
array
}
属性
- name
Table of Contents
- Schema::__construct — constructor
- Schema::createCollection — Add collection to schema
- Schema::dropCollection — Drop collection from schema
- Schema::existsInDatabase — Check if exists in database
- Schema::getCollection — Get collection from schema
- Schema::getCollectionAsTable — Get collection table object
- Schema::getCollections — Get all schema collections
- Schema::getName — Get schema name
- Schema::getSession — Get schema session
- Schema::getTable — Get schema table
- Schema::getTables — Get schema tables