MCPcopy
hub / github.com/ent/ent / Schema

Method Schema

dialect/sql/builder.go:87–90  ·  view source on GitHub ↗

Schema sets the database name for the view.

(name string)

Source from the content-addressed store, hash-verified

85
86// Schema sets the database name for the view.
87func (v *ViewBuilder) Schema(name string) *ViewBuilder {
88 v.schema = name
89 return v
90}
91
92// IfNotExists appends the `IF NOT EXISTS` clause to the `CREATE VIEW` statement.
93func (v *ViewBuilder) IfNotExists() *ViewBuilder {

Callers 15

TestMySQLFunction · 0.45
TestVersionedMigrationFunction · 0.45
sqlQueryMethod · 0.45
sqlQueryMethod · 0.45
sqlQueryMethod · 0.45
loadUsersMethod · 0.45
sqlQueryMethod · 0.45
sqlQueryMethod · 0.45
loadGroupsMethod · 0.45
loadFriendsMethod · 0.45
loadParentsMethod · 0.45
loadChildrenMethod · 0.45

Calls

no outgoing calls

Tested by 7

TestMySQLFunction · 0.36
TestVersionedMigrationFunction · 0.36
TestBuilderFunction · 0.36
TestWriteDriverFunction · 0.36
TestSetNeighborsFunction · 0.36
TestHasNeighborsFunction · 0.36
TestHasNeighborsWithFunction · 0.36