Create a new ReplicaManager
Optionaloptions: Partial<ReplicationOptions>Remove a replica from the manager
Get a replica by name
Get all replica names
Check replication lag for a specific replica Uses dialect-specific queries for lag detection
Start the lag monitoring loop
Stop the lag monitoring loop
Get statistics for all replicas
Get the current routing strategy
Select a replica based on the current routing strategy
Execute a query on a replica (auto-selects replica based on routing strategy)
Optionaloptions: QueryOptionsGet healthy replicas
Get replica count
Check if replication is enabled
Get lag detection configuration
Close all replica connections
ReplicaManager class for managing read replicas with lag detection