Documentation
Preparing search index...
@rivetkit/db
drizzle/mod
QueryBuilder
Class QueryBuilder
Index
Constructors
constructor
Properties
$with
[entity
Kind]
Methods
select
select
Distinct
with
Constructors
constructor
new
QueryBuilder
(
dialect
?:
SQLiteDialect
|
SQLiteDialectConfig
)
:
QueryBuilder
Parameters
Optional
dialect
:
SQLiteDialect
|
SQLiteDialectConfig
Returns
QueryBuilder
Properties
$with
$with
:
WithBuilder
Static
Readonly
[entity
Kind]
"[entityKind]"
:
string
Methods
select
select
()
:
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
Returns
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
select
<
TSelection
extends
SelectedFields
>
(
fields
:
TSelection
,
)
:
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
Type Parameters
TSelection
extends
SelectedFields
Parameters
fields
:
TSelection
Returns
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
select
Distinct
selectDistinct
()
:
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
Returns
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
selectDistinct
<
TSelection
extends
SelectedFields
>
(
fields
:
TSelection
,
)
:
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
Type Parameters
TSelection
extends
SelectedFields
Parameters
fields
:
TSelection
Returns
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
with
with
(
...
queries
:
WithSubquery
<
string
,
Record
<
string
,
unknown
>
>
[]
,
)
:
{
select
:
{
()
:
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
;
<
TSelection
extends
SelectedFields
>
(
fields
:
TSelection
,
)
:
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
;
}
;
selectDistinct
:
{
()
:
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
;
<
TSelection
extends
SelectedFields
>
(
fields
:
TSelection
,
)
:
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
;
}
;
}
Parameters
...
queries
:
WithSubquery
<
string
,
Record
<
string
,
unknown
>
>
[]
Returns
{
select
:
{
()
:
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
;
<
TSelection
extends
SelectedFields
>
(
fields
:
TSelection
,
)
:
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
;
}
;
selectDistinct
:
{
()
:
SQLiteSelectBuilder
<
undefined
,
"sync"
,
void
,
"qb"
>
;
<
TSelection
extends
SelectedFields
>
(
fields
:
TSelection
,
)
:
SQLiteSelectBuilder
<
TSelection
,
"sync"
,
void
,
"qb"
>
;
}
;
}
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
$with
[entity
Kind]
Methods
select
select
Distinct
with
Documentation
Loading...