/includes/database/database.pgsql.inc

Description
Functions
db_pgsql_add_field (line 385)
void db_pgsql_add_field ( $table,  $field,  $spec, [ $keys_new = array()], [ $target = 'default'])
  • $table
  • $field
  • $spec
  • $keys_new
  • $target
db_pgsql_add_foreign (line 425)
void db_pgsql_add_foreign ( $table,  $field,  $foreign,  $target)
  • $table
  • $field
  • $foreign
  • $target
db_pgsql_add_index (line 365)
void db_pgsql_add_index ( $table,  $name,  $fields,  $target)
  • $table
  • $name
  • $fields
  • $target
db_pgsql_add_primary (line 330)
void db_pgsql_add_primary ( $table,  $fields,  $target)
  • $table
  • $fields
  • $target
db_pgsql_add_unique (line 345)
void db_pgsql_add_unique ( $table,  $name,  $fields,  $target)
  • $table
  • $name
  • $fields
  • $target
db_pgsql_change_field (line 466)
void db_pgsql_change_field ( $table,  $field,  $field_new,  $spec,  $keys_new,  $target)
  • $table
  • $field
  • $field_new
  • $spec
  • $keys_new
  • $target
db_pgsql_connect (line 17)

db_connect()

创建数据库连接

void db_pgsql_connect ((array) $dbc,  &$error)
  • (array) $dbc: 一组数据库连接信息,该信息由接口文件在 install.{type}.inc 中自行定义
  • &$error
db_pgsql_create_table (line 480)
void db_pgsql_create_table ( $name,  $table,  $target)
  • $name
  • $table
  • $target
db_pgsql_drop_field (line 416)
void db_pgsql_drop_field ( $table,  $field,  $target)
  • $table
  • $field
  • $target
db_pgsql_drop_foreign (line 453)
void db_pgsql_drop_foreign ( $table,  $field,  $parent_table,  $parent_field, [ $target = 'default'])
  • $table
  • $field
  • $parent_table
  • $parent_field
  • $target
db_pgsql_drop_index (line 375)
void db_pgsql_drop_index ( $table,  $name,  $target)
  • $table
  • $name
  • $target
db_pgsql_drop_primary (line 338)
void db_pgsql_drop_primary ( $table,  $target)
  • $table
  • $target
db_pgsql_drop_table (line 300)
void db_pgsql_drop_table ( $table,  $target)
  • $table
  • $target
db_pgsql_drop_unique (line 355)
void db_pgsql_drop_unique ( $table,  $name,  $target)
  • $table
  • $name
  • $target
db_pgsql_exec (line 171)

db_exec()

  • example: example not found
  • example: example not found
  • example: example not found
  • example: example not found
void db_pgsql_exec ( $sql, [ $args = array()], [ $opt = array()])
  • $sql
  • $args
  • $opt
db_pgsql_field_drop_default (line 323)
void db_pgsql_field_drop_default ( $table,  $field,  $target)
  • $table
  • $field
  • $target
db_pgsql_field_set_default (line 315)
void db_pgsql_field_set_default ( $table,  $field,  $value,  $target)
  • $table
  • $field
  • $value
  • $target
db_pgsql_get_comment (line 674)
void db_pgsql_get_comment ( $comment,  $target)
  • $comment
  • $target
db_pgsql_get_version (line 276)
void db_pgsql_get_version ( $target)
  • $target
db_pgsql_is_field (line 293)
void db_pgsql_is_field ( $table,  $field,  $target)
  • $table
  • $field
  • $target
db_pgsql_is_table (line 286)
void db_pgsql_is_table ( $table,  $target)
  • $table
  • $target
db_pgsql_query (line 45)

db_query()

  • example: example not found
  • example: example not found
  • example: example not found
void db_pgsql_query ( $sql, [ $args = array()], [ $opt = array()])
  • $sql
  • $args
  • $opt
db_pgsql_rename_table (line 308)
void db_pgsql_rename_table ( $name,  $new_name,  $target)
  • $name
  • $new_name
  • $target
db_pgsql_replace (line 102)

db_replace()

void db_pgsql_replace ( $table,  $args, [ $opt = array()])
  • $table
  • $args
  • array $opt
db_pgsql_show_tables (line 254)
void db_pgsql_show_tables ( $target)
  • $target
db_pgsql_type_map (line 631)
void db_pgsql_type_map ()
pgsql_db_info (line 7)
void pgsql_db_info ()
_db_pgsql_add_foreign_bind (line 618)

外键约束行为

void _db_pgsql_add_foreign_bind ( $type)
  • $type
_db_pgsql_create_field_sql (line 521)

解析创建表语句

void _db_pgsql_create_field_sql ( $name,  $spec,  $target)
  • $name
  • $spec
  • $target
_db_pgsql_create_keys_sql (line 583)

解析表主键、索引、唯一值

void _db_pgsql_create_keys_sql ( $spec)
  • $spec
_db_pgsql_create_key_sql (line 603)
void _db_pgsql_create_key_sql ( $fields)
  • $fields
_db_pgsql_process_field (line 563)

获取字段类型

void _db_pgsql_process_field ( $field)
  • $field

Documentation generated on Wed, 04 Jul 2012 14:35:56 +0800 by phpDocumentor 1.4.3