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

Method ToSql

expr.go:209–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207}
208
209func (eq Eq) ToSql() (sql string, args []interface{}, err error) {
210 return eq.toSQL(false)
211}
212
213// NotEq is syntactic sugar for use with Where/Having/Set methods.
214// Ex:

Callers 8

TestEqToSqlFunction · 0.95
TestEqInToSqlFunction · 0.95
TestEqInEmptyToSqlFunction · 0.95
TestEqBytesToSqlFunction · 0.95
TestNullTypeInt64Function · 0.95
TestNilPointerFunction · 0.95
TestNotNilPointerFunction · 0.95
TestSqlEqOrderFunction · 0.95

Calls 1

toSQLMethod · 0.95

Tested by 8

TestEqToSqlFunction · 0.76
TestEqInToSqlFunction · 0.76
TestEqInEmptyToSqlFunction · 0.76
TestEqBytesToSqlFunction · 0.76
TestNullTypeInt64Function · 0.76
TestNilPointerFunction · 0.76
TestNotNilPointerFunction · 0.76
TestSqlEqOrderFunction · 0.76