Documentation
    Preparing search index...

    Variable withReplicasConst

    withReplicas: <
        TResultKind extends "sync"
        | "async",
        TRunResult,
        TFullSchema extends Record<string, unknown>,
        TSchema extends TablesRelationalConfig,
        Q extends
            BaseSQLiteDatabase<
                TResultKind,
                TRunResult,
                TFullSchema,
                TSchema extends Record<string, unknown>
                    ? ExtractTablesWithRelations<TFullSchema>
                    : TSchema,
            >,
    >(
        primary: Q,
        replicas: [Q, ...Q[]],
        getReplica?: (replicas: Q[]) => Q,
    ) => SQLiteWithReplicas<Q>

    Type Declaration