PHP Class BcPostgres

Inheritance: extends Postgres
Afficher le fichier Open project: baserproject/basercms

Méthodes publiques

Méthode 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

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

Method Details

buildRenameTable() public méthode

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

describe() public méthode

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
Résultat array Fields in table. Keys are name and type

length() public méthode

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)")
Résultat integer An integer representing the length of the column

renameColumn() public méthode

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

updateSequence() public méthode

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

value() public méthode

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