Commit 5b75424
committed
Add optional SQL logging spec helper
Set PLSQL_DEBUG_LOG=debug.log when running rspec to capture every SQL
statement issued by PLSQL::OCIConnection / PLSQL::JDBCConnection (exec,
cursor_from_query, parse) plus any SQL emitted via ActiveRecord::Base
when specs use plsql.activerecord_class. Logger arguments mirror those
used in the activerecord-oracle_enhanced-adapter spec helper.
logger is added to the Gemfile because it is a bundled gem on Ruby 3.5+
and would otherwise be unavailable when NO_ACTIVERECORD=1 (which skips
activerecord, the gem that pulls logger in transitively).1 parent 076bc16 commit 5b75424
2 files changed
Lines changed: 36 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
0 commit comments