Documentation
Preparing search index...
@rivetkit/db
drizzle/mod
SQLiteAsyncDialect
Class SQLiteAsyncDialect
Hierarchy (
View Summary
)
SQLiteDialect
SQLiteAsyncDialect
Index
Constructors
constructor
Properties
[entity
Kind]
Methods
build
Delete
Query
build
Insert
Query
build
Relational
Query
build
Select
Query
build
Set
Operation
Query
build
Set
Operations
build
Update
Query
build
Update
Set
escape
Name
escape
Param
escape
String
migrate
sql
To
Query
Constructors
constructor
new
SQLiteAsyncDialect
(
config
?:
SQLiteDialectConfig
)
:
SQLiteAsyncDialect
Parameters
Optional
config
:
SQLiteDialectConfig
Returns
SQLiteAsyncDialect
Properties
Static
Readonly
[entity
Kind]
"[entityKind]"
:
string
Methods
build
Delete
Query
buildDeleteQuery
(
__namedParameters
:
SQLiteDeleteConfig
)
:
SQL
Parameters
__namedParameters
:
SQLiteDeleteConfig
Returns
SQL
build
Insert
Query
buildInsertQuery
(
__namedParameters
:
SQLiteInsertConfig
)
:
SQL
Parameters
__namedParameters
:
SQLiteInsertConfig
Returns
SQL
build
Relational
Query
buildRelationalQuery
(
__namedParameters
:
{
fullSchema
:
Record
<
string
,
unknown
>
;
joinOn
?:
SQL
<
unknown
>
;
nestedQueryRelation
?:
Relation
<
string
>
;
queryConfig
:
true
|
DBQueryConfig
<
"many"
,
true
>
;
schema
:
TablesRelationalConfig
;
table
:
SQLiteTable
;
tableAlias
:
string
;
tableConfig
:
TableRelationalConfig
;
tableNamesMap
:
Record
<
string
,
string
>
;
}
,
)
:
BuildRelationalQueryResult
<
SQLiteTable
<
TableConfig
>
,
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
,
>
Parameters
__namedParameters
:
{
fullSchema
:
Record
<
string
,
unknown
>
;
joinOn
?:
SQL
<
unknown
>
;
nestedQueryRelation
?:
Relation
<
string
>
;
queryConfig
:
true
|
DBQueryConfig
<
"many"
,
true
>
;
schema
:
TablesRelationalConfig
;
table
:
SQLiteTable
;
tableAlias
:
string
;
tableConfig
:
TableRelationalConfig
;
tableNamesMap
:
Record
<
string
,
string
>
;
}
Returns
BuildRelationalQueryResult
<
SQLiteTable
<
TableConfig
>
,
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
,
>
build
Select
Query
buildSelectQuery
(
__namedParameters
:
SQLiteSelectConfig
)
:
SQL
Parameters
__namedParameters
:
SQLiteSelectConfig
Returns
SQL
build
Set
Operation
Query
buildSetOperationQuery
(
__namedParameters
:
{
leftSelect
:
SQL
;
setOperator
:
{
isAll
:
boolean
;
limit
?:
number
|
Placeholder
<
string
,
any
>
;
offset
?:
number
|
Placeholder
<
string
,
any
>
;
orderBy
?:
(
|
SQL
<
unknown
>
|
Aliased
<
unknown
>
|
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
)
[]
;
rightSelect
:
TypedQueryBuilder
<
any
,
any
>
;
type
:
SetOperator
;
}
;
}
,
)
:
SQL
Parameters
__namedParameters
:
{
leftSelect
:
SQL
;
setOperator
:
{
isAll
:
boolean
;
limit
?:
number
|
Placeholder
<
string
,
any
>
;
offset
?:
number
|
Placeholder
<
string
,
any
>
;
orderBy
?:
(
|
SQL
<
unknown
>
|
Aliased
<
unknown
>
|
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
)
[]
;
rightSelect
:
TypedQueryBuilder
<
any
,
any
>
;
type
:
SetOperator
;
}
;
}
Returns
SQL
build
Set
Operations
buildSetOperations
(
leftSelect
:
SQL
,
setOperators
:
{
isAll
:
boolean
;
limit
?:
number
|
Placeholder
<
string
,
any
>
;
offset
?:
number
|
Placeholder
<
string
,
any
>
;
orderBy
?:
(
|
SQL
<
unknown
>
|
Aliased
<
unknown
>
|
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
)
[]
;
rightSelect
:
TypedQueryBuilder
<
any
,
any
>
;
type
:
SetOperator
;
}
[]
,
)
:
SQL
Parameters
leftSelect
:
SQL
setOperators
:
{
isAll
:
boolean
;
limit
?:
number
|
Placeholder
<
string
,
any
>
;
offset
?:
number
|
Placeholder
<
string
,
any
>
;
orderBy
?:
(
|
SQL
<
unknown
>
|
Aliased
<
unknown
>
|
SQLiteColumn
<
ColumnBaseConfig
<
ColumnDataType
,
string
>
,
{}
,
{}
>
)
[]
;
rightSelect
:
TypedQueryBuilder
<
any
,
any
>
;
type
:
SetOperator
;
}
[]
Returns
SQL
build
Update
Query
buildUpdateQuery
(
__namedParameters
:
SQLiteUpdateConfig
)
:
SQL
Parameters
__namedParameters
:
SQLiteUpdateConfig
Returns
SQL
build
Update
Set
buildUpdateSet
(
table
:
SQLiteTable
,
set
:
UpdateSet
)
:
SQL
Parameters
table
:
SQLiteTable
set
:
UpdateSet
Returns
SQL
escape
Name
escapeName
(
name
:
string
)
:
string
Parameters
name
:
string
Returns
string
escape
Param
escapeParam
(
_num
:
number
)
:
string
Parameters
_num
:
number
Returns
string
escape
String
escapeString
(
str
:
string
)
:
string
Parameters
str
:
string
Returns
string
migrate
migrate
(
migrations
:
MigrationMeta
[]
,
session
:
SQLiteSession
<
"async"
,
any
,
any
,
any
>
,
config
?:
string
|
MigrationConfig
,
)
:
Promise
<
void
>
Parameters
migrations
:
MigrationMeta
[]
session
:
SQLiteSession
<
"async"
,
any
,
any
,
any
>
Optional
config
:
string
|
MigrationConfig
Returns
Promise
<
void
>
sql
To
Query
sqlToQuery
(
sql
:
SQL
,
invokeSource
?:
"indexes"
)
:
QueryWithTypings
Parameters
sql
:
SQL
Optional
invokeSource
:
"indexes"
Returns
QueryWithTypings
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
[entity
Kind]
Methods
build
Delete
Query
build
Insert
Query
build
Relational
Query
build
Select
Query
build
Set
Operation
Query
build
Set
Operations
build
Update
Query
build
Update
Set
escape
Name
escape
Param
escape
String
migrate
sql
To
Query
Documentation
Loading...