Class UserConnection<TColumn, TTable, TRow, TResult>Abstract

GeoPackage Connection used to define common functionality within different connection types

Type Parameters

  • TColumn extends UserColumn

    column type

  • TTable extends UserTable<TColumn>

    table type

  • TRow extends UserRow<TColumn, TTable>

    row type

  • TResult extends UserResultSet<TColumn, TTable, TRow>

    result type

Hierarchy

Constructors

Properties

Connection

table: TTable

Table

Methods

  • Perform query

    Parameters

    • distinct: boolean
    • tables: string
    • Optional columns: string[]
    • Optional where: string
    • Optional whereArgs: [] | DBValue[]
    • Optional join: string
    • Optional groupBy: string
    • Optional having: string
    • Optional orderBy: string
    • Optional limit: number
    • Optional offset: number

    Returns number

  • Get a count of results

    Returns

    count

    Parameters

    • table: string

      table name

    • distinct: boolean

      distinct column flag

    • column: string

      column name

    • where: string

      where clause

    • args: any[]

      arguments

    Returns number

  • Create a result by wrapping the ResultSet

    Returns

    result

    Parameters

    • columns: string[]

      result set

    • resultSet: ResultSet

      result set

    • sql: string

      SQL statement

    • selectionArgs: string[]

      selection arguments

    Returns TResult

  • Perform query

    Parameters

    • distinct: boolean
    • tables: string
    • Optional columns: string[]
    • Optional where: string
    • Optional whereArgs: any[]
    • Optional join: string
    • Optional groupBy: string
    • Optional having: string
    • Optional orderBy: string
    • Optional limit: number
    • Optional offset: number

    Returns TResult

  • Inherit Doc

    Parameters

    • distinct: boolean
    • tables: string
    • Optional columns: string[]
    • Optional where: string
    • Optional join: string
    • Optional groupBy: string
    • Optional having: string
    • Optional orderBy: string
    • Optional limit: number
    • Optional offset: number

    Returns string

  • Perform raw query

    Parameters

    • sql: string
    • selectionArgs: []

    Returns TResult

  • Perform raw query with specified columns

    Parameters

    • sql: string
    • columns: string[]
    • selectionArgs: any[]

    Returns TResult

Generated using TypeDoc