Class AbstractSchemaHandler
Properties
Readonly type
type: string
Static operations
operations: {} = {}
Type declaration
-
[type: string]: {}
-
[op: string]: (...args: any[]) => string
-
-
Parameters
Returns string
Static typeMap
typeMap: {} = {}
Static types
types: string[] = []
Static values
values: {} = {}
Type declaration
-
[type: string]: {}
-
[op: string]: (...args: any[]) => string
-
-
Parameters
Returns string
Methods
escape
- escape(name: string, quote?: boolean): string
-
Parameters
-
name: string
-
quote: boolean = true
Returns string
getCollection
- getCollection(name: string): Promise<any>
-
Parameters
Returns Promise<any>
Abstract getCollectionNames
- getCollectionNames(): Promise<string[]>
-
Returns Promise<string[]>
getCollections
- getCollections(names: string[]): Promise<ICollection[]>
getOperationHandle
- getOperationHandle(name: string): (...args: any[]) => string
-
Parameters
Returns (...args: any[]) => string
-
-
Parameters
Returns string
getValueHandle
- getValueHandle(name: string): (...args: any[]) => string
-
Parameters
Returns (...args: any[]) => string
-
-
Parameters
Returns string
registerOperationHandle
- registerOperationHandle(name: string, op: (...args: any[]) => string): void
-
Parameters
-
name: string
-
op: (...args: any[]) => string
-
-
Parameters
Returns string
Returns void
registerValueHandle
- registerValueHandle(name: string, op: (...args: any[]) => string): void
-
Parameters
-
name: string
-
op: (...args: any[]) => string
-
-
Parameters
Returns string
Returns void
supportsSortNull
- supportsSortNull(): boolean
translateToJsType
- translateToJsType(dbType: string): JS_DATA_TYPES
-
Parameters
Returns JS_DATA_TYPES
translateToStorageType
- translateToStorageType(jsType: string, length?: number): IDBType
-
Parameters
-
jsType: string
-
length: number = null
Returns false if db type doesn't supports json type for columns