MCPcopy
hub / github.com/ent/ent / Table

Function Table

dialect/sql/builder.go:1592–1594  ·  view source on GitHub ↗

Table returns a new table selector. t1 := Table("users").As("u") return Select(t1.C("name"))

(name string)

Source from the content-addressed store, hash-verified

1590// t1 := Table("users").As("u")
1591// return Select(t1.C("name"))
1592func Table(name string) *SelectTable {
1593 return &SelectTable{quote: true, name: name}
1594}
1595
1596// Schema sets the schema name of the table.
1597func (s *SelectTable) Schema(name string) *SelectTable {

Callers 15

RunMethod · 0.92
SelectFunction · 0.92
RelationFunction · 0.92
loadFriendsMethod · 0.92
loadCardMethod · 0.92
loadSpecMethod · 0.92
loadUsersMethod · 0.92
loadGroupsMethod · 0.92
loadFriendsMethod · 0.92
loadFollowersMethod · 0.92
loadFollowingMethod · 0.92
loadFollowersMethod · 0.92

Calls

no outgoing calls

Tested by 15

SelectFunction · 0.74
RelationFunction · 0.74
TestMySQLFunction · 0.74
TestVersionedMigrationFunction · 0.74
TestCustomTemplateFunction · 0.74
TestSchemaConfigFunction · 0.74
TestWritePathFunction · 0.74
TestDDLFunction · 0.74
TestSetNeighborsFunction · 0.74
TestHasNeighborsFunction · 0.74
TestHasNeighborsWithFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…