{"library":"spanner-orm","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"0.2.2","tags":["javascript","typescript"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install spanner-orm","imports":["import { defineSchema, defineTable, defineAttr, sql } from 'spanner-orm'","import { defineSchema } from 'spanner-orm'","import { QueryBuilder } from 'spanner-orm'","import { sql } from 'spanner-orm'"]},{"cmd":"yarn add spanner-orm","imports":[]},{"cmd":"pnpm add spanner-orm","imports":[]}],"homepage":"https://github.com/Flux159/spanner-orm#readme","github":"https://github.com/Flux159/spanner-orm","docs":null,"changelog":null,"pypi":null,"npm":"spanner-orm","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}