for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ubiquity\db\providers\pdo\drivers;
/**
* Ubiquity\db\providers$DriverMetaDatas
* This class is part of Ubiquity
*
* @author jc
* @version 1.0.0
*/
abstract class AbstractDriverMetaDatas {
protected $dbInstance;
public function __construct($dbInstance) {
$this->dbInstance = $dbInstance;
}
* Returns all table names in the database.
* @return array
abstract public function getTablesName(): array;
* Returns an array of the primary keys field names.
* @param string $tableName
abstract public function getPrimaryKeys(string $tableName): array;
* Returns the list of foreign keys in a table.
* @param string $pkName
* @param string $dbName
abstract public function getForeignKeys(string $tableName, string $pkName, ?string $dbName = null): array;
* Returns metadata related to the fields of the specified table.
abstract public function getFieldsInfos(string $tableName): array;