gormbind

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package gormbind binds the persistence-free domain models of the models module to GORM. It is the only place in the module allowed to import gorm.io/gorm, keeping the root models package stdlib-only while still exposing a single canonical migration list shared by the backend and any other consumer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoMigrate

func AutoMigrate(db *gorm.DB) error

AutoMigrate runs gorm's AutoMigrate over MigrateModels().

func MigrateModels

func MigrateModels() []any

MigrateModels returns the canonical migration list, same order as backend/internal/database uses today: Group, API, Parameter.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL