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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
//! Live round-trip tests for the multi-backend [`NativeEntityStore`] (extend_udb.md
//! P2). SQLite runs in-process (a real embedded SQL engine, no infra); Postgres and
//! MySQL are gated on `UDB_PG_DSN` / `UDB_MYSQL_DSN` (the Docker fleet) and skip when
//! unset — directive #8's live env-gated DSN chain. Kept in a `_tests.rs` file so the
//! runtime env-confinement guard excludes the DSN reads (test-only).
use Arc;
use crate;
/// ensure → put → get → upsert → get → delete → get, asserting values at each step.
/// Proves a backend's native persistence actually round-trips (directive #9 — the
/// served path) against a real database engine (directive #8).
async
/// SQLite is a real embedded SQL engine (not an in-memory fake map) and needs no
/// external infrastructure, so it always runs. `max_connections(1)` keeps the shared
/// in-memory database alive across the round-trip.
async
/// Live Postgres round-trip — gated on `UDB_PG_DSN` (the Docker fleet).
async
/// Live MySQL round-trip — gated on `UDB_MYSQL_DSN` (the Docker fleet). P2 acceptance:
/// native-service persistence working on a NON-Postgres SQL backend.
async
/// Live Neo4j round-trip — gated on `UDB_GRAPH_DSN` (the Docker fleet). P3 acceptance:
/// native persistence working on a GRAPH backend via HTTP Cypher.
async
/// Live MongoDB round-trip — gated on `UDB_NOSQL_DSN`/`UDB_MONGODB_DSN` (the Docker
/// fleet) and the `mongodb-native` feature (the wire driver the Docker mongod speaks).
/// P3 acceptance: native persistence working on a DOCUMENT backend.
async