Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
MysqlDriverMetas Class Reference

Ubiquity\db\providers\pdo\drivers$MysqlDriverMetas This class is part of Ubiquity. More...

+ Inheritance diagram for MysqlDriverMetas:

Public Member Functions

 __construct ($dbInstance)
 
 getTablesName ()
 Returns all table names in the database.
 
 getPrimaryKeys (string $tableName)
 Returns an array of the primary keys field names.
 
 getForeignKeys (string $tableName, string $pkName, ?string $dbName=null)
 Returns the list of foreign keys in a table.
 
 getFieldsInfos (string $tableName)
 Returns metadata related to the fields of the specified table.
 
 getRowNum (string $tableName, string $pkName, string $condition)
 Returns the line number of a data record.
 
 groupConcat (string $fields, string $separator)
 Returns the SQL callback for fields concatenation.
 
 setIsolationLevel ($isolationLevel)
 Sets the isolation level for transactions.
 
- Public Member Functions inherited from AbstractDriverMetaDatas
 toStringOperator ()
 
 getPHPType (string $dbType)
 
 migrateOperation (string $operation)
 Returns the SQL string for a migration operation.
 

Additional Inherited Members

- Protected Attributes inherited from AbstractDriverMetaDatas
 $dbInstance
 
 $operations
 

Detailed Description

Ubiquity\db\providers\pdo\drivers$MysqlDriverMetas This class is part of Ubiquity.

Author
jc
Version
1.0.3

Definition at line 15 of file MysqlDriverMetas.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $dbInstance)

Reimplemented from AbstractDriverMetaDatas.

Definition at line 17 of file MysqlDriverMetas.php.

Member Function Documentation

◆ getFieldsInfos()

getFieldsInfos ( string  $tableName)

Returns metadata related to the fields of the specified table.

Parameters
string$tableName
Returns
array

Reimplemented from AbstractDriverMetaDatas.

Definition at line 49 of file MysqlDriverMetas.php.

◆ getForeignKeys()

getForeignKeys ( string  $tableName,
string  $pkName,
?string  $dbName = null 
)

Returns the list of foreign keys in a table.

Parameters
string$tableName
string$pkName
string$dbName
Returns
array

Reimplemented from AbstractDriverMetaDatas.

Definition at line 38 of file MysqlDriverMetas.php.

◆ getPrimaryKeys()

getPrimaryKeys ( string  $tableName)

Returns an array of the primary keys field names.

Parameters
string$tableName
Returns
array

Reimplemented from AbstractDriverMetaDatas.

Definition at line 28 of file MysqlDriverMetas.php.

◆ getRowNum()

getRowNum ( string  $tableName,
string  $pkName,
string  $condition 
)

Returns the line number of a data record.

Parameters
string$tableName
string$pkName
string$condition
Returns
int

Reimplemented from AbstractDriverMetaDatas.

Definition at line 59 of file MysqlDriverMetas.php.

◆ getTablesName()

getTablesName ( )

Returns all table names in the database.

Returns
array

Reimplemented from AbstractDriverMetaDatas.

Definition at line 23 of file MysqlDriverMetas.php.

◆ groupConcat()

groupConcat ( string  $fields,
string  $separator 
)

Returns the SQL callback for fields concatenation.

Parameters
string$fields
Returns
string

Reimplemented from AbstractDriverMetaDatas.

Definition at line 67 of file MysqlDriverMetas.php.

◆ setIsolationLevel()

setIsolationLevel (   $isolationLevel)

Sets the isolation level for transactions.

Parameters
$isolationLevel
Returns
mixed

Reimplemented from AbstractDriverMetaDatas.

Definition at line 71 of file MysqlDriverMetas.php.


The documentation for this class was generated from the following file: