Class: DBReference
@divine/uri.DBDriver.DBReference
Constructors
constructor
• new DBReference(_dbURI
)
Parameters
Name | Type |
---|---|
_dbURI | DatabaseURI |
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
Name | Type |
---|---|
value | unknown |
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
Name | Type |
---|---|
value | unknown |
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
Name | Type |
---|---|
value | unknown |
keysRequired | boolean |
Returns
[scope: Scope, columns: string[], objects: Params[], keys?: string[]]
Defined in
uri/src/database-driver.ts:341
_getColumns
▸ Protected
_getColumns(): DBQuery
Returns
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
Name | Type |
---|---|
filter | Filter |
Returns
Defined in
uri/src/database-driver.ts:245
_getKeys
▸ Protected
_getKeys(): DBQuery
Returns
Defined in
uri/src/database-driver.ts:235
_getLockClause
▸ Protected
_getLockClause(): DBQuery
Returns
Defined in
uri/src/database-driver.ts:302
_getOrderClause
▸ Protected
_getOrderClause(): DBQuery
Returns
Defined in
uri/src/database-driver.ts:288
_getPagingClause
▸ Protected
_getPagingClause(): DBQuery
Returns
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
Defined in
uri/src/database-driver.ts:231
_getWhereClause
▸ Protected
_getWhereClause(): DBQuery
Returns
Defined in
uri/src/database-driver.ts:284
_makeIOError
▸ Protected
_makeIOError(message
, err?
): IOError
Parameters
Name | Type |
---|---|
message | string |
err? | Error |
Returns
Defined in
uri/src/database-driver.ts:223
_quote
▸ Protected
_quote(ddl
): DBQuery
Parameters
Name | Type |
---|---|
ddl | string |
Returns
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
Name | Type |
---|---|
value | unknown |
Returns
Defined in
uri/src/database-driver.ts:418
getLoadQuery
▸ getLoadQuery(): DBQuery
Returns
Defined in
uri/src/database-driver.ts:328
getModifyQuery
▸ getModifyQuery(value
): DBQuery
Parameters
Name | Type |
---|---|
value | unknown |
Returns
Defined in
uri/src/database-driver.ts:464
getRemoveQuery
▸ getRemoveQuery(): DBQuery
Returns
Defined in
uri/src/database-driver.ts:488
getSaveQuery
▸ getSaveQuery(value
): DBQuery
Parameters
Name | Type |
---|---|
value | unknown |