sqlkit
Preparing search index...
SelectQueryBuilder
Class SelectQueryBuilder<T>
Type Parameters
T
Hierarchy (
View Summary
)
BaseQueryBuilder
<
T
>
SelectQueryBuilder
Index
Constructors
constructor
Properties
executor?
table
Name
Methods
build
commit
join
limit
offset
order
By
paginate
select
where
Constructors
constructor
new
SelectQueryBuilder
<
T
>
(
tableName
:
string
,
executor
?:
SqlExecutor
<
T
>
,
)
:
SelectQueryBuilder
<
T
>
Type Parameters
T
Parameters
tableName
:
string
Optional
executor
:
SqlExecutor
<
T
>
Returns
SelectQueryBuilder
<
T
>
Properties
Protected
Optional
Readonly
executor
executor
?:
SqlExecutor
<
T
>
Protected
Readonly
table
Name
tableName
:
string
Methods
build
build
()
:
{
sql
:
string
;
values
:
any
[]
}
Returns
{
sql
:
string
;
values
:
any
[]
}
commit
commit
()
:
Promise
<
QueryResult
<
any
>
>
Returns
Promise
<
QueryResult
<
any
>
>
join
join
<
F
>
(
join
:
Join
<
T
,
F
>
)
:
this
Type Parameters
F
Parameters
join
:
Join
<
T
,
F
>
Returns
this
limit
limit
(
limit
:
number
)
:
this
Parameters
limit
:
number
Returns
this
offset
offset
(
offset
:
number
)
:
this
Parameters
offset
:
number
Returns
this
order
By
orderBy
(
orderBy
:
OrderBy
<
T
>
|
OrderBy
<
T
>
[]
)
:
this
Parameters
orderBy
:
OrderBy
<
T
>
|
OrderBy
<
T
>
[]
Returns
this
paginate
paginate
(
options
:
PaginationOptions
<
T
>
)
:
Promise
<
PaginatedResult
<
T
>
>
Parameters
options
:
PaginationOptions
<
T
>
Returns
Promise
<
PaginatedResult
<
T
>
>
select
select
(
columns
?:
(
keyof
T
)
[]
)
:
this
Parameters
Optional
columns
: (
keyof
T
)
[]
Returns
this
where
where
(
condition
:
WhereCondition
<
T
>
)
:
this
Parameters
condition
:
WhereCondition
<
T
>
Returns
this
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
executor
table
Name
Methods
build
commit
join
limit
offset
order
By
paginate
select
where
sqlkit
Loading...