Interface IDbControllerModel

Интерфейс для абстрактного класса служащего прослойкой между логикой ядра и подключением к БД.

Hierarchy

  • IDbControllerModel

Implemented by

Indexable

[name: string]: any

Properties

destroy: (() => void)

Type declaration

    • (): void
    • Returns void

escapeString: ((str: string | number) => string)

Type declaration

    • (str: string | number): string
    • Parameters

      • str: string | number

      Returns string

getValue: ((res: IModelRes) => null | IDbControllerResult)

Type declaration

insert: ((insertData: QueryData) => any)

Type declaration

isConnected: (() => Promise<boolean>)

Type declaration

    • (): Promise<boolean>
    • Returns Promise<boolean>

primaryKeyName: TKey
query: ((callback: Function) => any)

Type declaration

    • (callback: Function): any
    • Parameters

      • callback: Function

      Returns any

remove: ((removeData: QueryData) => any)

Type declaration

save: ((saveData: QueryData, isNew: boolean) => Promise<any>)

Type declaration

    • (saveData: QueryData, isNew: boolean): Promise<any>
    • Parameters

      Returns Promise<any>

select: ((select: null | IQueryData, isOne: boolean) => Promise<IModelRes>)

Type declaration

selectOne: ((query: null | IQueryData) => Promise<null | IModelRes>)

Type declaration

setRules: ((rules: IModelRules[]) => void)

Type declaration

tableName: string
update: ((updateData: QueryData) => any)

Type declaration

Generated using TypeDoc