(sess sqladapter.Session, stmt *exql.Statement, args []interface{})
| 93 | } |
| 94 | |
| 95 | func (*database) CompileStatement(sess sqladapter.Session, stmt *exql.Statement, args []interface{}) (string, []interface{}, error) { |
| 96 | compiled, err := stmt.Compile(template) |
| 97 | if err != nil { |
| 98 | return "", nil, err |
| 99 | } |
| 100 | |
| 101 | query, args := sqlbuilder.Preprocess(compiled, args) |
| 102 | query = string(sqladapter.ReplaceWithDollarSign([]byte(query))) |
| 103 | return query, args, nil |
| 104 | } |
| 105 | |
| 106 | func (*database) Err(err error) error { |
| 107 | if err != nil { |
nothing calls this directly
no test coverage detected