Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Add JDBC statement parameter logging
Parameters are logged in tabular form to the new logger `slick.jdbc.JdbcBackend.parameter` similar to how results can already be logged to `slick.jdbc.StatementInvoker.result`. The table header contains the parameter index (1-based, as in JDBC) and the type. Batch operations with matching parameter types are shown in a single table. If the types change during a batch, the table gets broken up. Since the logging is integrated into the `LoggingPreparedStatement` decorator, it works for all kinds of statements and for both, Plain SQL queries and generated (Lifted Embedding) queries. Fixes #1150.
- Loading branch information
Showing
4 changed files
with
143 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters