1 dépôt
Generates tables from Go struct definitions and supports schema creation options for rapid prototyping and testing.
Distinct from Database Schema Managers: Distinct from Database Schema Managers: generates schemas from Go struct definitions rather than declarative DSLs or migration scripts.
Explore 1 awesome GitHub repository matching data & databases · Struct-Driven Schema Generators. Refine with filters or upvote what's useful.
pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent query builder for constructing SQL statements programmatically. At its core, it automatically generates CREATE TABLE statements from Go struct definitions using struct tags and naming conventions, and builds queries through method chaining with placeholder-based parameter binding to prevent SQL injection. The library distinguishes itself through relation-aware join generation that automatically constructs JOIN clauses for has-one, has-many, many-to-many, and polymorphic assoc
Generates tables from Go struct definitions and supports schema creation options for rapid prototyping and testing.