Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "qvar"

Index

Variables

Let AUTO_QVAR_ID

AUTO_QVAR_ID: number = 0

Const AUTO_QVAR_PREFIX

AUTO_QVAR_PREFIX: "?__q" = "?__q"

Functions

Const autoQVar

  • autoQVar(): string

Const isAutoQVar

  • isAutoQVar(x: any): boolean

Const isQVar

  • isQVar(x: any): boolean

Const qvarName

  • qvarName(x: string): string

Const qvarResolver

  • qvarResolver(vs: boolean, vp: boolean, vo: boolean, s: string, p: string, o: string): undefined | (Anonymous function)
  • Returns an optimized query variable solution extractor function based on given pattern type. vs, vp, vo are flags to indicate if s, p and/or o pattern items are query variables. The returned fn will be optimized to 1 of the 8 possible case and accepts a single fact to extract the respective variables from.

    Parameters

    • vs: boolean

      -

    • vp: boolean

      -

    • vo: boolean

      -

    • s: string

      -

    • p: string

      -

    • o: string

      -

    Returns undefined | (Anonymous function)

Generated using TypeDoc