Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
DatabaseMetadatas.php
Go to the documentation of this file.
1<?php
2
4
6
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
migrateOperation(string $operation)
Returns the SQL command for a migration operation.
getForeignKeys($tableName, $pkName, $dbName=null)
getRowNum(string $tableName, string $pkName, string $condition)
Manage Databases types.
Definition DbTypes.php:14