Skip to main content

11 docs tagged with "gorm"

View all tags

Automatic Schema Migration Planning for GORM

Learn how to manage and automate database schema migrations in Go projects that use GORM, with Atlas. This guide shows how to generate, version, and apply migration files for your GORM models.

Automatic Schema Migrations for GORM (Program Mode)

Learn how to load your GORM schema into Atlas using Go Program Mode. This guide is ideal for projects with models across multiple packages or without standard GORM annotations, enabling advanced control over schema introspection and migration planning.

GORM Schema Migrations with Atlas

Learn how to integrate Atlas with GORM for advanced schema management and CI/CD workflows. Go beyond AutoMigrate with support for declarative and versioned migrations, composite types, enums, triggers, RLS policies, and visual schema exploration.

Using Composite Types in GORM

Learn how to manage database schema migrations that include PostgreSQL composite types in your GORM projects using Atlas. This guide explains how to define and use composite types in your schema, and manage them together with your GORM models as part of your migration workflow.

Using Database Triggers in GORM

Learn how to manage database schema migrations that include PostgreSQL triggers in your GORM projects using Atlas. This guide shows how to define triggers, combine them with your GORM models, and manage them together as part of your schema migration workflow.

Using Domain Types in GORM

Learn how to manage database schema migrations that include PostgreSQL domain types in your GORM projects using Atlas. This guide explains how to define and use domain types in your schema, and manage them together with your GORM models as part of your migration workflow.

Using Postgres Enum Types in GORM

Learn how to include PostgreSQL enum types in your GORM schema migrations using Atlas, and manage both custom enums and models in one workflow.

Using Row-Level Security in GORM

Learn how to define and manage PostgreSQL Row-Level Security (RLS) policies alongside GORM models using Atlas. This guide walks through combining GORM types and custom SQL policies into a single migration plan using composite schemas.

Visualizing GORM Schemas

Learn how to visualize your GORM schema using Atlas to generate an interactive ERD (Entity-Relationship Diagram). This guide walks through setup, configuration, and generating a shareable schema diagram directly from your Go models.