2015-05-09 13:58:18 -04:00
|
|
|
// All properties we can use to start a query chain
|
2019-06-26 01:31:23 -05:00
|
|
|
// from the `knex` object, e.g. `knex.select('*').from(...`
|
2019-06-04 00:37:17 +02:00
|
|
|
module.exports = [
|
2016-09-13 12:14:04 +02:00
|
|
|
'with',
|
2018-11-04 19:30:04 -06:00
|
|
|
'withRecursive',
|
2022-02-07 14:18:35 -08:00
|
|
|
'withMaterialized',
|
|
|
|
'withNotMaterialized',
|
2015-05-09 13:58:18 -04:00
|
|
|
'select',
|
|
|
|
'as',
|
|
|
|
'columns',
|
|
|
|
'column',
|
|
|
|
'from',
|
|
|
|
'fromJS',
|
2021-10-29 23:40:57 +02:00
|
|
|
'fromRaw',
|
2015-05-09 13:58:18 -04:00
|
|
|
'into',
|
2015-08-14 19:13:18 -03:00
|
|
|
'withSchema',
|
2015-05-09 13:58:18 -04:00
|
|
|
'table',
|
|
|
|
'distinct',
|
|
|
|
'join',
|
|
|
|
'joinRaw',
|
|
|
|
'innerJoin',
|
|
|
|
'leftJoin',
|
|
|
|
'leftOuterJoin',
|
|
|
|
'rightJoin',
|
|
|
|
'rightOuterJoin',
|
|
|
|
'outerJoin',
|
|
|
|
'fullOuterJoin',
|
|
|
|
'crossJoin',
|
|
|
|
'where',
|
|
|
|
'andWhere',
|
|
|
|
'orWhere',
|
|
|
|
'whereNot',
|
|
|
|
'orWhereNot',
|
2022-03-01 20:19:35 +01:00
|
|
|
'whereLike',
|
|
|
|
'andWhereLike',
|
|
|
|
'orWhereLike',
|
|
|
|
'whereILike',
|
|
|
|
'andWhereILike',
|
|
|
|
'orWhereILike',
|
2015-05-09 13:58:18 -04:00
|
|
|
'whereRaw',
|
|
|
|
'whereWrapped',
|
|
|
|
'havingWrapped',
|
|
|
|
'orWhereRaw',
|
|
|
|
'whereExists',
|
|
|
|
'orWhereExists',
|
|
|
|
'whereNotExists',
|
|
|
|
'orWhereNotExists',
|
|
|
|
'whereIn',
|
|
|
|
'orWhereIn',
|
|
|
|
'whereNotIn',
|
|
|
|
'orWhereNotIn',
|
|
|
|
'whereNull',
|
|
|
|
'orWhereNull',
|
|
|
|
'whereNotNull',
|
|
|
|
'orWhereNotNull',
|
|
|
|
'whereBetween',
|
|
|
|
'whereNotBetween',
|
2016-01-09 07:35:12 -05:00
|
|
|
'andWhereBetween',
|
|
|
|
'andWhereNotBetween',
|
2015-05-09 13:58:18 -04:00
|
|
|
'orWhereBetween',
|
|
|
|
'orWhereNotBetween',
|
|
|
|
'groupBy',
|
|
|
|
'groupByRaw',
|
|
|
|
'orderBy',
|
|
|
|
'orderByRaw',
|
|
|
|
'union',
|
|
|
|
'unionAll',
|
2019-03-03 13:57:40 -06:00
|
|
|
'intersect',
|
2023-03-29 08:03:59 -04:00
|
|
|
'except',
|
2015-05-09 13:58:18 -04:00
|
|
|
'having',
|
|
|
|
'havingRaw',
|
|
|
|
'orHaving',
|
|
|
|
'orHavingRaw',
|
|
|
|
'offset',
|
|
|
|
'limit',
|
|
|
|
'count',
|
2015-11-04 12:23:20 +00:00
|
|
|
'countDistinct',
|
2015-05-09 13:58:18 -04:00
|
|
|
'min',
|
|
|
|
'max',
|
|
|
|
'sum',
|
2015-11-04 12:23:20 +00:00
|
|
|
'sumDistinct',
|
2015-05-09 13:58:18 -04:00
|
|
|
'avg',
|
2015-11-04 12:23:20 +00:00
|
|
|
'avgDistinct',
|
2015-05-09 13:58:18 -04:00
|
|
|
'increment',
|
|
|
|
'decrement',
|
|
|
|
'first',
|
|
|
|
'debug',
|
|
|
|
'pluck',
|
2017-02-20 13:12:14 -05:00
|
|
|
'clearSelect',
|
|
|
|
'clearWhere',
|
2020-04-12 20:09:51 -03:00
|
|
|
'clearGroup',
|
2018-04-02 16:28:01 +02:00
|
|
|
'clearOrder',
|
2019-05-12 04:20:26 -04:00
|
|
|
'clearHaving',
|
2015-05-09 13:58:18 -04:00
|
|
|
'insert',
|
|
|
|
'update',
|
|
|
|
'returning',
|
|
|
|
'del',
|
|
|
|
'delete',
|
|
|
|
'truncate',
|
|
|
|
'transacting',
|
2018-07-09 08:10:34 -04:00
|
|
|
'connection',
|
2021-12-22 10:47:16 +01:00
|
|
|
|
|
|
|
// JSON methods
|
|
|
|
|
|
|
|
// Json manipulation functions
|
|
|
|
'jsonExtract',
|
|
|
|
'jsonSet',
|
|
|
|
'jsonInsert',
|
|
|
|
'jsonRemove',
|
|
|
|
|
|
|
|
// Wheres Json
|
|
|
|
'whereJsonObject',
|
|
|
|
'orWhereJsonObject',
|
|
|
|
'andWhereJsonObject',
|
|
|
|
'whereNotJsonObject',
|
|
|
|
'orWhereNotJsonObject',
|
|
|
|
'andWhereNotJsonObject',
|
|
|
|
|
|
|
|
'whereJsonPath',
|
|
|
|
'orWhereJsonPath',
|
|
|
|
'andWhereJsonPath',
|
|
|
|
|
|
|
|
'whereJsonSupersetOf',
|
|
|
|
'orWhereJsonSupersetOf',
|
|
|
|
'andWhereJsonSupersetOf',
|
|
|
|
'whereJsonNotSupersetOf',
|
|
|
|
'orWhereJsonNotSupersetOf',
|
|
|
|
'andWhereJsonNotSupersetOf',
|
|
|
|
|
|
|
|
'whereJsonSubsetOf',
|
|
|
|
'orWhereJsonSubsetOf',
|
|
|
|
'andWhereJsonSubsetOf',
|
|
|
|
'whereJsonNotSubsetOf',
|
|
|
|
'orWhereJsonNotSubsetOf',
|
|
|
|
'andWhereJsonNotSubsetOf',
|
2016-05-18 19:59:24 +10:00
|
|
|
];
|