This commit is contained in:
2026-03-15 12:22:42 +01:00
parent cd99275933
commit 311ba5e7f3
558 changed files with 55182 additions and 22981 deletions

View File

@@ -39,6 +39,7 @@ export * from './lib/protocol/packets/index.js';
export * from './lib/Auth.js';
export * from './lib/constants/index.js';
export * from './lib/parsers/index.js';
export * from './lib/Connection.js';
// Expose class interfaces
export interface Connection extends BaseConnection {}

View File

@@ -339,6 +339,13 @@ export interface ConnectionOptions {
gracefulEnd?: boolean;
}
export type ConnectionState =
| 'disconnected'
| 'protocol_handshake'
| 'connected'
| 'authenticated'
| 'error';
declare class Connection extends QueryableBase(ExecutableBase(EventEmitter)) {
config: ConnectionOptions;
@@ -346,6 +353,8 @@ declare class Connection extends QueryableBase(ExecutableBase(EventEmitter)) {
authorized: boolean;
readonly state: ConnectionState;
static createQuery<
T extends
| RowDataPacket[][]