MCPcopy Index your code
hub / github.com/ent/ent / newDriver

Function newDriver

dialect/sql/sqljson/dialect.go:185–196  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

183}
184
185func newDriver(name string) (driver, error) {
186 switch name {
187 case dialect.SQLite:
188 return (*sqlite)(nil), nil
189 case dialect.MySQL:
190 return (*mysql)(nil), nil
191 case dialect.Postgres:
192 return (*postgres)(nil), nil
193 default:
194 return nil, fmt.Errorf("sqljson: unknown driver %q", name)
195 }
196}
197
198type when struct{ Cond, Then, Else func(*sql.Builder) }
199

Callers 1

AppendFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…