Ubiquity 2.5.2
php rapid development framework
Loading...
Searching...
No Matches
AbstractDriverMetaDatas.php
Go to the documentation of this file.
1<?php
2
4
14 protected $dbInstance;
15 protected $operations;
16
17 public function __construct($dbInstance) {
18 $this->dbInstance = $dbInstance;
19 }
20
26 abstract public function getTablesName(): array;
27
34 abstract public function getPrimaryKeys(string $tableName): array;
35
44 abstract public function getForeignKeys(string $tableName, string $pkName, ?string $dbName = null): array;
45
52 abstract public function getFieldsInfos(string $tableName): array;
53
62 abstract public function getRowNum(string $tableName, string $pkName, string $condition): int;
63
70 abstract public function groupConcat(string $fields, string $separator): string;
71
72 public function toStringOperator() {
73 return '';
74 }
75
76 public function getPHPType(string $dbType): string {
77 return '';
78 }
79
85 public function migrateOperation(string $operation):?string{
86 return $this->operations[$operation]??null;
87 }
88
94 public function setIsolationLevel($isolationLevel) {
95
96 }
97}
98
Ubiquity\db\providers$DriverMetaDatas This class is part of Ubiquity.
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.
setIsolationLevel($isolationLevel)
Sets the isolation level for transactions.
getPrimaryKeys(string $tableName)
Returns an array of the primary keys field names.
migrateOperation(string $operation)
Returns the SQL string for a migration operation.
groupConcat(string $fields, string $separator)
Returns the SQL callback for fields concatenation.
getRowNum(string $tableName, string $pkName, string $condition)
Returns the line number of a data record.
getTablesName()
Returns all table names in the database.