UNPKG

@syntropylog/adapters

Version:
39 lines 1.09 kB
import { ISerializer, SerializationContext, SerializationResult } from '../../types'; export interface MySQLQuery { sql: string; values?: any[]; timeout?: number; connectionConfig?: { host?: string; port?: number; database?: string; user?: string; password?: string; }; } export interface MySQLError { code: string; errno: number; sqlMessage: string; sqlState: string; index: number; sql: string; fatal: boolean; } export declare class MySQLSerializer implements ISerializer { name: string; priority: number; canSerialize(data: any): boolean; getComplexity(data: any): 'low' | 'medium' | 'high'; serialize(data: any, context: SerializationContext): Promise<SerializationResult>; private isMySQLQuery; private isMySQLError; private isMySQLConnection; private isMySQLPool; private assessQueryComplexity; private serializeQuery; private serializeError; private serializeConnection; private serializePool; } //# sourceMappingURL=MySQLSerializer.d.ts.map