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

Method writeDefault

dialect/sql/builder.go:467–474  ·  view source on GitHub ↗
(b *Builder)

Source from the content-addressed store, hash-verified

465}
466
467func (i *InsertBuilder) writeDefault(b *Builder) {
468 switch i.Dialect() {
469 case dialect.MySQL:
470 b.WriteString("VALUES ()")
471 case dialect.SQLite, dialect.Postgres:
472 b.WriteString("DEFAULT VALUES")
473 }
474}
475
476func (i *InsertBuilder) writeConflict(b *Builder) {
477 switch i.Dialect() {

Callers 1

QueryErrMethod · 0.95

Calls 2

WriteStringMethod · 0.80
DialectMethod · 0.65

Tested by

no test coverage detected