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.
| 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. |
| 19 | type 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…