SQLQueryHelperjs - v1.2.6
Preparing search index...
index
SqliteQueryBuilder
Class SqliteQueryBuilder
Index
Constructors
constructor
Methods
with
with
Recursive
from
from
Subquery
union
union
All
intersect
except
join
Subquery
left
Join
Subquery
cross
Join
Subquery
join
left
Join
cross
Join
window
where
and
Where
or
Where
where
Exists
and
Where
Exists
or
Where
Exists
where
Not
Exists
and
Where
Not
Exists
or
Where
Not
Exists
where
In
Subquery
and
Where
In
Subquery
or
Where
In
Subquery
where
Not
In
Subquery
and
Where
Not
In
Subquery
or
Where
Not
In
Subquery
having
and
Having
or
Having
group
By
order
By
limit
offset
page
page
Size
to
SQL
all
first
all
Async
first
Async
Constructors
constructor
new
SqliteQueryBuilder
(
connection
:
Database
,
selectedColumns
:
SelectColumns
,
)
:
SqliteQueryBuilder
Parameters
connection
:
Database
selectedColumns
:
SelectColumns
Returns
SqliteQueryBuilder
Methods
with
with
(
name
:
string
,
query
:
string
|
SqliteQueryBuilder
,
options
?:
{
columns
?:
string
[]
;
params
?:
QueryValue
[]
;
recursive
?:
boolean
;
}
,
)
:
this
Parameters
name
:
string
query
:
string
|
SqliteQueryBuilder
options
:
{
columns
?:
string
[]
;
params
?:
QueryValue
[]
;
recursive
?:
boolean
}
= {}
Returns
this
with
Recursive
withRecursive
(
name
:
string
,
query
:
string
|
SqliteQueryBuilder
,
options
?:
{
columns
?:
string
[]
;
params
?:
QueryValue
[]
}
,
)
:
this
Parameters
name
:
string
query
:
string
|
SqliteQueryBuilder
options
:
{
columns
?:
string
[]
;
params
?:
QueryValue
[]
}
= {}
Returns
this
from
from
(
table
:
string
,
alias
?:
string
)
:
this
Parameters
table
:
string
Optional
alias
:
string
Returns
this
from
Subquery
fromSubquery
(
query
:
string
|
SqliteQueryBuilder
,
alias
:
string
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
alias
:
string
params
:
QueryValue
[]
= []
Returns
this
union
union
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
union
All
unionAll
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
intersect
intersect
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
except
except
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
join
Subquery
joinSubquery
(
query
:
string
|
SqliteQueryBuilder
,
alias
:
string
,
onCondition
:
string
,
options
?:
Omit
<
JoinOptions
,
"alias"
>
,
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
alias
:
string
onCondition
:
string
options
:
Omit
<
JoinOptions
,
"alias"
>
= {}
Returns
this
left
Join
Subquery
leftJoinSubquery
(
query
:
string
|
SqliteQueryBuilder
,
alias
:
string
,
onCondition
:
string
,
options
?:
Omit
<
JoinOptions
,
"alias"
>
,
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
alias
:
string
onCondition
:
string
options
:
Omit
<
JoinOptions
,
"alias"
>
= {}
Returns
this
cross
Join
Subquery
crossJoinSubquery
(
query
:
string
|
SqliteQueryBuilder
,
alias
:
string
,
options
?:
Omit
<
JoinOptions
,
"alias"
|
"type"
>
,
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
alias
:
string
options
:
Omit
<
JoinOptions
,
"alias"
|
"type"
>
= {}
Returns
this
join
join
(
table
:
string
,
onCondition
:
string
,
options
?:
JoinOptions
)
:
this
Parameters
table
:
string
onCondition
:
string
options
:
JoinOptions
= {}
Returns
this
left
Join
leftJoin
(
table
:
string
,
onCondition
:
string
,
options
?:
Omit
<
JoinOptions
,
"type"
>
,
)
:
this
Parameters
table
:
string
onCondition
:
string
options
:
Omit
<
JoinOptions
,
"type"
>
= {}
Returns
this
cross
Join
crossJoin
(
table
:
string
,
options
?:
Omit
<
JoinOptions
,
"type"
>
)
:
this
Parameters
table
:
string
options
:
Omit
<
JoinOptions
,
"type"
>
= {}
Returns
this
window
window
(
name
:
string
,
definition
:
string
)
:
this
Parameters
name
:
string
definition
:
string
Returns
this
where
where
(
condition
:
string
,
...
params
:
QueryValue
[]
)
:
this
Parameters
condition
:
string
...
params
:
QueryValue
[]
Returns
this
and
Where
andWhere
(
condition
:
string
,
...
params
:
QueryValue
[]
)
:
this
Parameters
condition
:
string
...
params
:
QueryValue
[]
Returns
this
or
Where
orWhere
(
condition
:
string
,
...
params
:
QueryValue
[]
)
:
this
Parameters
condition
:
string
...
params
:
QueryValue
[]
Returns
this
where
Exists
whereExists
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
and
Where
Exists
andWhereExists
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
or
Where
Exists
orWhereExists
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
where
Not
Exists
whereNotExists
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
and
Where
Not
Exists
andWhereNotExists
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
or
Where
Not
Exists
orWhereNotExists
(
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
where
In
Subquery
whereInSubquery
(
columnExpression
:
string
,
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
columnExpression
:
string
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
and
Where
In
Subquery
andWhereInSubquery
(
columnExpression
:
string
,
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
columnExpression
:
string
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
or
Where
In
Subquery
orWhereInSubquery
(
columnExpression
:
string
,
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
columnExpression
:
string
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
where
Not
In
Subquery
whereNotInSubquery
(
columnExpression
:
string
,
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
columnExpression
:
string
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
and
Where
Not
In
Subquery
andWhereNotInSubquery
(
columnExpression
:
string
,
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
columnExpression
:
string
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
or
Where
Not
In
Subquery
orWhereNotInSubquery
(
columnExpression
:
string
,
query
:
string
|
SqliteQueryBuilder
,
params
?:
QueryValue
[]
,
)
:
this
Parameters
columnExpression
:
string
query
:
string
|
SqliteQueryBuilder
params
:
QueryValue
[]
= []
Returns
this
having
having
(
condition
:
string
,
...
params
:
QueryValue
[]
)
:
this
Parameters
condition
:
string
...
params
:
QueryValue
[]
Returns
this
and
Having
andHaving
(
condition
:
string
,
...
params
:
QueryValue
[]
)
:
this
Parameters
condition
:
string
...
params
:
QueryValue
[]
Returns
this
or
Having
orHaving
(
condition
:
string
,
...
params
:
QueryValue
[]
)
:
this
Parameters
condition
:
string
...
params
:
QueryValue
[]
Returns
this
group
By
groupBy
(
expressions
:
string
|
string
[]
)
:
this
Parameters
expressions
:
string
|
string
[]
Returns
this
order
By
orderBy
(
expression
:
string
,
direction
?:
QueryOrderDirection
)
:
this
Parameters
expression
:
string
direction
:
QueryOrderDirection
= "ASC"
Returns
this
limit
limit
(
value
:
number
)
:
this
Parameters
value
:
number
Returns
this
offset
offset
(
value
:
number
)
:
this
Parameters
value
:
number
Returns
this
page
page
(
value
:
number
)
:
this
Parameters
value
:
number
Returns
this
page
Size
pageSize
(
value
:
number
)
:
this
Parameters
value
:
number
Returns
this
to
SQL
toSQL
()
:
QueryBuildResult
Returns
QueryBuildResult
all
all
<
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
>
()
:
TRow
[]
Type Parameters
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
Returns
TRow
[]
first
first
<
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
>
()
:
|
TRow
|
undefined
Type Parameters
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
Returns
TRow
|
undefined
all
Async
allAsync
<
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
>
()
:
Promise
<
TRow
[]
,
>
Type Parameters
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
Returns
Promise
<
TRow
[]
>
first
Async
firstAsync
<
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
>
()
:
Promise
<
TRow
|
undefined
,
>
Type Parameters
TRow
extends
Record
<
string
,
unknown
>
=
Record
<
string
,
unknown
>
Returns
Promise
<
TRow
|
undefined
>
Settings
Member Visibility
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Methods
with
with
Recursive
from
from
Subquery
union
union
All
intersect
except
join
Subquery
left
Join
Subquery
cross
Join
Subquery
join
left
Join
cross
Join
window
where
and
Where
or
Where
where
Exists
and
Where
Exists
or
Where
Exists
where
Not
Exists
and
Where
Not
Exists
or
Where
Not
Exists
where
In
Subquery
and
Where
In
Subquery
or
Where
In
Subquery
where
Not
In
Subquery
and
Where
Not
In
Subquery
or
Where
Not
In
Subquery
having
and
Having
or
Having
group
By
order
By
limit
offset
page
page
Size
to
SQL
all
first
all
Async
first
Async
SQLQueryHelperjs - v1.2.6
Loading...