-
Notifications
You must be signed in to change notification settings - Fork 0
Home
GCORM is a schema-first ORM toolkit for Go. You describe your data model in
.gcorm schema files, generate Go code, and use the generated client,
query, and model packages with database/sql.
GCORM currently targets PostgreSQL, MySQL, and SQLite. The CLI can initialize schemas, validate and format schema files, generate Go clients, create migration files, and push schema changes directly to a database.
- Installation
- Quick Start
- Schema Guide
- Generated Client
- Querying
- DB Push
- Embedded DB Push
- Migrations
- Security
- Performance
- Troubleshooting
GCORM is early-stage software. Public APIs, generated code shape, and schema syntax may still change. Review generated SQL before using it against important databases, especially when dropping tables, dropping columns, changing column types, or using SQLite table rebuild workflows.
gco init
gco validate
gco fmt
gco generate
gco db pushUse migration files when you need a reviewed, auditable SQL history:
gco migrate diff --name initUse gco db push for direct schema synchronization in development and controlled
environments.
For production binaries that embed .gcorm files and call dbpush.Push, see
Embedded DB Push.