Commit eee2b82
committed
Tighten sqlalchemy-dqlite packaging, slots, and requirements fences
Four small hygiene changes:
- Add Framework :: AsyncIO trove classifier. The dialect ships an
async surface (create_async_engine("dqlite+aio://...") via the
``dqlite.aio`` entry point); sibling packages already advertise
the classifier and sqlalchemy-dqlite was an asymmetric omission.
- Declare ``__slots__ = ()`` on AsyncAdaptedConnection. The parent
SA AdaptedConnection uses ``__slots__ = ("_connection",)``; a
subclass without slots gets a ``__dict__`` per instance, defeating
the parent's memory layout. SA's own aiosqlite adapter follows the
same slot pattern.
- Extend test_properties_return_exclusion_objects to cover all 23
overridden Requirements properties (was 12/23). A regression to
bare True/False on any of cte / window_functions / returning /
insert_from_select / on_update_or_delete_cascades / the
``_reflection`` family / temporary_tables / table_ddl_if_exists
is now fenced — matching the policy ISSUE-132/133 established.
- Annotate set_isolation_level's AUTOCOMMIT and warn branches as
belt-and-suspenders for third-party callers. SA's engine flow
validates via get_isolation_level_values first and rejects
unknown levels upstream, so those branches are unreachable for
engine-driven paths; keep them for non-engine callers and make
the reachability note explicit.1 parent 319b148 commit eee2b82
5 files changed
Lines changed: 51 additions & 0 deletions
File tree
- src/sqlalchemydqlite
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
212 | 220 | | |
213 | 221 | | |
214 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
286 | 286 | | |
287 | 287 | | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
289 | 300 | | |
290 | 301 | | |
291 | 302 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
23 | 35 | | |
24 | 36 | | |
25 | 37 | | |
| |||
0 commit comments