knex/src/query/methods.js

90 lines
1.3 KiB
JavaScript
Raw 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(...`
export default [
'with',
2015-05-09 13:58:18 -04:00
'select',
'as',
'columns',
'column',
'from',
'fromJS',
'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',
'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',
'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',
'clearOrder',
2015-05-09 13:58:18 -04:00
'insert',
'update',
'returning',
'del',
'delete',
'truncate',
'transacting',
'connection'
];