Internal Private _compiledPrivate _disposedPrivate _emittedPrivate _filePrivate _statementReadonly fileFile path where SQL is being logged
Readonly idUnique session ID
Readonly optionsConfiguration options for this session
Readonly startSession start time
Gets the count of SQL statements actually written to the log file
The number of emitted statements (after filtering)
Private _escapeEscapes ${...} patterns within SQL string literals to prevent Flyway from interpreting them as placeholders. Converts ${templateVariable} to $' + '{templateVariable} within string literals.
The SQL statement to process
The SQL with escaped template syntax within strings
Private _generatePrivate _generatePrivate _postPrivate _prettyLogs a SQL statement to the file, applying filtering and formatting based on session options
The SQL query to log
Optional parameters: anyOptional parameters for the query
Optional description: stringOptional description for this operation
Whether this is a data mutation operation
Optional simpleSQLFallback: stringOptional simple SQL to use if logRecordChangeMetadata=false
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.