预定义常量
mysqlnd_ms_dump_servers
mysqlnd_ms
PHP Manual
Mysqlnd_ms 函数
Table of Contents
mysqlnd_ms_dump_servers
— Returns a list of currently configured servers
mysqlnd_ms_fabric_select_global
— Switch to global sharding server for a given table
mysqlnd_ms_fabric_select_shard
— Switch to shard
mysqlnd_ms_get_last_gtid
— 返回最后的全局同步 ID (GTID)
mysqlnd_ms_get_last_used_connection
— Returns an array which describes the last used connection
mysqlnd_ms_get_stats
— Returns query distribution and connection statistics
mysqlnd_ms_match_wild
— Finds whether a table name matches a wildcard pattern or not
mysqlnd_ms_query_is_select
— 查询给定的 SQL 会发送给 master、slave 还是最后使用的 MySQL server 执行。
mysqlnd_ms_set_qos
— Sets the quality of service needed from the cluster
mysqlnd_ms_set_user_pick_server
— Sets a callback for user-defined read/write splitting
预定义常量
mysqlnd_ms_dump_servers
mysqlnd_ms
PHP Manual