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