Doctrine\DBAL\Sharding\SQLAzure\SQLAzureShardManager
Sharding using the SQL Azure Federations support.
- Author: Benjamin Eberlei <kontakt@beberlei.de>
Synopsis
class SQLAzureShardManager
implements
ShardManager
{
- // members
- private string $federationName;
- private bool $filteringEnabled;
- private string $distributionKey;
- private string $distributionType;
- private Connection $conn;
- private string $currentDistributionValue;
- // methods
- public void __construct()
- public string getFederationName()
- public string getDistributionKey()
- public string getDistributionType()
- public void setFilteringEnabled()
- public void selectGlobal()
- public void selectShard()
- public void getCurrentDistributionValue()
- public void getShards()
- public void queryAll()
- public void splitFederation()
Hierarchy
Implements
Members
private
- $conn — Doctrine\DBAL\Connection
- $currentDistributionValue — string
- $distributionKey — string
- $distributionType — string
- $federationName — string
- $filteringEnabled — Doctrine\DBAL\Sharding\SQLAzure\bool
Methods
public
- __construct()
- getCurrentDistributionValue() — {@inheritDoc}
- getDistributionKey() — Get the distribution key
- getDistributionType() — Get the Doctrine Type name used for the distribution
- getFederationName() — Get name of the federation
- getShards() — {@inheritDoc}
- queryAll() — {@inheritDoc}
- selectGlobal() — {@inheritDoc}
- selectShard() — {@inheritDoc}
- setFilteringEnabled() — Enabled/Disable filtering on the fly.
- splitFederation() — Split Federation at a given distribution value.