package
0.1.0
Repository: https://github.com/datumforge/go-template.git
Documentation: pkg.go.dev

# Functions

Create creates all table resources using the given schema driver.
Diff compares the state read from a database connection or migration directory with the state defined by the Ent schema.
NamedDiff compares the state read from a database connection or migration directory with the state defined by the Ent schema.
NewSchema creates a new schema client.

# Variables

Tables holds all the tables in the schema.
TodosColumns holds the columns for the "todos" table.
TodosTable holds the schema information for the "todos" table.
WithDropColumn sets the drop column option to the migration.
WithDropIndex sets the drop index option to the migration.
WithForeignKeys enables creating foreign-key in schema DDL.
WithGlobalUniqueID sets the universal ids options to the migration.

# Structs

Schema is the API for creating, migrating and dropping a schema.