/includes/database/database.mysql.inc

Description
Functions
db_mysql_add_field (line 400)
void db_mysql_add_field ( $table,  $field,  $spec, [ $keys_new = array()], [ $target = 'default'])
  • $table
  • $field
  • $spec
  • $keys_new
  • $target
db_mysql_add_foreign (line 440)
void db_mysql_add_foreign ( $table,  $field,  $foreign,  $target)
  • $table
  • $field
  • $foreign
  • $target
db_mysql_add_index (line 380)
void db_mysql_add_index ( $table,  $name,  $fields,  $target)
  • $table
  • $name
  • $fields
  • $target
db_mysql_add_primary (line 345)
void db_mysql_add_primary ( $table,  $fields,  $target)
  • $table
  • $fields
  • $target
db_mysql_add_unique (line 360)
void db_mysql_add_unique ( $table,  $name,  $fields,  $target)
  • $table
  • $name
  • $fields
  • $target
db_mysql_change_field (line 481)
void db_mysql_change_field ( $table,  $field,  $field_new,  $spec,  $keys_new,  $target)
  • $table
  • $field
  • $field_new
  • $spec
  • $keys_new
  • $target
db_mysql_connect (line 17)

db_connect()

创建数据库连接

void db_mysql_connect ((array) $dbc,  &$error)
  • (array) $dbc: 一组数据库连接信息,该信息由接口文件在 install.{type}.inc 中自行定义
  • &$error
db_mysql_create_database (line 715)
void db_mysql_create_database ( $database,  $target)
  • $database
  • $target
db_mysql_create_table (line 495)
void db_mysql_create_table ( $name,  $table,  $target)
  • $name
  • $table
  • $target
db_mysql_create_user (line 740)
void db_mysql_create_user ( $username,  $password,  $database,  $host,  $target)
  • $username
  • $password
  • $database
  • $host
  • $target
db_mysql_drop_database (line 723)
void db_mysql_drop_database ( $database,  $target)
  • $database
  • $target
db_mysql_drop_field (line 431)
void db_mysql_drop_field ( $table,  $field,  $target)
  • $table
  • $field
  • $target
db_mysql_drop_foreign (line 468)
void db_mysql_drop_foreign ( $table,  $field,  $parent_table,  $parent_field, [ $target = 'default'])
  • $table
  • $field
  • $parent_table
  • $parent_field
  • $target
db_mysql_drop_index (line 390)
void db_mysql_drop_index ( $table,  $name,  $target)
  • $table
  • $name
  • $target
db_mysql_drop_primary (line 353)
void db_mysql_drop_primary ( $table,  $target)
  • $table
  • $target
db_mysql_drop_table (line 315)
void db_mysql_drop_table ( $table,  $target)
  • $table
  • $target
db_mysql_drop_unique (line 370)
void db_mysql_drop_unique ( $table,  $name,  $target)
  • $table
  • $name
  • $target
db_mysql_drop_user (line 750)
void db_mysql_drop_user ( $username,  $target)
  • $username
  • $target
db_mysql_exec (line 185)

db_exec()

  • example: example not found
  • example: example not found
  • example: example not found
  • example: example not found
void db_mysql_exec ( $sql, [ $args = array()], [ $opt = array()])
  • $sql
  • $args
  • $opt
db_mysql_field_drop_default (line 338)
void db_mysql_field_drop_default ( $table,  $field,  $target)
  • $table
  • $field
  • $target
db_mysql_field_set_default (line 330)
void db_mysql_field_set_default ( $table,  $field,  $value,  $target)
  • $table
  • $field
  • $value
  • $target
db_mysql_get_comment (line 698)

数据库注释文字解析

  • access: public
string db_mysql_get_comment (string $comment, string $target)
  • string $comment: 注释文字
  • string $target: 连接名称
db_mysql_get_version (line 290)
void db_mysql_get_version ( $target)
  • $target
db_mysql_is_database (line 707)
void db_mysql_is_database ( $database,  $target)
  • $database
  • $target
db_mysql_is_field (line 308)
void db_mysql_is_field ( $table,  $field,  $target)
  • $table
  • $field
  • $target
db_mysql_is_table (line 300)
void db_mysql_is_table ( $table,  $target)
  • $table
  • $target
db_mysql_is_user (line 731)
void db_mysql_is_user ( $username,  $target)
  • $username
  • $target
db_mysql_query (line 59)

db_query()

  • example: example not found
  • example: example not found
  • example: example not found
void db_mysql_query ( $sql, [ $args = array()], [ $opt = array()])
  • $sql
  • $args
  • $opt
db_mysql_rename_table (line 323)
void db_mysql_rename_table ( $name,  $new_name,  $target)
  • $name
  • $new_name
  • $target
db_mysql_replace (line 116)

db_replace()

void db_mysql_replace ( $table,  $args, [ $opt = array()])
  • $table
  • $args
  • array $opt
db_mysql_show_tables (line 268)
void db_mysql_show_tables ( $target)
  • $target
db_mysql_type_map (line 646)
void db_mysql_type_map ()
mysql_db_info (line 7)
void mysql_db_info ()
_db_mysql_add_foreign_bind (line 633)

外键约束行为

void _db_mysql_add_foreign_bind ( $type)
  • $type
_db_mysql_create_field_sql (line 536)

解析创建表语句

void _db_mysql_create_field_sql ( $name,  $spec,  $target)
  • $name
  • $spec
  • $target
_db_mysql_create_keys_sql (line 598)

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

void _db_mysql_create_keys_sql ( $spec)
  • $spec
_db_mysql_create_key_sql (line 618)
void _db_mysql_create_key_sql ( $fields)
  • $fields
_db_mysql_process_field (line 578)

获取字段类型

void _db_mysql_process_field ( $field)
  • $field

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