• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

joaoh82 / rust_sqlite / 25662660064
69%

Build:
DEFAULT BRANCH: main
Ran 11 May 2026 09:49AM UTC
Jobs 1
Files 61
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 May 2026 09:44AM UTC coverage: 69.041% (+0.2%) from 68.807%
25662660064

push

github

web-flow
feat(repl): Phase 11.11a REPL .spawn for interactive BEGIN CONCURRENT demos (SQLR-22) (#131)

Lifts the REPL from a single Database to Vec<Connection> so users can mint
sibling handles in-session and step through cross-handle MVCC scenarios.
The prompt now shows the active handle ('sqlrite[A]> ' / 'sqlrite[B]> ')
so it's obvious which connection will execute the next line.

New meta-commands:
- .spawn      Mint a sibling Connection sharing the same Arc<Mutex<Database>>
              via Connection::connect(), then switch to it. Each handle gets
              a stable letter name (A, B, ..., Z, then AA, AB).
- .use NAME   Switch the active handle (case-insensitive); errors with the
              list of valid names on miss.
- .conns      List every handle, mark active with *, tag handles holding
              an open BEGIN CONCURRENT with (BEGIN CONCURRENT).

Plumbing:
- New ReplState in src/repl/mod.rs owns Vec<Connection>, parallel
  Vec<String> of names, and the active index. Exposes lock_active() for
  meta-commands that mutate the underlying Database directly, and
  active_conn_mut() for SQL dispatch through Connection.
- src/main.rs migrates the REPL loop from &mut Database to
  &mut ReplState. SQL dispatch routes through a new
  Connection::execute_with_render which returns CommandOutput (status +
  optional rendered prettytable) instead of a bare String — so BEGIN
  CONCURRENT / COMMIT / ROLLBACK still hit the per-connection MVCC
  state, while SELECTs come back with the prettytable for the REPL to
  print above the status line.
- Connection::concurrent_tx_is_open() promoted from private to public
  so .conns can render per-handle tx state.
- .open collapses every sibling back to a single handle named A —
  siblings pointing at the previous Database would otherwise be
  stranded with stale MVCC state.

Tests:
- 8 new cases in src/meta_command/mod.rs cover .spawn / .use / .conns
  parse + dispatch behaviour, case-insensitive .use, the error mess... (continued)

187 of 232 new or added lines in 4 files covered. (80.6%)

2 existing lines in 1 file now uncovered.

11148 of 16147 relevant lines covered (69.04%)

1.24 hits per line

Uncovered Changes

Lines Coverage ∆ File
18
87.99
-1.29% src/connection.rs
17
1.39
0.11% src/main.rs
6
86.5
6.11% src/meta_command/mod.rs
4
73.33
20.95% src/repl/mod.rs

Coverage Regressions

Lines Coverage ∆ File
2
86.5
6.11% src/meta_command/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 25662660064.1 11 May 2026 09:49AM UTC 61
69.04
GitHub Action Run
Source Files on build 25662660064
  • Tree
  • List 61
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 4495a684 on github
  • Prev Build on main (#25661129376)
  • Next Build on main (#25665285414)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc