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

Interface Sqlizer

squirrel.go:19–21  ·  view source on GitHub ↗

Sqlizer is the interface that wraps the ToSql method. ToSql returns a SQL representation of the Sqlizer, along with a slice of args as passed to e.g. database/sql.Exec. It can also return an error.

Source from the content-addressed store, hash-verified

17// ToSql returns a SQL representation of the Sqlizer, along with a slice of args
18// as passed to e.g. database/sql.Exec. It can also return an error.
19type Sqlizer interface {
20 ToSql() (string, []interface{}, error)
21}
22
23// rawSqlizer is expected to do what Sqlizer does, but without finalizing placeholders.
24// This is useful for nested queries.

Callers 8

TestExprNilToSqlFunction · 0.95
TestNullTypeStringFunction · 0.95
ToSqlMethod · 0.65
TestWherePartNilFunction · 0.65
TestWherePartErrFunction · 0.65
TestWherePartStringFunction · 0.65
TestWherePartMapFunction · 0.65
TestInsertBuilderToSqlFunction · 0.65

Implementers 9

insertDatainsert.go
deleteDatadelete.go
updateDataupdate.go
caseDatacase.go
exprexpr.go
aliasExprexpr.go
partpart.go
selectDataselect.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…