kysely-replication
Version:
Replication-aware Kysely query execution
15 lines (12 loc) • 514 B
text/typescript
import { R as ReplicaStrategy } from '../config-5S6ngVvi.cjs';
import 'kysely';
interface RoundRobinReplicaStrategyOptions {
onTransaction?: 'error' | 'warn' | 'allow';
}
declare class RoundRobinReplicaStrategy implements ReplicaStrategy {
#private;
constructor(options?: RoundRobinReplicaStrategyOptions);
next(replicaCount: number): Promise<number>;
get onTransaction(): 'error' | 'warn' | 'allow' | undefined;
}
export { RoundRobinReplicaStrategy, type RoundRobinReplicaStrategyOptions };