Pix_Table_Db_Adapter_PgSQL

uses \Pix_Table_Db_Adapter
package Table
copyright 2003-2012 PIXNET Digital Media Corporation
license BSD License

 Methods

__construct()

__construct($options) 

Parameters

$options

bulk insert

bulkInsert(\Pix_Table $table, array $keys, array $values_list, array $options) : void
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::bulkInsert()

Parameters

$table

\Pix_Table

$keys

array

$values_list

array

$options

array

column_quote 把 $a 字串加上 quote

column_quote(string $a, \Pix_Table $table) : string

access public

Parameters

$a

string

$table

\Pix_Table

Returns

string

createTable 將 $table 建立進資料庫內

createTable(\Pix_Table $table) : void

access public

Parameters

$table

\Pix_Table

deleteOne 從 db 上刪除一個 Row

deleteOne(\Pix_Table_Row $row) : void
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::deleteOne()

Parameters

dropTable()

dropTable($table) 

Parameters

$table

fetch 從 $table 找出符合 $search 的所有 column

fetch(\Pix_Table $table, \Pix_Table_Search $search, string $select_columns) : array
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::fetch()

Parameters

$table

\Pix_Table

$select_columns

string

Returns

array

fetchCount 從 $table 找出符合 $search 條件的數量

fetchCount(\Pix_Table $table, mixed $search) : int
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::fetchCount()

Parameters

$table

\Pix_Table

$search

mixed

Returns

int

fetchOne 從 $table 找出符合 $primary_values 條件的一筆

fetchOne(\Pix_Table $table, array $primary_values, $select_columns) : array
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::fetchOne()

Parameters

$table

\Pix_Table

$primary_values

array

$select_columns

Returns

arrayor null

fetchSum 從 $table 找出符合 $search 數量的 $column 總合

fetchSum(\Pix_Table $table, string $column, \Pix_Table_Search $search) : int
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::fetchSum()

Parameters

$table

\Pix_Table

$column

string

Returns

int

getLastInsertId()

getLastInsertId($table) 

Parameters

$table

getSQLConditionByTerm()

getSQLConditionByTerm(Pix_Table_Search_Term $term, $table) 

Parameters

$term

$table

getSupportFeatures()

getSupportFeatures() 

get all tables in this db

getTables() : array

access public

Returns

array

insertOne 從 db 上增加一筆資料

insertOne(\Pix_Table $table, array | string $keys_values) : void
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::insertOne()

Parameters

$table

\Pix_Table

$keys_values

arraystring

query()

query($sql) 

Parameters

$sql

quoteWithColumn()

quoteWithColumn($table, $value, $column_name) 

Parameters

$table

$value

$column_name

setName()

setName($name) 

Parameters

$name

support()

support($id) 
Inherited

inherited_from \Pix_Table_Db_Adapter_Abstract::support()
inherited_from \Pix_Table_Db_Adapter_SQL::support()

Parameters

$id

updateOne 從 db 上更新一個 $row 的 data

updateOne(\Pix_Table_Row $row, array | string $data) : void
Inherited

access public
inherited_from \Pix_Table_Db_Adapter_SQL::updateOne()

Parameters

$data

arraystring