The new Query Logging feature logs the SqlResult at the BuildCommand method. This is fine for most of the operations except for inserts which have to apply some "fixes" post-BuildCommand.
For example. onConflictDoUpdate and getId custom operations on the InsertBuilder append to the SQL, but these changes are not reflected in the reported query output.
Inserts now log the updated CommandText manually.
I also had to override the QueryResultToString to make it easier to consistently format modified insert queries.
The new Query Logging feature logs the
SqlResult
at theBuildCommand
method. This is fine for most of the operations except for inserts which have to apply some "fixes" post-BuildCommand
.For example.
onConflictDoUpdate
andgetId
custom operations on theInsertBuilder
append to the SQL, but these changes are not reflected in the reported query output.