package
1.0.1
Repository: https://github.com/briancabbott/entgo.git
Documentation: pkg.go.dev

# Functions

NewInspect returns an inspector for the given SQL driver.
NewMigrate create a migration structure for the given SQL driver.
NewTable returns a new table with the given name.
WithApplyHook adds a list of ApplyHook to the schema migration.
WithAtlas is an opt-in option for v0.10 indicates the migration should be executed using Atlas engine (i.e.
WithDiffHook adds a list of DiffHook to the schema migration.
WithDir sets the atlas migration directory to use to store migration files.
WithDropColumn sets the columns dropping option to the migration.
WithDropIndex sets the indexes dropping option to the migration.
WithFixture sets the foreign-key renaming option to the migration when upgrading ent from v0.1.0 (issue-#285).
WithForeignKeys enables creating foreign-key in ddl.
WithFormatter sets atlas formatter to use to write changes to migration files.
WithGlobalUniqueID sets the universal ids options to the migration.
WithHooks adds a list of hooks to the schema migration.
WithSchema provides a schema (named-database) for reading the tables from.
WithSkipChanges allows skipping/filtering list of changes returned by the Differ before executing migration planning.

# Constants

List of change types.
List of change types.
List of change types.
List of change types.
List of change types.
List of change types.
Reference options.
DefaultStringLen describes the default length for string/varchar types.
List of change types.
List of change types.
List of change types.
List of change types.
List of change types.
List of change types.
MaxTypes defines the max number of types can be created when defining universal ids.
List of change types.
List of change types.
List of change types.
List of change types.
List of change types.
List of change types.
Reference options.
List of change types.
Null is the string representation of NULL in SQL.
PrimaryKey is the string representation of PKs in SQL.
Reference options.
Reference options.
Reference options.
TypeTable defines the table name holding the type information.
UniqueKey is the string representation of PKs in SQL.

# Structs

Column schema definition for SQL dialects.
ForeignKey definition for creation.
Index definition for table index.
An Inspector provides methods for inspecting database tables.
Migrate runs the migrations logic for the SQL dialects.
MySQL is a MySQL migration driver.
Postgres is a postgres migration driver.
SQLite is an SQLite migration driver.
Table schema definition for SQL dialects.
WriteDriver is a driver that writes all driver exec operations to its writer.

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
A ChangeKind denotes the kind of schema change.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Indexes used for scanning all sql.Rows into a list of indexes, because multiple sql rows can represent the same index (multi-columns indexes).
InspectOption allows for managing schema configuration using functional options.
MigrateOption allows for managing schema configuration using functional options.
ReferenceOption for constraint actions.