Member Junction
    Preparing search index...

    Internal implementation of SqlLoggingSession that handles SQL statement logging to files. This class manages file I/O, SQL formatting, and filtering based on session options.

    Implements

    Index

    Constructors

    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

    Accessors

    Methods

    • Initializes the logging session by creating the log file and writing the header

      Returns Promise<void>

      Error if file creation fails

    • Logs a SQL statement to the file, applying filtering and formatting based on session options

      Parameters

      • query: string

        The SQL query to log

      • Optionalparameters: unknown

        Optional parameters for the query

      • Optionaldescription: string

        Optional description for this operation

      • isMutation: boolean = false

        Whether this is a data mutation operation

      • OptionalsimpleSQLFallback: string

        Optional simple SQL to use if logRecordChangeMetadata=false

      Returns Promise<void>