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 ¶
- func AtlasDevSchemaError(err error) error
- func AtlasDiffError(err error) error
- func AtlasDriverError(err error) error
- func AtlasInspectError(schemaName string, err error) error
- func AtlasPlanError(err error) error
- func CollationError(table, column string, err error) error
- func CreateSchemaError(err error) error
- func GORMConnectionError(err error) error
- func MigrateSchemaError(err error) error
- func NewManager(op db.Operator, cfg *config.Config) gndb.SchemaManager
- func NotConnectedError() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtlasDevSchemaError ¶ added in v0.1.3
AtlasDevSchemaError creates an error for dev schema operations.
func AtlasDiffError ¶ added in v0.1.3
AtlasDiffError creates an error for schema diff computation failures.
func AtlasDriverError ¶ added in v0.1.3
AtlasDriverError creates an error for Atlas driver initialization.
func AtlasInspectError ¶ added in v0.1.3
AtlasInspectError creates an error for schema inspection failures.
func AtlasPlanError ¶ added in v0.1.3
AtlasPlanError creates an error for migration plan generation failures.
func CollationError ¶
CollationError creates an error for collation setting failures.
func CreateSchemaError ¶
CreateSchemaError creates an error for schema creation failures.
func GORMConnectionError ¶
GORMConnectionError creates an error for GORM connection failures.
func MigrateSchemaError ¶
MigrateSchemaError creates an error for schema migration failures.
func NewManager ¶
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.