Documentation
Preparing search index...
@rivetkit/db
drizzle/mod
withReplicas
Variable withReplicas
Const
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
<
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 Parameters
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
,
>
Parameters
primary
:
Q
replicas
:
[
Q
,
...
Q
[]
]
Optional
getReplica
:
(
replicas
:
Q
[]
)
=>
Q
Returns
SQLiteWithReplicas
<
Q
>
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Documentation
Loading...