package
0.0.0-20240528100830-79c95e3d0934
Repository: https://github.com/go-kratos/examples.git
Documentation: pkg.go.dev

# Functions

NewSchema creates a new schema client.

# Variables

ArticlesColumns holds the columns for the "articles" table.
ArticlesTable holds the schema information for the "articles" table.
CommentsColumns holds the columns for the "comments" table.
CommentsTable holds the schema information for the "comments" table.
Tables holds all the tables in the schema.
TagPostsColumns holds the columns for the "tag_posts" table.
TagPostsTable holds the schema information for the "tag_posts" table.
TagsColumns holds the columns for the "tags" table.
TagsTable holds the schema information for the "tags" table.
WithDropColumn sets the drop column option to the migration.
WithDropIndex sets the drop index 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 schema DDL.
WithGlobalUniqueID sets the universal ids options to the migration.

# Structs

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