Class UserConnection<TColumn, TTable, TRow, TResult>Abstract
Properties
Protected
Readonly
connection
Protected
table
table: TTable
Methods
count
- count(distinct: boolean, tables: string, columns?: string[], where?: string, whereArgs?: [] | DBValue[], join?: string, groupBy?: string, having?: string, orderBy?: string, limit?: number, offset?: number): number
-
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
countColumn
- countColumn(table: string, distinct: boolean, column: string, where: string, args: any[]): number
-
Parameters
-
table: string
-
distinct: boolean
-
column: string
-
where: string
-
args: any[]
Returns number
Protected
Abstract
createResult
- createResult(columns: string[], resultSet: ResultSet, sql: string, selectionArgs: string[]): TResult
-
Parameters
-
columns: string[]
-
-
sql: string
-
selectionArgs: string[]
Returns TResult
getTable
- getTable(): TTable
-
Returns TTable
query
- query(distinct: boolean, tables: string, columns?: string[], where?: string, whereArgs?: any[], join?: string, groupBy?: string, having?: string, orderBy?: string, limit?: number, offset?: number): TResult
-
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
querySQL
- querySQL(distinct: boolean, tables: string, columns?: string[], where?: string, join?: string, groupBy?: string, having?: string, orderBy?: string, limit?: number, offset?: number): string
-
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
rawQuery
- rawQuery(sql: string, selectionArgs: []): TResult
-
Parameters
-
sql: string
-
selectionArgs: []
Returns TResult
rawQueryWithColumns
- rawQueryWithColumns(sql: string, columns: string[], selectionArgs: any[]): TResult
-
Parameters
-
sql: string
-
columns: string[]
-
selectionArgs: any[]
Returns TResult
setTable
- setTable(table: TTable): void
-
Returns void
GeoPackage Connection used to define common functionality within different connection types