spanner-orm
JSON →A TypeScript ORM for Google Cloud Spanner and PostgreSQL (including PGLite), inspired by Drizzle ORM. Current stable version is 0.2.2. It allows you to define a single schema using a composable, Drizzle-inspired syntax and then migrate or query both databases with dialect-aware SQL generation. Key differentiators include cross-dialect migrations, a fluent query builder, raw SQL fallback via template literals, and support for dynamic default values. It ships with TypeScript types and requires peer dependencies @google-cloud/spanner, pg, and @electric-sql/pglite depending on the target database. Development is at an early stage with frequent breaking changes likely.
Resources
packagespanner-orm ↗