db\pgsql\Schema loadColumnSchema()

loadColumnSchema() protected method Loads the column information into a yii\db\ColumnSchema object. protected yii\db\ColumnSchema loadColumnSchema ( $info )$info array Column information return yii\db\ColumnSchema The column schema object

db\pgsql\Schema insert()

insert() public method Executes the INSERT command, returning primary key values. public array|false insert ( $table, $columns )$table string The table that new rows will be inserted into. $columns array The column data (name => value) to be inserted into the table. return array|false Primary key values or false if the command fails

db\pgsql\Schema getViewNames()

getViewNames() public method (available since version 2.0.9) Returns all view names in the database. public string[] getViewNames ( $schema = '', $refresh = false )$schema string The schema of the views. Defaults to empty string, meaning the current or default schema name. If not empty, the returned view names will be prefixed with the schema name. $refresh boolean Whether to fetch the latest available view names. If this is false, view names fetched previously (if available) will be r

db\pgsql\Schema getUniqueIndexInformation()

getUniqueIndexInformation() protected method Gets information about given table unique indexes. protected array getUniqueIndexInformation ( $table )$table yii\db\TableSchema The table metadata return array With index and column names

db\pgsql\Schema findViewNames()

findViewNames() protected method (available since version 2.0.9) Returns all views names in the database. protected array findViewNames ( $schema = '' )$schema string The schema of the views. Defaults to empty string, meaning the current or default schema. return array All views names in the database. The names have NO schema name prefix.

db\pgsql\Schema findUniqueIndexes()

findUniqueIndexes() public method Returns all unique indexes for the given table. Each array element is of the following structure: [ 'IndexName1' => ['col1' [, ...]], 'IndexName2' => ['col2' [, ...]], ] public array findUniqueIndexes ( $table )$table yii\db\TableSchema The table metadata return array All unique indexes for the given table.

db\pgsql\Schema findTableNames()

findTableNames() protected method Returns all table names in the database. protected array findTableNames ( $schema = '' )$schema string The schema of the tables. Defaults to empty string, meaning the current or default schema. return array All table names in the database. The names have NO schema name prefix.

db\pgsql\Schema findSchemaNames()

findSchemaNames() protected method (available since version 2.0.4) Returns all schema names in the database, including the default one but not system schemas. This method should be overridden by child classes in order to support this feature because the default implementation simply throws an exception. protected array findSchemaNames ( )return array All schema names in the database, except system schemas

db\pgsql\Schema findConstraints()

findConstraints() protected method Collects the foreign key column details for the given table. protected void findConstraints ( $table )$table yii\db\TableSchema The table metadata

db\pgsql\Schema findColumns()

findColumns() protected method Collects the metadata of table columns. protected boolean findColumns ( $table )$table yii\db\TableSchema The table metadata return boolean Whether the table exists in the database