Interface for SQL logging session with disposable pattern

interface SqlLoggingSession {
    filePath: string;
    id: string;
    options: SqlLoggingOptions;
    startTime: Date;
    statementCount: number;
    dispose(): Promise<void>;
}

Implemented by

Properties

filePath: string

File path where SQL is being logged

id: string

Unique session ID

Configuration options for this session

startTime: Date

Session start time

statementCount: number

Number of statements logged so far

Methods