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

joaoh82 / rust_sqlite / 25662660064 / 1
69%
main: 69%

Build:
DEFAULT BRANCH: main
Ran 11 May 2026 09:49AM UTC
Files 61
Run time 3s
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.1

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)

11148 of 16147 relevant lines covered (69.04%)

1.24 hits per line

Source Files on job 25662660064.1
  • Tree
  • List 61
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25662660064
  • 4495a684 on github
  • Prev Job for on main (#25661129376.1)
  • Next Job for on main (#25665285414.1)
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