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
36
37
38
39
40
41
42
43
//! Libsql DocumentStore genericity check (F22b).
//!
//! Proves the generic stores **instantiate for libsql** at compile time — i.e.
//! `LibsqlStore` satisfies the `QueryStore` / `AsyncQueryStore` bounds that
//! `SqlDocumentStore<Q>` and `AsyncSqlDocumentStore<Q>` require. This is the real
//! F22b claim for libsql ("the generic works for every SQL backend").
//!
//! Behavioural conformance (scru128 ordering, inclusive `scan_from`, promoted
//! columns) is covered by the Turso suite (`async_sql_document_store_tests.rs`):
//! all SQL backends share the same `sql` builder module, so the statements are
//! identical. Driving libsql at runtime additionally needs a **tokio** runtime
//! (libsql is tokio-based, unlike pure-Rust Turso), so a behavioural libsql run
//! belongs in a tokio-harnessed follow-up, not here.
//!
//! Gated behind the `libsql` feature:
//! `cargo test -p foundation_db --no-default-features --features libsql`.
use ;
/// Compile-time proof that both the sync and async generic SQL document stores
/// instantiate over `LibsqlStore`. Never executed (no I/O / runtime), so it can't
/// hang on libsql's tokio runtime — it only needs to type-check.