ioschema

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package ioschema implements SchemaManager interface for database schema management. This is an impure I/O package that uses schema.Migrate for initial creation and Atlas declarative migrations for updates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtlasDevSchemaError added in v0.1.3

func AtlasDevSchemaError(err error) error

AtlasDevSchemaError creates an error for dev schema operations.

func AtlasDiffError added in v0.1.3

func AtlasDiffError(err error) error

AtlasDiffError creates an error for schema diff computation failures.

func AtlasDriverError added in v0.1.3

func AtlasDriverError(err error) error

AtlasDriverError creates an error for Atlas driver initialization.

func AtlasInspectError added in v0.1.3

func AtlasInspectError(schemaName string, err error) error

AtlasInspectError creates an error for schema inspection failures.

func AtlasPlanError added in v0.1.3

func AtlasPlanError(err error) error

AtlasPlanError creates an error for migration plan generation failures.

func CollationError

func CollationError(table, column string, err error) error

CollationError creates an error for collation setting failures.

func CreateSchemaError

func CreateSchemaError(err error) error

CreateSchemaError creates an error for schema creation failures.

func GORMConnectionError

func GORMConnectionError(err error) error

GORMConnectionError creates an error for GORM connection failures.

func MigrateSchemaError

func MigrateSchemaError(err error) error

MigrateSchemaError creates an error for schema migration failures.

func NewManager

func NewManager(
	op db.Operator,
	cfg *config.Config,
) gndb.SchemaManager

NewManager creates a new SchemaManager.

func NotConnectedError

func NotConnectedError() error

NotConnectedError creates an error for when schema operation is attempted without database connection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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