Skip to main content

Class: DBReference

@divine/uri.DBDriver.DBReference

Constructors

constructor

new DBReference(_dbURI)

Parameters

NameType
_dbURIDatabaseURI

Defined in

uri/src/database-driver.ts:207

Properties

_dbURI

Protected _dbURI: DatabaseURI

Defined in

uri/src/database-driver.ts:207


columns

Optional columns: string[]

Defined in

uri/src/database-driver.ts:202


filter

Optional filter: Filter

Defined in

uri/src/database-driver.ts:204


keys

Optional keys: string[]

Defined in

uri/src/database-driver.ts:201


params

params: Params

Defined in

uri/src/database-driver.ts:205


scope

Optional scope: Scope

Defined in

uri/src/database-driver.ts:203


table

table: string[]

Defined in

uri/src/database-driver.ts:200

Methods

_checkAppendArguments

Protected _checkAppendArguments(value): [scope: Scope, columns: string[], objects: Params[]]

Parameters

NameType
valueunknown

Returns

[scope: Scope, columns: string[], objects: Params[]]

Defined in

uri/src/database-driver.ts:360


_checkLoadArguments

Protected _checkLoadArguments(): void

Returns

void

Defined in

uri/src/database-driver.ts:319


_checkModifyArguments

Protected _checkModifyArguments(value): [scope: Scope, columns: string[], object: Params]

Parameters

NameType
valueunknown

Returns

[scope: Scope, columns: string[], object: Params]

Defined in

uri/src/database-driver.ts:424


_checkSaveArguments

Protected _checkSaveArguments(value, keysRequired): [scope: Scope, columns: string[], objects: Params[], keys?: string[]]

Parameters

NameType
valueunknown
keysRequiredboolean

Returns

[scope: Scope, columns: string[], objects: Params[], keys?: string[]]

Defined in

uri/src/database-driver.ts:341


_getColumns

Protected _getColumns(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:239


_getCountAndOffset

Protected _getCountAndOffset(): [count?: number, offset?: number]

Returns

[count?: number, offset?: number]

Defined in

uri/src/database-driver.ts:270


_getFilter

Protected _getFilter(filter): DBQuery

Parameters

NameType
filterFilter

Returns

DBQuery

Defined in

uri/src/database-driver.ts:245


_getKeys

Protected _getKeys(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:235


_getLockClause

Protected _getLockClause(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:302


_getOrderClause

Protected _getOrderClause(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:288


_getPagingClause

Protected _getPagingClause(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:294


_getSortOrder

Protected _getSortOrder(): [column?: string, desc?: boolean]

Returns

[column?: string, desc?: boolean]

Defined in

uri/src/database-driver.ts:261


_getTable

Protected _getTable(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:231


_getWhereClause

Protected _getWhereClause(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:284


_makeIOError

Protected _makeIOError(message, err?): IOError

Parameters

NameType
messagestring
err?Error

Returns

IOError

Defined in

uri/src/database-driver.ts:223


_quote

Protected _quote(ddl): DBQuery

Parameters

NameType
ddlstring

Returns

DBQuery

Defined in

uri/src/database-driver.ts:227


checkRemoveArguments

checkRemoveArguments(): void

Returns

void

Defined in

uri/src/database-driver.ts:470


getAppendQuery

getAppendQuery(value): DBQuery

Parameters

NameType
valueunknown

Returns

DBQuery

Defined in

uri/src/database-driver.ts:418


getLoadQuery

getLoadQuery(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:328


getModifyQuery

getModifyQuery(value): DBQuery

Parameters

NameType
valueunknown

Returns

DBQuery

Defined in

uri/src/database-driver.ts:464


getRemoveQuery

getRemoveQuery(): DBQuery

Returns

DBQuery

Defined in

uri/src/database-driver.ts:488


getSaveQuery

getSaveQuery(value): DBQuery

Parameters

NameType
valueunknown

Returns

DBQuery

Defined in

uri/src/database-driver.ts:354