MCPcopy
hub / github.com/Masterminds/squirrel / PlaceholderFormat

Interface PlaceholderFormat

placeholder.go:13–15  ·  view source on GitHub ↗

PlaceholderFormat is the interface that wraps the ReplacePlaceholders method. ReplacePlaceholders takes a SQL statement and replaces each question mark placeholder with a (possibly different) SQL placeholder.

Source from the content-addressed store, hash-verified

11// ReplacePlaceholders takes a SQL statement and replaces each question mark
12// placeholder with a (possibly different) SQL placeholder.
13type PlaceholderFormat interface {
14 ReplacePlaceholders(sql string) (string, error)
15}
16
17type placeholderDebugger interface {
18 debugPlaceholder() string

Callers 8

ToSqlMethod · 0.65
ToSqlMethod · 0.65
TestQuestionFunction · 0.65
TestDollarFunction · 0.65
TestColonFunction · 0.65
TestAtpFunction · 0.65
TestEscapeDollarFunction · 0.65
TestEscapeColonFunction · 0.65

Implementers 4

questionFormatplaceholder.go
dollarFormatplaceholder.go
colonFormatplaceholder.go
atpFormatplaceholder.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…