knex/lib/query/method-constants.js

137 lines
2.2 KiB
JavaScript
Raw Permalink Normal View History

2015-05-09 13:58:18 -04:00
// All properties we can use to start a query chain
// from the `knex` object, e.g. `knex.select('*').from(...`
module.exports = [
'with',
'withRecursive',
'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',
'andWhereBetween',
'andWhereNotBetween',
2015-05-09 13:58:18 -04:00
'orWhereBetween',
'orWhereNotBetween',
'groupBy',
'groupByRaw',
'orderBy',
'orderByRaw',
'union',
'unionAll',
'intersect',
'except',
2015-05-09 13:58:18 -04:00
'having',
'havingRaw',
'orHaving',
'orHavingRaw',
'offset',
'limit',
'count',
'countDistinct',
2015-05-09 13:58:18 -04:00
'min',
'max',
'sum',
'sumDistinct',
2015-05-09 13:58:18 -04:00
'avg',
'avgDistinct',
2015-05-09 13:58:18 -04:00
'increment',
'decrement',
'first',
'debug',
'pluck',
'clearSelect',
'clearWhere',
2020-04-12 20:09:51 -03:00
'clearGroup',
'clearOrder',
'clearHaving',
2015-05-09 13:58:18 -04:00
'insert',
'update',
'returning',
'del',
'delete',
'truncate',
'transacting',
'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',
];