Interface ConnectionInfo

Information about the current database connection.

interface ConnectionInfo {
    type: ConnectionType;
    engine: DatabaseEngine;
    version?: string;
    filePath?: string;
    host?: string;
    database?: string;
    readOnly: boolean;
    connectedAt?: Date;
}

Properties

Type of connection (file-based, in-memory, or network)

Database engine being used

version?: string

Engine version (if available)

filePath?: string

File path for file-based databases

host?: string

Host for network databases

database?: string

Database name for network databases

readOnly: boolean

Whether the connection is read-only

connectedAt?: Date

When the connection was established