Skip to content

Commit b0e0e42

Browse files
Copilothotlong
andcommitted
feat: add driver-turso spec schema, design document, and ROADMAP update
- Add TursoConfigSchema, TursoSyncConfigSchema, TursoDriverSpec in packages/spec/src/data/driver/turso.zod.ts - Add comprehensive tests (29 tests) in turso.test.ts - Add detailed design document (docs/design/driver-turso.md) covering server/client/cloud architecture impact, capabilities mapping, edge deployment topologies, embedded replicas, multi-tenancy, service integration, and implementation phases - Update ROADMAP.md with Turso driver phases and timeline Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent f3817cf commit b0e0e42

4 files changed

Lines changed: 1075 additions & 5 deletions

File tree

ROADMAP.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,12 @@ The following renames are planned for packages that implement core service contr
288288
- [ ] `driver-mysql` — MySQL/MariaDB driver
289289
- [ ] `driver-sqlite` — SQLite driver for edge/embedded
290290
- [ ] `driver-mongodb` — MongoDB driver with aggregation pipeline
291-
- [ ] `driver-turso` — Turso/libSQL for edge deployments
291+
- [ ] `driver-turso` — Turso/libSQL edge database driver (see [Design Document](docs/design/driver-turso.md))
292+
- [x] **Phase 0: Protocol Schema**`TursoConfigSchema`, `TursoSyncConfigSchema`, `TursoDriverSpec` defined in `packages/spec/src/data/driver/turso.zod.ts`
293+
- [ ] **Phase A: Core Driver** (v3.1) — `IDataDriver` + `ISchemaDriver` implementation, QueryAST→SQL compiler, plugin wrapper
294+
- [ ] **Phase B: Edge & Sync** (v3.2) — Embedded replica sync, WASM build for Cloudflare/Deno, offline write queue
295+
- [ ] **Phase C: Multi-Tenancy** (v3.3) — Database-per-tenant router, Turso Platform API integration
296+
- [ ] **Phase D: Advanced** (v4.0) — Vector search + `IAIService`, FTS5 + `ISearchService`, better-auth adapter
292297
- [ ] Driver benchmark suite comparing performance across all drivers
293298

294299
### 6.2 Multi-Tenancy
@@ -480,10 +485,10 @@ The following renames are planned for packages that implement core service contr
480485
| Version | Target | Focus |
481486
|:---|:---|:---|
482487
| **v3.0** | ✅ Shipped | Protocol specification complete, core runtime stable |
483-
| **v3.1** | Q2 2026 | Essential services (`service-cache`, `service-queue`, `service-job`, `service-storage`), PostgreSQL driver |
484-
| **v3.2** | Q3 2026 | Communication services (`service-realtime`, `service-graphql`, `service-i18n`, `service-notification`) |
485-
| **v3.3** | Q4 2026 | Business logic services (`service-automation`, `service-workflow`, `service-search`) |
486-
| **v4.0** | Q1 2027 | Zod v4 migration, `plugin-auth``service-auth` rename, JSON Schema output, OpenAPI generation, AI services, multi-tenancy |
488+
| **v3.1** | Q2 2026 | Essential services (`service-cache`, `service-queue`, `service-job`, `service-storage`), PostgreSQL driver, Turso/libSQL core driver ([design](docs/design/driver-turso.md)) |
489+
| **v3.2** | Q3 2026 | Communication services (`service-realtime`, `service-graphql`, `service-i18n`, `service-notification`), Turso embedded replica & edge sync |
490+
| **v3.3** | Q4 2026 | Business logic services (`service-automation`, `service-workflow`, `service-search`), Turso multi-tenancy (database-per-tenant) |
491+
| **v4.0** | Q1 2027 | Zod v4 migration, `plugin-auth``service-auth` rename, JSON Schema output, OpenAPI generation, AI services, multi-tenancy, Turso vector search & FTS5 integration |
487492
| **v4.1** | Q2 2027 | Studio IDE general availability, marketplace launch |
488493
| **v5.0** | 2027+ | Managed cloud, app store, global ecosystem |
489494

@@ -494,6 +499,7 @@ The following renames are planned for packages that implement core service contr
494499
| Document | Description |
495500
|:---|:---|
496501
| [`ARCHITECTURE.md`](ARCHITECTURE.md) | Microkernel design, package structure, three-layer protocol stack |
502+
| [`docs/design/driver-turso.md`](docs/design/driver-turso.md) | Turso/libSQL driver design document — architecture impact, capabilities, implementation phases |
497503
| [`apps/studio/ROADMAP.md`](apps/studio/ROADMAP.md) | Studio IDE development phases (v2.1 → v3.0) |
498504
| [`docs/DX_ROADMAP.md`](docs/DX_ROADMAP.md) | Developer experience improvements |
499505
| [`RELEASE_NOTES.md`](RELEASE_NOTES.md) | Version history and changelog |

0 commit comments

Comments
 (0)