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

Ubiquity\db\providers$DriverMetaDatas This class is part of Ubiquity. More...

+ Inheritance diagram for AbstractDriverMetaDatas:

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.
 
 toStringOperator ()
 
 getPHPType (string $dbType)
 
 migrateOperation (string $operation)
 Returns the SQL string for a migration operation.
 
 setIsolationLevel ($isolationLevel)
 Sets the isolation level for transactions.
 

Protected Attributes

 $dbInstance
 
 $operations
 

Detailed Description

Ubiquity\db\providers$DriverMetaDatas This class is part of Ubiquity.

Author
jc
Version
1.0.3

Definition at line 13 of file AbstractDriverMetaDatas.php.

Constructor & Destructor Documentation

◆ __construct()

__construct (   $dbInstance)

Reimplemented in MysqlDriverMetas, and PgsqlDriverMetas.

Definition at line 17 of file AbstractDriverMetaDatas.php.

Member Function Documentation

◆ getFieldsInfos()

getFieldsInfos ( string  $tableName)
abstract

Returns metadata related to the fields of the specified table.

Parameters
string$tableName
Returns
array

Reimplemented in MysqlDriverMetas.

◆ getForeignKeys()

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

Returns the list of foreign keys in a table.

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

Reimplemented in MysqlDriverMetas.

◆ getPHPType()

getPHPType ( string  $dbType)

Definition at line 76 of file AbstractDriverMetaDatas.php.

◆ getPrimaryKeys()

getPrimaryKeys ( string  $tableName)
abstract

Returns an array of the primary keys field names.

Parameters
string$tableName
Returns
array

Reimplemented in MysqlDriverMetas.

◆ getRowNum()

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

Returns the line number of a data record.

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

Reimplemented in MysqlDriverMetas, PgsqlDriverMetas, and SqliteDriverMetas.

◆ getTablesName()

getTablesName ( )
abstract

Returns all table names in the database.

Returns
array

Reimplemented in MysqlDriverMetas, PgsqlDriverMetas, and SqliteDriverMetas.

◆ groupConcat()

groupConcat ( string  $fields,
string  $separator 
)
abstract

Returns the SQL callback for fields concatenation.

Parameters
string$fields
Returns
string

Reimplemented in MysqlDriverMetas, PgsqlDriverMetas, and SqliteDriverMetas.

◆ migrateOperation()

migrateOperation ( string  $operation)

Returns the SQL string for a migration operation.

Parameters
string$operation
Returns
string

Definition at line 85 of file AbstractDriverMetaDatas.php.

◆ setIsolationLevel()

setIsolationLevel (   $isolationLevel)

Sets the isolation level for transactions.

Parameters
$isolationLevel
Returns
mixed

Reimplemented in MysqlDriverMetas.

Definition at line 94 of file AbstractDriverMetaDatas.php.

◆ toStringOperator()

toStringOperator ( )

Reimplemented in PgsqlDriverMetas.

Definition at line 72 of file AbstractDriverMetaDatas.php.

Field Documentation

◆ $dbInstance

$dbInstance
protected

Definition at line 14 of file AbstractDriverMetaDatas.php.

◆ $operations

$operations
protected

Definition at line 15 of file AbstractDriverMetaDatas.php.


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