#
Interface: Ref<TSrc, TMapping>#
Type parametersName | Type |
---|---|
TSrc | string |
TMapping | {} |
#
HierarchyRaw<string>
↳ Ref
#
Properties#
[Symbol.toStringTag]• Readonly
[Symbol.toStringTag]: string
Inherited from: Raw.[Symbol.toStringTag]
Defined in: node_modules/knex/types/index.d.ts:1639
#
__@RefMemberTag@52085• __@RefMemberTag@52085: { mapping
: TMapping ; src
: TSrc }
#
Type declaration:Name | Type |
---|---|
mapping | TMapping |
src | TSrc |
Defined in: node_modules/knex/types/index.d.ts:1526
#
Methods#
addListenerâ–¸ addListener(event
: string | symbol, listener
: (...args
: any[]) => void): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event | string | symbol |
listener | (...args : any[]) => void |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:57
#
asâ–¸ as<TAlias>(alias
: TAlias): Ref<TSrc, { [K in string]: TSrc}>
#
Type parameters:Name | Type |
---|---|
TAlias | string |
#
Parameters:Name | Type |
---|---|
alias | TAlias |
Returns: Ref<TSrc, { [K in string]: TSrc}>
Defined in: node_modules/knex/types/index.d.ts:1531
#
asCallbackâ–¸ asCallback(callback
: Function): Promise<string>
#
Parameters:Name | Type |
---|---|
callback | Function |
Returns: Promise<string>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1657
#
catchâ–¸ catch<TResult>(onrejected?
: null | (reason
: any) => TResult | PromiseLike<TResult>): Promise<string | TResult>
Attaches a callback for only the rejection of the Promise.
#
Type parameters:Name | Default |
---|---|
TResult | never |
#
Parameters:Name | Type | Description |
---|---|---|
onrejected? | null | (reason : any) => TResult | PromiseLike<TResult> | The callback to execute when the Promise is rejected. |
Returns: Promise<string | TResult>
A Promise for the completion of the callback.
Inherited from: Raw
Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:1448
#
connectionâ–¸ connection(connection
: any): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
connection | any |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1644
#
debugâ–¸ debug(enabled
: boolean): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
enabled | boolean |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1645
#
emitâ–¸ emit(event
: string | symbol, ...args
: any[]): boolean
#
Parameters:Name | Type |
---|---|
event | string | symbol |
...args | any[] |
Returns: boolean
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:67
#
eventNamesâ–¸ eventNames(): (string | symbol)[]
Returns: (string | symbol)[]
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:72
#
finallyâ–¸ finally(onfinally?
: null | () => void): Promise<string>
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
#
Parameters:Name | Type | Description |
---|---|---|
onfinally? | null | () => void | The callback to execute when the Promise is settled (fulfilled or rejected). |
Returns: Promise<string>
A Promise for the completion of the callback.
Inherited from: Raw
Defined in: docs/node_modules/typescript/lib/lib.es2018.promise.d.ts:31
#
getMaxListenersâ–¸ getMaxListeners(): number
Returns: number
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:64
#
listenerCountâ–¸ listenerCount(event
: string | symbol): number
#
Parameters:Name | Type |
---|---|
event | string | symbol |
Returns: number
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:68
#
listenersâ–¸ listeners(event
: string | symbol): Function[]
#
Parameters:Name | Type |
---|---|
event | string | symbol |
Returns: Function[]
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:65
#
offâ–¸ off(event
: string | symbol, listener
: (...args
: any[]) => void): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event | string | symbol |
listener | (...args : any[]) => void |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:61
#
onâ–¸ on(event
: string | symbol, listener
: (...args
: any[]) => void): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event | string | symbol |
listener | (...args : any[]) => void |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:58
#
onceâ–¸ once(event
: string | symbol, listener
: (...args
: any[]) => void): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event | string | symbol |
listener | (...args : any[]) => void |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:59
#
optionsâ–¸ options(options
: Readonly<{ [key: string]: any; }>): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
options | Readonly<{ [key: string]: any; }> |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1643
#
pipeâ–¸ pipe<T>(writable
: T, options?
: Readonly<{ [key: string]: any; }>): PassThrough
#
Type parameters:Name | Type |
---|---|
T | WritableStream<T> |
#
Parameters:Name | Type |
---|---|
writable | T |
options? | Readonly<{ [key: string]: any; }> |
Returns: PassThrough
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1653
#
prependListenerâ–¸ prependListener(event
: string | symbol, listener
: (...args
: any[]) => void): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event | string | symbol |
listener | (...args : any[]) => void |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:70
#
prependOnceListenerâ–¸ prependOnceListener(event
: string | symbol, listener
: (...args
: any[]) => void): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event | string | symbol |
listener | (...args : any[]) => void |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:71
#
queryContextâ–¸ queryContext(context
: any): Raw<string>
#
Parameters:Name | Type |
---|---|
context | any |
Returns: Raw<string>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1502
â–¸ queryContext(): any
Returns: any
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1503
#
rawListenersâ–¸ rawListeners(event
: string | symbol): Function[]
#
Parameters:Name | Type |
---|---|
event | string | symbol |
Returns: Function[]
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:66
#
removeAllListenersâ–¸ removeAllListeners(event?
: string | symbol): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event? | string | symbol |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:62
#
removeListenerâ–¸ removeListener(event
: string | symbol, listener
: (...args
: any[]) => void): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
event | string | symbol |
listener | (...args : any[]) => void |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:60
#
setMaxListenersâ–¸ setMaxListeners(n
: number): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
n | number |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/@types/node/events.d.ts:63
#
streamâ–¸ stream(handler
: (readable
: PassThrough) => any): Promise<any>
#
Parameters:Name | Type |
---|---|
handler | (readable : PassThrough) => any |
Returns: Promise<any>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1647
â–¸ stream(options
: Readonly<{ [key: string]: any; }>, handler
: (readable
: PassThrough) => any): Promise<any>
#
Parameters:Name | Type |
---|---|
options | Readonly<{ [key: string]: any; }> |
handler | (readable : PassThrough) => any |
Returns: Promise<any>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1648
â–¸ stream(options?
: Readonly<{ [key: string]: any; }>): PassThrough
#
Parameters:Name | Type |
---|---|
options? | Readonly<{ [key: string]: any; }> |
Returns: PassThrough
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1652
#
thenâ–¸ then<TResult1, TResult2>(onfulfilled?
: null | (value
: string) => TResult1 | PromiseLike<TResult1>, onrejected?
: null | (reason
: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>
Attaches callbacks for the resolution and/or rejection of the Promise.
#
Type parameters:Name | Default |
---|---|
TResult1 | string |
TResult2 | never |
#
Parameters:Name | Type | Description |
---|---|---|
onfulfilled? | null | (value : string) => TResult1 | PromiseLike<TResult1> | The callback to execute when the Promise is resolved. |
onrejected? | null | (reason : any) => TResult2 | PromiseLike<TResult2> | The callback to execute when the Promise is rejected. |
Returns: Promise<TResult1 | TResult2>
A Promise for the completion of which ever callback is executed.
Inherited from: Raw
Defined in: docs/node_modules/typescript/lib/lib.es5.d.ts:1441
#
timeoutâ–¸ timeout(ms
: number, options?
: { cancel?
: undefined | boolean }): Raw<string>
#
Parameters:Name | Type |
---|---|
ms | number |
options? | { cancel? : undefined | boolean } |
Returns: Raw<string>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1499
#
toQueryâ–¸ toQuery(): string
Returns: string
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1642
#
toSQLâ–¸ toSQL(): Sql
Returns: Sql
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1501
#
transactingâ–¸ transacting(trx
: Transaction<any, any>): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
trx | Transaction<any, any> |
Returns: Ref<TSrc, TMapping>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1646
#
withSchemaâ–¸ withSchema(schema
: string): Ref<TSrc, TMapping>
#
Parameters:Name | Type |
---|---|
schema | string |
Returns: Ref<TSrc, TMapping>
Defined in: node_modules/knex/types/index.d.ts:1530
#
wrapâ–¸ wrap<TResult2>(before
: string, after
: string): Raw<string>
#
Type parameters:Name | Default |
---|---|
TResult2 | string |
#
Parameters:Name | Type |
---|---|
before | string |
after | string |
Returns: Raw<string>
Inherited from: Raw
Defined in: node_modules/knex/types/index.d.ts:1500