Skip to main content

handlers_mysql_src.default

Class: default#

handlers/mysql/src.default

Implements#

Table of contents#

Constructors#

Methods#

Constructors#

constructor#

+ new default(__namedParameters: GetMeshSourceOptions<MySQLHandler, MySQLIntrospectionCache\>): default

Parameters:#

NameType
__namedParametersGetMeshSourceOptions<MySQLHandler, MySQLIntrospectionCache\>

Returns: default

Defined in: packages/handlers/mysql/src/index.ts:85

Methods#

getMeshSource#

getMeshSource(): Promise<MeshSource<any, any\>\>

Returns: Promise<MeshSource<any, any\>\>

Implementation of: MeshHandler.getMeshSource

Defined in: packages/handlers/mysql/src/index.ts:158


getPromisifiedConnection#

getPromisifiedConnection(pool: Pool): Promise<{ connection: PoolConnection ; count: (arg: string, arg2: any) => Promise<number\> ; deleteRow: (arg: string, arg2: any) => Promise<{ affectedRows: any }\> ; getDatabaseTables: (arg: string) => Promise<Record<string, DatabaseTable\>\> ; getTableFields: (arg: string) => Promise<Record<string, TableField\>\> ; getTableForeigns: (arg: string) => Promise<Record<string, TableForeign\>\> ; getTablePrimaryKeyMetadata: (arg: string) => Promise<TablePrimaryKey\> ; insert: (arg: string, arg2: Record<string, any\>) => Promise<{ recordId: string | number }\> ; select: (arg: string, arg2: string[], arg3: any, arg4: any) => Promise<any[]\> ; selectLimit: (arg: string, arg2: string[], arg3: number[], arg4: any, arg5: any) => Promise<any[]\> ; update: (arg: string, arg2: any, arg3: any) => Promise<{ affectedRows: any }\> }\>

Parameters:#

NameType
poolPool

Returns: Promise<{ connection: PoolConnection ; count: (arg: string, arg2: any) => Promise<number\> ; deleteRow: (arg: string, arg2: any) => Promise<{ affectedRows: any }\> ; getDatabaseTables: (arg: string) => Promise<Record<string, DatabaseTable\>\> ; getTableFields: (arg: string) => Promise<Record<string, TableField\>\> ; getTableForeigns: (arg: string) => Promise<Record<string, TableForeign\>\> ; getTablePrimaryKeyMetadata: (arg: string) => Promise<TablePrimaryKey\> ; insert: (arg: string, arg2: Record<string, any\>) => Promise<{ recordId: string | number }\> ; select: (arg: string, arg2: string[], arg3: any, arg4: any) => Promise<any[]\> ; selectLimit: (arg: string, arg2: string[], arg3: number[], arg4: any, arg5: any) => Promise<any[]\> ; update: (arg: string, arg2: any, arg3: any) => Promise<{ affectedRows: any }\> }\>

Defined in: packages/handlers/mysql/src/index.ts:99