UNPKG

kysely-replication

Version:
15 lines (12 loc) 493 B
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 };