Commit cd420db
committed
Implement tiered API architecture and AdvancedSQLDatabase protocol
- Redefined SQLDatabase protocol to provide a simple, buffered API for general use
- Introduced AdvancedSQLDatabase protocol for high-performance AsyncThrowingStream streaming
- Added .advanced property to all connections and pools for discoverability of performance features
- Implemented non-isolated pool streaming helpers using a struct wrapper pattern to manage actor isolation correctly
- Added native @p1 placeholder support consistency across all providers (MSSQL, Postgres, MySQL, SQLite)
- Implemented queryStream and queryJsonStream for SQLite by wrapping native query logic
- Updated all existing integration tests (>400) to use the new tiered API structure
- Added TieredAPITests for all providers verified against live Docker databases
- Updated README.md with the new architecture, usage examples, and Advanced Features section1 parent 7909c55 commit cd420db
File tree
17 files changed
+479
-989
lines changed- Sources
- CosmoMSSQL
- CosmoMySQL
- CosmoPostgres
- CosmoSQLCore
- CosmoSQLite
- Tests
- CosmoMSSQLTests
- CosmoMySQLTests
- CosmoPostgresTests
- CosmoSQLiteTests
17 files changed
+479
-989
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| |||
344 | 350 | | |
345 | 351 | | |
346 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
347 | 387 | | |
348 | 388 | | |
349 | 389 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
| |||
430 | 432 | | |
431 | 433 | | |
432 | 434 | | |
433 | | - | |
| 435 | + | |
434 | 436 | | |
435 | 437 | | |
436 | 438 | | |
| |||
497 | 499 | | |
498 | 500 | | |
499 | 501 | | |
500 | | - | |
| 502 | + | |
501 | 503 | | |
502 | 504 | | |
503 | 505 | | |
| |||
0 commit comments