Ubiquity
2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DatabaseMetadatas.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ubiquity\db\traits
;
4
5
use
Ubiquity\db\utils\DbTypes
;
6
18
class
DatabaseMetadatas
{
19
20
public
function
getTablesName
() {
21
return
$this->wrapperObject->getTablesName ();
22
}
23
24
public
function
getPrimaryKeys
($tableName) {
25
return
$this->wrapperObject->getPrimaryKeys ( $tableName );
26
}
27
28
public
function
getFieldsInfos
($tableName) {
29
return
$this->wrapperObject->getFieldsInfos ( $tableName );
30
}
31
32
public
function
getForeignKeys
($tableName, $pkName, $dbName =
null
) {
33
return
$this->wrapperObject->getForeignKeys ( $tableName, $pkName, $dbName );
34
}
35
36
public
function
getRowNum
(
string
$tableName,
string
$pkName,
string
$condition): int {
37
return $this->wrapperObject->
getRowNum
( $tableName, $pkName, $condition );
38
}
39
40
public
function
getPHPType
(
string
$dbType): string {
41
return
DbTypes
::asPhpType($dbType);
42
}
43
49
public
function
migrateOperation
(
string
$operation):string {
50
return $this->wrapperObject->migrateOperation($operation);
51
}
52
}
53
Ubiquity\db\traits\DatabaseMetadatas
Definition
DatabaseMetadatas.php:18
Ubiquity\db\traits\DatabaseMetadatas\getPHPType
getPHPType(string $dbType)
Definition
DatabaseMetadatas.php:40
Ubiquity\db\traits\DatabaseMetadatas\migrateOperation
migrateOperation(string $operation)
Returns the SQL command for a migration operation.
Definition
DatabaseMetadatas.php:49
Ubiquity\db\traits\DatabaseMetadatas\getForeignKeys
getForeignKeys($tableName, $pkName, $dbName=null)
Definition
DatabaseMetadatas.php:32
Ubiquity\db\traits\DatabaseMetadatas\getRowNum
getRowNum(string $tableName, string $pkName, string $condition)
Definition
DatabaseMetadatas.php:36
Ubiquity\db\traits\DatabaseMetadatas\getFieldsInfos
getFieldsInfos($tableName)
Definition
DatabaseMetadatas.php:28
Ubiquity\db\traits\DatabaseMetadatas\getPrimaryKeys
getPrimaryKeys($tableName)
Definition
DatabaseMetadatas.php:24
Ubiquity\db\traits\DatabaseMetadatas\getTablesName
getTablesName()
Definition
DatabaseMetadatas.php:20
Ubiquity\db\utils\DbTypes
Manage Databases types.
Definition
DbTypes.php:14
Ubiquity\db\traits
Definition
DatabaseMetadatas.php:3
C:
Users
myadd
Documents
GitHub
ubiquity-doc-api
vendor
phpmv
ubiquity
src
Ubiquity
db
traits
DatabaseMetadatas.php
Generated on Sun Dec 10 2023 15:04:21 for
Ubiquity
by
doxygen
1.9.8