MCPcopy
hub / github.com/ent/ent / FormatParam

Method FormatParam

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

The FormatParam function lets users define custom placeholder formatting for their types. For example, formatting the default placeholder from '?' to 'ST_GeomFromWKB(?)' for MySQL dialect.

(placeholder string, info *StmtInfo)

Source from the content-addressed store, hash-verified

3155 // For example, formatting the default placeholder
3156 // from '?' to 'ST_GeomFromWKB(?)' for MySQL dialect.
3157 FormatParam(placeholder string, info *StmtInfo) string
3158 }
3159)
3160

Callers 1

ArgMethod · 0.65

Implementers 1

pointdialect/sql/builder_test.go

Calls

no outgoing calls

Tested by

no test coverage detected