Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "query2-ast"

Index

Functions

Const _generateAST

Const _processArrayWhere

Const _processFunctionString

  • Convert a string that might contain a nested function call into an AST, or leave it as a string if it doesn't.

    Parameters

    • functionString: string

    Returns string | InanoSQLFunctionQuery

Const _processOffsetLimit

  • _processOffsetLimit(offset: number, limit: number): undefined | [number, number]
  • Process .offset() and .limit() queries from user into tuple.

    Parameters

    • offset: number
    • limit: number

    Returns undefined | [number, number]

Const _processSelectArgs

  • _processSelectArgs(args: string[] | undefined): undefined | object[]
  • Converts SELECT arguments into an AST.

    Parameters

    • args: string[] | undefined

    Returns undefined | object[]

Const _processSingleSortBy

Const _processSortBy

  • Process .orderBy() and .groupBy() arguments from user into AST.

    Parameters

    • Optional sortArgs: string[] | object

    Returns undefined | InanoSQLProcessedSort[]

Const _processWhere

Generated using TypeDoc