InternalThe SQL dialect to use for platform-specific SQL emission (e.g. Flyway placeholder escaping, batch separators). Defaults to SQL Server when not provided so existing callers and tests keep working without immediately threading a dialect through every call site.
ReadonlyfileFile path where SQL is being logged
ReadonlyidUnique session ID
ReadonlyoptionsConfiguration options for this session
ReadonlystartSession start time
Gets the count of SQL statements actually written to the log file
The number of emitted statements (after filtering)
Disposes of the logging session, writes the footer, closes the file, and optionally deletes empty files
Logs a SQL statement to the file, applying filtering and formatting based on session options
The SQL query to log
Optionalparameters: unknownOptional parameters for the query
Optionaldescription: stringOptional description for this operation
Whether this is a data mutation operation
OptionalsimpleSQLFallback: 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.