Table of Contents

IShardPoolFactory Interface

Creates the database connection pool of a shard.

Remarks

This is the seam through which the application tells the tenancy infrastructure how to connect to each shard database. The catalog only knows the logical shard id; the factory turns it into an actual IDBConnectionPool, typically reading connection settings and credentials from the application configuration. Use TCallbackShardPoolFactory to implement it with an anonymous function.

Syntax

Unit: Aurelius.Tenancy.Provider

IShardPoolFactory = interface(IInterface);

Methods

Name Description
CreatePool Creates a connection pool for the given shard.