dialect/sql/schema: optimize code and add website documents (#748)

This commit is contained in:
kakaxizhang
2020-10-12 16:08:02 +08:00
parent 90c3d50c39
commit 63421aa9ad
31 changed files with 147 additions and 150 deletions

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.

View File

@@ -35,9 +35,9 @@ var (
// WithFixture sets the foreign-key renaming option to the migration when upgrading
// ent from v0.1.0 (issue-#285). Defaults to true.
WithFixture = schema.WithFixture
// WithForeighKeys enables creating foreigh-key in ddl. In some case we are
// not allowed to use foreigh-key. Defaults to true
WithForeighKeys = schema.WithForeighKeys
// WithForeignKeys enables creating foreign-key in ddl. In some case we are
// not allowed to use foreign-key. Defaults to true
WithForeignKeys = schema.WithForeignKeys
)
// Schema is the API for creating, migrating and dropping a schema.