Documentation Home
MySQL PHP API
Download this Manual
PDF (US Ltr) - 2.8Mb
PDF (A4) - 2.8Mb
EPUB - 456.9Kb
HTML Download (TGZ) - 396.0Kb
HTML Download (Zip) - 409.9Kb


MySQL PHP API  /  ...  /  mysqlnd_ms_fabric_select_shard

7.8.3 mysqlnd_ms_fabric_select_shard

Copyright 1997-2014 the PHP Documentation Group.

  • mysqlnd_ms_fabric_select_shard

    Switch to shard

Description

array mysqlnd_ms_fabric_select_shard(mixed connection,
                                     mixed table_name,
                                     mixed shard_key);
Warning

This function is currently not documented; only its argument list is available.

MySQL Fabric related.

Switch the connection to the shards responsible for the given table name and shard key.

Parameters

connection

A MySQL connection handle obtained from any of the connect functions of the mysqli, mysql or PDO_MYSQL extensions.

table_name

The table name to ask Fabric about.

shard_key

The shard key to ask Fabric about.

Return Values

FALSE on error. Otherwise, TRUE

Notes

Note

mysqlnd_ms_fabric_select_shard requires PECL mysqlnd_ms >> 1.6.0.


User Comments
Sign Up Login You must be logged in to post a comment.