compare.php
Table of Contents
Functions
- create_db_compare_sql() : mixed
- 数据库结构比较并生成差量SQL
- db_compare_main() : mixed
- 主库信息
- db_compare_field_append() : mixed
- db_compare_sync() : mixed
- 需要同步的数据库
- db_compare_sync_like() : mixed
- 需要同步的数据库
- db_compare_create_sync_sql() : mixed
- 比较两个数据库结构
Functions
create_db_compare_sql()
数据库结构比较并生成差量SQL
create_db_compare_sql(mixed $db_compare_config[, mixed $need_compare_dbs = [] ][, mixed $is_like = false ]) : mixed
Parameters
- $db_compare_config : mixed
- $need_compare_dbs : mixed = []
- $is_like : mixed = false
db_compare_main()
主库信息
db_compare_main([ $db_compare_config = [] ]) : mixed
Parameters
db_compare_field_append()
db_compare_field_append(mixed $vv) : mixed
Parameters
- $vv : mixed
db_compare_sync()
需要同步的数据库
db_compare_sync(mixed $db_compare_config[, mixed $sync_tables = [] ]) : mixed
Parameters
- $db_compare_config : mixed
- $sync_tables : mixed = []
db_compare_sync_like()
需要同步的数据库
db_compare_sync_like(mixed $db_compare_config[, mixed $need_sync_dbs = [] ]) : mixed
Parameters
- $db_compare_config : mixed
- $need_sync_dbs : mixed = []
db_compare_create_sync_sql()
比较两个数据库结构
db_compare_create_sync_sql(mixed $struct_1, mixed $struct_2, mixed $struct_2_db) : mixed
Parameters
- $struct_1 : mixed
- $struct_2 : mixed
- $struct_2_db : mixed