Documentation

SQLAzureFederationsSynchronizer extends AbstractSchemaSynchronizer
in package

SQL Azure Schema Synchronizer.

Will iterate over all shards when performing schema operations. This is done by partitioning the passed schema into subschemas for the federation and the global database and then applying the operations step by step using the SingleDatabaseSynchronizer.

Tags
author

Benjamin Eberlei kontakt@beberlei.de

Table of Contents

FEDERATION_DISTRIBUTION_NAME  = 'azure.federatedOnDistributionName'
FEDERATION_TABLE_FEDERATED  = 'azure.federated'
$conn  : Connection
$shardManager  : SQLAzureShardManager
$synchronizer  : SchemaSynchronizer
__construct()  : mixed
createSchema()  : mixed
{@inheritdoc}
dropAllSchema()  : mixed
{@inheritdoc}
dropSchema()  : mixed
{@inheritdoc}
getCreateSchema()  : mixed
{@inheritdoc}
getDropAllSchema()  : mixed
{@inheritdoc}
getDropSchema()  : mixed
{@inheritdoc}
getUpdateSchema()  : mixed
{@inheritdoc}
updateSchema()  : mixed
{@inheritdoc}
processSql()  : mixed
processSqlSafely()  : mixed
extractSchemaFederation()  : Schema
getCreateFederationStatement()  : string
getFederationTypeDefaultValue()  : string
partitionSchema()  : array<string|int, mixed>
work()  : array<string|int, mixed>
Work on the Global/Federation based on currently existing shards and perform the given operation on the underlying schema synchronizer given the different partitioned schema instances.

Constants

Properties

Methods

processSql()

protected processSql(array<string|int, mixed> $sql) : mixed
Parameters
$sql : array<string|int, mixed>
Return values
mixed

processSqlSafely()

protected processSqlSafely(array<string|int, mixed> $sql) : mixed
Parameters
$sql : array<string|int, mixed>
Return values
mixed

work()

Work on the Global/Federation based on currently existing shards and perform the given operation on the underlying schema synchronizer given the different partitioned schema instances.

private work(Schema $schema, Closure $operation) : array<string|int, mixed>
Parameters
$schema : Schema
$operation : Closure
Return values
array<string|int, mixed>

Search results