PHP Class BcPostgres

Inheritance: extends Postgres
Mostrar archivo Open project: baserproject/basercms

Public Methods

Method Description
buildRenameTable ( string $sourceName, string $targetName ) : string テーブル名のリネームステートメントを生成
describe ( Model | string $model ) : array Returns an array of the fields in given table name.
length ( string $real ) : integer Gets the length of a database-native column description, or null if no length
renameColumn ( array $options ) : boolean カラム名を変更する
updateSequence ( ) シーケンスを更新する
value ( $data, $column = null, $null = true ) {@inheritDoc}

Private Methods

Method Description
__describe ( Model | string $model ) : array DboPostgresのdescribeメソッドを呼び出さずにキャッシュを読み込む為に利用 Datasource::describe と同じ(一部ハック)

Method Details

buildRenameTable() public method

テーブル名のリネームステートメントを生成
public buildRenameTable ( string $sourceName, string $targetName ) : string
$sourceName string
$targetName string
return string

describe() public method

Returns an array of the fields in given table name.
public describe ( Model | string $model ) : array
$model Model | string Name of database table to inspect
return array Fields in table. Keys are name and type

length() public method

Gets the length of a database-native column description, or null if no length
public length ( string $real ) : integer
$real string Real database-layer column type (i.e. "varchar(255)")
return integer An integer representing the length of the column

renameColumn() public method

カラム名を変更する
public renameColumn ( array $options ) : boolean
$options array [ table / new / old ]
return boolean

updateSequence() public method

シーケンスを更新する
public updateSequence ( )

value() public method

{@inheritDoc}
public value ( $data, $column = null, $null = true )