Repository navigation
feat(mysql): add rtk mysql output filter (parity with rtk psql) - #3153
henit-chobisa wants to merge 11 commits into
Conversation
|
This is fantastic — thank you for jumping on it so fast! I went through the PR and the approach is exactly what I was hoping for. A few things I especially appreciated:
For context, this came out of using rtk in a real MySQL-heavy reporting workflow, so it'll get immediate real-world mileage. Happy to test it against live result sets if that'd help. Thanks again! 🙌 |
|
Thank you @adam-msjc for this wonderful feedback, looking forward to your review further. 🙏🏼 |
|
Really clean PR — the shared One blocker with a proposed fix, plus two smaller notes. 🔴 Cells containing
Fix: derive column boundaries from the fn separator_offsets(body: &str) -> Vec<usize> {
body.lines()
.find(|l| { let t = l.trim(); BORDER.is_match(t) && t.contains('+') })
.map(|b| b.match_indices('+').map(|(i, _)| i).collect())
.unwrap_or_default()
}
// A well-formed row has '|' at every separator offset; if not (e.g. unicode
// width shifts the bytes), fall back to the current split('|').
fn split_by_columns(line: &str, seps: &[usize]) -> Option<Vec<String>> {
if seps.len() < 2 || !seps.iter().all(|&i| line.as_bytes().get(i) == Some(&b'|')) {
return None;
}
Some(seps.windows(2).map(|w| line[w[0] + 1..w[1]].trim().to_string()).collect())
}For 🟡 Test coverage has one telling gap. It's otherwise solid (batch/vertical passthrough, footer variants, interior NULL, credentials all covered), but nothing exercises a cell that contains 🟡 🔵 Consider a real captured fixture ( Substance and code quality are good — the pipe-splitting is the one thing I'd fix before merge, since it can silently feed the agent wrong data. |
Hey there @pszymkowiak, thank you so much for taking the time and reviewing it. I really appreciate your feedback and I completely agree, the cells with Honestly, thank you so much again, for taking the time to review. I thought it might or might not get a review this soon. Really appreciated 🙏 |
|
Hey @pszymkowiak, I've pushed the changes, with your suggestions for using a column boundary instead of just simply splitting with the I also considered making the junction character provided by the caller, but as of now, I think it's sufficient. Please let me know your suggestions on this, if you think we should make it configurable I'm up for it and completely align as there can be someone in the future, who wish to use the module, but the table format is different. Thanks. 🙌 |
|
The filter itself looks great — I ran ~30 end-to-end cases on a compiled build: config values ( One thing worth revisiting before merge:
So Everything else LGTM. |
|
Hey there @pszymkowiak, thank you for testing this throughly with me. Actually in my last commit, I've also tuned down the |
|
Checking in on this one — looks like the Happy to help validate against real MySQL result sets if another data point would be useful. Thanks to you both for the thorough work on this one. |
|
Hey @pszymkowiak & @adam-msjc, I hit a merge conflict with recent change of replacing lazy static by @TaKO8Ki. I've resolve that and moved this PR to
All test green. ✅ Please have a look. Thanks. |
|
Thanks for turning that around so quickly @henit-chobisa — good catch adopting One procedural thing that might be what's actually holding this up: GitHub still shows this as Worth doing sooner rather than later — the PR has already had to absorb one upstream conflict while waiting, and that risk grows the longer it sits. Thanks both. |
|
Hey there, @adam-msjc. Thanks. Actually I cannot really request for a formal review, as of course I'm an external contributor. As a maintainer myself, for plane.so, https://github.com/makeplane/plane, I can understand, it can be quite a pain, to manage these many open PRs and reviews, especially when you're gaining this much popularity, while working on your everyday task. I'm sure, this will soon get a review and get merged. 🔥 Thanks again. 🙏 |
|
Hey there @pszymkowiak, reminder to check this. In case you missed. Thanks! |
|
Found a data-loss bug in
let body = output
.lines()
.filter(|line| !FOOTER.is_match(line.trim()))
.collect::<Vec<_>>()
.join("\n");Any data row whose cell content happens to contain a Repro against a real MySQL server (table mode): CREATE TABLE notes (id INT, note VARCHAR(255));
INSERT INTO notes VALUES
(1, 'backup done (12.34 sec) ok'),
(2, 'second row');Row 1 vanishes. Minimal unit-test repro (drop into #[test]
fn repro_footer_eats_data_row() {
let input = "\
+----+------------------------------+
| id | note |
+----+------------------------------+
| 1 | backup done (12.34 sec) ok |
| 2 | second row |
+----+------------------------------+
2 rows in set (0.00 sec)";
let out = filter_mysql_output(input);
assert!(out.contains("backup done"), "row 1 was dropped:\n{}", out);
}
.filter(|line| line.trim().contains('|') || !FOOTER.is_match(line.trim())) |
|
Hey @pszymkowiak. Thank you so much for jumping back on this. That was a crucial one, I've pushed a fix and also added tests for checking the same. Thanks again. 🙌 |
|
Tested at current head (7746e72). The FOOTER-anchoring fix holds up, thanks for that. Found several more issues, some verified against a compiled build with a stub 1. Bundled short-option password leak ( mysql's getopt-style parser reads 2. stdin never forwarded ( Exit 0, no error, but the mysql client's stdin is closed before it can read anything ( 3. Multi-statement 2nd result set silently swallowed / column offsets can corrupt it ( Verified with two fake result sets: the entire second table (header + data) disappeared with no trace, replaced by 4. Truncated rows on a successful query are unrecoverable ( 5. Footer stripping deletes a DML statement's own confirmation when batched with a SELECT — Smaller points:
|
Three defects found in review, all in the shared stripper, all silent. 1. `junction_offsets` locked onto the first `+`-bearing border in the whole body and reused those byte offsets for every later row. A multi-statement query returns one table per statement, so a second, narrower result set failed the "is there a `|` at this offset" check, fell through to `naive_split`, and had every interior `|` promoted to a column break. Where the widths happened to line up the check passed instead, and the row was sliced on the wrong boundaries with nothing to detect it. Row accounting carried the same single-table assumption: CAP_LIST was counted across the body, so a second result set following a long first one disappeared into the first table's `... +N more rows`. A border whose junction layout differs now starts a new table: offsets are re-derived, the header/cap counters restart, and the overflow marker closes the table it belongs to. Repeated identical borders (mysql draws three per table) are not a boundary. Two adjacent tables of identical width still merge, which is harmless because the offsets are correct for both. 2. mysql pads cells to display width while the offsets are counted in bytes, so a single wide character drops a row into `naive_split`. That fallback splits on every `|`, which is correct only when no cell contains one: `| 1 | a|b<coffee> |` came back as three fields instead of two, reported as data with nothing to signal it was wrong. The split now learns the column count from the border and returns the row unsplit rather than guessing where the boundaries are. Display-width slicing is the proper fix, but it needs a unicode-width dependency. 3. `naive_split`'s outer-pipe branch sliced a malformed row carrying exactly one bar to an empty string, dropping its content on the path that exists to be the safe fallback. Also adds `strip_ascii_table_with_stats`, which reports how many rows the cap hid so a caller can offer a recovery path for them. `strip_ascii_table` remains as a wrapper, so psql is unaffected.
Bundled short-option passwords were not redacted. `my_getopt` reads
`-tpSecret123` as `-t` plus `-p Secret123`, but the check only matched
`-p` at the head of a token, so the password reached the label rtk
persists: `original_cmd`/`rtk_cmd` in the tracking DB, verbose stderr,
and `rtk gain --history`. It can also leave the machine, because
`low_savings_commands` sends the first three whitespace tokens of
`rtk_cmd` in the telemetry ping and the password is token three. The scan
now walks the cluster, stopping at the short options that consume a value
so a `p` inside `-uroot` or `-hprimary` is not mistaken for a flag. The
parse lives in `core::args_utils` so the next client filter does not grow
a third variant of it.
stdin was never forwarded. `RunOptions::stdout_only()` leaves
`inherit_stdin` false, so `mysql db < dump.sql` read EOF immediately:
nothing imported, no error, exit 0. It is now inherited when stdin is not
a terminal, covering pipes and redirects. Forwarding on a TTY would trade
that for a different break, since output is captured and printed after
exit, leaving an interactive REPL looking frozen.
A batched `UPDATE ...; SELECT ...;` lost the UPDATE's confirmation.
`is_table_format` inspects the whole body, so that statement's output
went down the table path even though it rendered no table, and FOOTER
matched any line ending in a timing parenthesis. FOOTER now names the two
result-set status lines and is anchored at both ends. Pinning the head
also subsumes the previous `|` guard: a table row starts with a bar and
can no longer match whatever its cells contain, so an unfamiliar footer
dialect leaks one cosmetic line instead of deleting a row.
Detection itself was too loose. Any body holding a line matching
`^\+[-+]+\+$` counted as a table, so batch (`-B`) output whose value is
`+----+` was routed into the stripper, which skips border lines, and that
row vanished with no marker. Detection now requires the pair a real table
always prints: a border immediately followed by a bar-wrapped row.
Truncated rows had no recovery path. `.tee("mysql")` only writes on a
non-zero exit, but a truncated SELECT succeeds, so `... +N more rows`
named rows that nothing could produce and the caller had to re-run the
query with LIMIT/OFFSET. `force_tee_hint` now emits `[full output: ...]`
when the stripper reports hidden rows, per src/core/README.md.
The footer pass also assembles its body in a single walk instead of
collecting a `Vec<&str>` and re-joining it.
ef06a80 to
882dbad
Compare
|
Hey @pszymkowiak, thank you so much for going this deep on it. The bundled Heads up before anything else: I squashed and force-pushed the branch, so your inline comments will show as outdated. Nothing was dropped — the tree is identical to what you reviewed, it is just two commits now instead of a long chain. Sorry for the noise.
Two I deliberately left out, happy to take either if you would rather have them here:
All green ✅ — clippy clean, 2611 tests passing. I verified the redaction and the stdin forwarding end-to-end against a stub Please have a look when you get a chance. Thanks again 🙌 |
|
Verified all of this against a compiled build — re-ran the exact repros from the original review (stdin via a stub On the two you left out — agreed with your call on both, would keep them separate:
Nice catch on the three you found while testing (the LGTM — thanks for the thorough turnaround. |
pszymkowiak
left a comment
There was a problem hiding this comment.
Re-verified all fixes against a compiled build — see comment above for details. LGTM.
|
Thank you soook much @pszymkowiak for your review and the time that you put in. To be honest, it's not too long I've started contributing within rust projects. All thanks to you, I learnt a lot. Looking forward to contributing further! 🙏🏼🙏🏼 |
| let mut body = String::with_capacity(output.len()); | ||
| let mut first = true; | ||
| for line in output.lines().filter(|line| !is_footer_line(line)) { | ||
| if !first { | ||
| body.push('\n'); | ||
| } | ||
| body.push_str(line); | ||
| first = false; | ||
| } |
There was a problem hiding this comment.
| let mut body = String::with_capacity(output.len()); | |
| let mut first = true; | |
| for line in output.lines().filter(|line| !is_footer_line(line)) { | |
| if !first { | |
| body.push('\n'); | |
| } | |
| body.push_str(line); | |
| first = false; | |
| } | |
| let body = output | |
| .lines() | |
| .filter(|line| !is_footer_line(line)) | |
| .fold(String::with_capacity(output.len()), |mut acc, line| { | |
| if !acc.is_empty() { | |
| acc.push('\n'); | |
| } | |
| acc.push_str(line); | |
| acc | |
| }); |
| } | ||
|
|
||
| if verbose > 0 { | ||
| eprintln!("Running: psql {}", args.join(" ")); |
| /// Two adjacent tables with *identical* column widths are indistinguishable | ||
| /// here and merge into one. That is harmless: the offsets are correct for | ||
| /// both, so only the row count and the header/data split are affected. |
There was a problem hiding this comment.
They also share a single CAP_LIST budget, so second table could completely be truncated
| // to get them back. `force_tee_hint` writes regardless of exit code; the | ||
| // plain "full output" form is the one to use here because a multi-statement | ||
| // body has several sections and no single line offset covers the gap. | ||
| match tee::force_tee_hint(output, "mysql-rows") { |
There was a problem hiding this comment.
this loads Config and writes a file as a side effect, including from unit tests that trip the cap, in an otherwise pure filter. Should perhaps be split in two (pure filter and encapsulation)
| continue; | ||
| } | ||
|
|
||
| if trimmed.contains('|') { |
There was a problem hiding this comment.
Any non-row line containing two or more | is classified as a row here, and naive_split then unconditionally drops cells[0] and cells[last] as outer-bar edges when has_outer_pipes is true. The line loses its first and last segment silently, with no marker.
Reachable from a single client invocation, e.g. mysql -t -e "SELECT id FROM t; SELECT x FROM u\G" — the \G block follows the -t table in the same output:
+----+
| id |
+----+
| 1 |
+----+
1 row in set (0.00 sec)
*** 1. row ***
note: a|b|c
note: a|b|c comes out as just b. The expected_columns guard does not fire, because the truncated result (1 field) is under the column count rather than over it.
Requiring a row to both start and end with | when shape.has_outer_pipes would let these lines pass through untouched.
| /// across every result set in the body. A caller that shows `... +N more rows` | ||
| /// needs the count to decide whether to offer a recovery path for them. | ||
| pub fn strip_ascii_table_with_stats(body: &str, shape: TableShape) -> (String, usize) { | ||
| let mut junctions = junction_offsets(body); |
There was a problem hiding this comment.
Offsets are seeded once from the first border found in the body, and only re-derived at a subsequent border (line 154). psql prints its header above its border, so in a multi-result-set body every header after the first is split with the previous table's offsets — it is consumed at line 167 before the border that would have updated them.
This is a regression against the filter_table this replaces, which split each pipe-bearing line independently and so had no offsets to go stale. Running both on the same input:
id | name
----+------
1 | foo
(1 row)
ab | c | d
----+---+---
1 | 2 | 3
(1 row)
| line | before | after |
|---|---|---|
ab | c | d |
ab⇥c⇥d (3 fields) |
ab⇥c | d (2 fields) |
1 | 2 | 3 |
1⇥2⇥3 (3 fields) |
1⇥2⇥3 (3 fields) |
A 2-field header over a 3-field data row. Depending on where the stale | lands the header is either mis-split like this or returned unsplit. psql -c "SELECT …; SELECT …" and psql -f script.sql both hit it.
Re-deriving the offsets for the row preceding a border, or buffering the header and re-slicing it once the border is seen, would restore the old behaviour.
KuSh
left a comment
There was a problem hiding this comment.
Round 2 of 3 — CHANGES REQUESTED
Claim: rtk mysql filters MySQL client output to parity with rtk psql, extracting the shared table de-formatter into core::ascii_table.
Scope: accept if narrowed to "mysql output filter, without credential redaction". Credential redaction is not an OSS feature, and psql_cmd on develop has none — so the redaction surface here should come out rather than be fixed. That cut is clean: the whole +91 in src/core/args_utils.rs is redact_clustered_password plus its six tests, so reverting that file to its develop state removes it entirely, and in mysql_cmd.rs it is the module-doc paragraph, VALUE_TAKING_SHORTS, redact_credentials, its one call site, and four tests. Removing it also drops two findings I would otherwise be raising here, so it shrinks the PR in every direction.
Ran: PostgreSQL 16 and MySQL 5.7.44 / 8.0.46 / 8.4.11 / 9.7.2 in Docker, through the real clients rather than fixtures. Two-result-set psql -c … -c …; mysql -t with a trailing \G; multi-line TEXT values; 200-row results in every psql output mode; bare -p under a PTY. cargo fmt --all --check, cargo clippy --all-targets (0 warnings) and cargo test --all are green on the head and on the head merged onto current develop — the branch is 578 commits behind, and the merge is clean.
CI @882dbad: never run. Only license/cla is present; run 33533028352 is still action_required. Both approvals on this PR were given on a head CI has never built.
Blocks merge (2)
-
ascii_table.rstreats every physical line as a whole row. Three arms, one class. Two of them I have fixes and regression tests ready for and can push on request: non-row lines with interior bars losing their first and last segment (note: a|b|c→b), and psql's second-and-later headers being sliced with the previous result set's junction offsets (ab<TAB>c | d, two fields, over a three-field data row — a regression against thefilter_tablethis replaces). The third arm is open and needs your design call, because aTEXTcolumn containing newlines makes a row span several physical lines — see the inline comment. -
rules.rsadvertises 60% for every^mysql(\s|$)and rewrites all of them, but the form that rule will mostly match measures 0.0% against the 20% floor. See the inline comment.
Plus your own two open threads, which I am counting as blocking rather than optional because both are content loss in new code: the shared CAP_LIST budget between adjacent same-width tables, and force_tee_hint inside an otherwise pure filter.
Checked and correct — no need to re-verify
- The
(\s|$)terminator:mysqldump,mysqladmin,mysqlcheckandmysql_upgradeare all correctly left alone. \Gvertical output and-Bbatch output pass through untouched; exit codes and stderr propagate on failure;forward_stdinimports correctly and leaves terminal stdin closed.- The registration walk —
main.rsrouting,discover/rules.rs, the cloudREADME.md, the pipe dispatch — is consistent withpsql.RUST_HANDLED_COMMANDSis the one gap, and it is a one-line addition. - The psql side beyond arm 2: aligned output, single-column tables, NULL cells, the
(N rows)footer, non-table lines, psql's+continuation marker and\dttitle lines are all byte-identical to the deletedfilter_table.
Filed as follow-ups — not this PR's job
- #4022 — the filters only fire on the decorated shape, so
psql -A/--csv/-tand mysql batch output pass through uncapped at any size. Pre-existing on the psql side; this PR inherits the shape rather than introducing it. It is also where the real unrealised value is for both commands. - #4023 —
categorize_commandbucketspsql(and nowmysql) as"other"rather than"cloud".
Hypotheses built and dropped
- Bare
-phangs because rtk captures the prompt. Refuted by execution: MySQL'smy_getpasswrites to/dev/tty, not stdout — with stdout redirected to a file the prompt still reached the terminal and the file stayed empty, and end to end under a PTYrtk mysql -u root -pprompts, reads and returns. - This filter drops the child's stderr on success. True on this head in isolation, but already fixed on develop by #3772; with develop merged the warning is forwarded.
- The multi-line-cell bug is a regression. It is not — psql pads continuation lines so they never match
^[-+]+$, and develop, this PR and this PR plus my fixes are byte-identical there. It is new-surface content loss on the mysql path only.
Next
Cut the redaction surface, then arm 3 of finding 1 and the rule claim in finding 2. Say the word and I will push the two ascii_table fixes with their tests so you only have the design call left. After that this needs its first CI run before anyone can honestly approve it.
| } | ||
|
|
||
| // Skip border lines: `----+----` (psql) and `+----+----+` (mysql). | ||
| if BORDER.is_match(trimmed) { |
There was a problem hiding this comment.
BORDER (^[-+]+$) is tested against every line, but with a TEXT column containing newlines a single row spans several physical lines — so cell content reaches this check. Two ways it goes wrong, both reproduced against a real mysql -t:
- a value line that is only dashes matches and is dropped, with no
... +N more rowsmarker andhiddenleft at 0, sofilter_table's recovery hint never fires either; - a value line shaped like
+----+matches and contains+, so the branch below treats it as a new result set:junctionsis overwritten with the bogus layout and every later row of the same table is sliced against it.
INSERT INTO ml VALUES (1,'head\n----\ntail'),(2,'x\n+----+\ny'),(3,'ok');
raw mysql -t through rtk
| 1 | head | 1 | head
---- tail
tail | | 2 | x
| 2 | x y |
+----+ 3 ok
y |
| 3 | ok |
head, ----, x and +----+ are gone, and rows 1 and 2 are no longer tab-separated.
The underlying assumption is that one physical line is one logical row, which a multi-line cell breaks. For this dialect the row boundary is knowable — a row opens with | and closes on the line that ends with | — so tracking that state would let the border check skip continuation lines. But how a multi-line cell should then be represented in tab-separated output is a design call, which is why I am handing this back rather than patching it.
Worth noting psql escapes this: it pads continuation lines ( | ---- +), so they never match ^[-+]+$. Verified develop, this PR, and this PR plus fixes are byte-identical on the psql path.
| ..RtkRule::DEFAULT | ||
| }, | ||
| RtkRule { | ||
| pattern: r"^mysql(\s|$)", |
There was a problem hiding this comment.
This advertises 60% for every ^mysql(\s|$) command and rewrites all of them, but the form it will mostly match saves nothing.
The mysql client switches to batch mode — tab-separated, no box — whenever stdout is not a tty, and rtk always captures stdout through a pipe. So is_table_format returns false and the output is passed through. Measured on a 200-row table with an isolated RTK_DB_PATH:
| result | |
|---|---|
raw mysql -e 'SELECT * FROM big', piped |
201 lines / 4288 B |
rtk mysql -e 'SELECT * FROM big' |
202 lines / 4289 B |
The extra byte is a trailing newline — all 200 rows, no cap, no hint, 0.0% against the 20% floor in CONTRIBUTING.md.
This is not version-specific. Same query, only stdout differing, on 5.7.44, 8.0.46, 8.4.11 and 9.7.2 — all four identical:
stdout = TTY stdout = PIPE
+---+---+ a b
| a | b | 1 2
+---+---+
| 1 | 2 |
+---+---+
Since an agent's shell pipes stdout with or without rtk, the decorated shape this filter targets never appears where rtk runs; the table path is reachable only when someone explicitly passes -t (which does measure 64.5%).
So either narrow the rule to the form that benefits, or set savings_pct from a measurement of the form it actually matches. The broader fix — capping the undecorated path, which is where the value would be for both this and psql — is #4022 and not this PR's job.
Incidentally the rule will not match modern MariaDB at all: mariadb:11 ships no mysql binary, the compatibility symlinks having been dropped.
| /// bare `-p` that prompts interactively, or a bundle whose value swallowed the | ||
| /// rest). The bias is deliberate: an unrecognized value-taking option leads to | ||
| /// *over*-redaction of a label, never to a leaked secret. | ||
| pub fn redact_clustered_password(arg: &str, value_taking: &str) -> Option<String> { |
There was a problem hiding this comment.
Credential redaction is not an OSS feature, so this should come out rather than be corrected — psql_cmd on develop has none, which is the consistent behaviour.
The cut is clean here: this function plus its six tests are the entire +91 this PR adds to the file, so reverting args_utils.rs to its develop state removes it exactly. On the mysql_cmd.rs side it is the module-doc paragraph, VALUE_TAKING_SHORTS, redact_credentials, its single call site, and four tests.
Removing it also retires two findings rather than leaving them open:
- the hand-written
VALUE_TAKING_SHORTSscan is the kind of getopt re-implementation.claude/rules/rust-patterns.mdrule 6 rules out for a new command, andarg_tokenizerlanded on develop after this branch forked, so the rule now applies here. Its omission of-#is already visible:rtk -v mysql '-#d:t:o,/tmp/trace' -uroot -e qprintsmysql -#d:t:o,/tmp*** …, the scan having walked into the debug spec and stopped at thepin/tmp. - the module header states credentials are "never persisted", but only the auth flags are scrubbed — the
-eargument is stored verbatim, sortk mysql -e "ALTER USER 'a'@'%' IDENTIFIED BY 'newpass'"writesnewpassinto the tracking DB permanently.
One consequence to be explicit about: without redaction, rtk mysql -psecret persists the password in the tracking DB and prints it under -v. That is what rtk psql does today, so it is consistent — flagging it so it is a decision rather than a side effect.

Summary
Adds an
rtk mysqlfilter that compacts MySQL query output, closing the psql/mysql parity gap flagged in #3130.-t/ interactive): strips box borders, cell padding, and the(N.NN sec)footer → tab-separated rows (≥60% token savings).-B) and vertical (\G): already compact / different shape → passed through unchanged.mysqluntouched (so--defaults-fileand auth work), but the label sent to tracking/logging is scrubbed — inline-p<pw>/--password=<pw>never hit the SQLite DB or verbose stderr.Design — alternatives considered
psql's table filter is ~85% of what mysql needs, so the real question was how
to share, not whether:
sql_tablehelper local tocmds/cloud/, vs. a generic one incore/. Landed oncore/ascii_table: by keeping it SQL-agnostic (borders, padding, outer-pipe handling, row cap — nothing MySQL/psql-specific) it's a general text primitive that belongs next tostrip_ansi/truncateincore. The dialect-specific bits (footer regex,\Gvertical) stay in each command module.Why this is safe
psql was refactored to consume
ascii_table— and its existing tests passunchanged, proving the extraction is behavior-preserving before mysql depends
on it.
Commits
refactor(core): add shared ascii_table de-formatterrefactor(psql): delegate table filtering to ascii_tablefeat(mysql): add mysql output filter with credential-safe loggingTest plan
cargo fmt --all --check && cargo clippy --all-targets && cargo test(2538 pass)rtk mysql -t -e "SELECT …"against a live DB