// CompileStatement allows sqladapter to compile the given statement into the // format MySQL expects. func (d *database) CompileStatement(stmt *exql.Statement, args []interface{}) (string, []interface{}) { return sqlbuilder.Preprocess(stmt.Compile(template), args) }
// CompileStatement allows sqladapter to compile the given statement into the // format SQLite expects. func (d *database) CompileStatement(stmt *exql.Statement, args []interface{}) (string, []interface{}) { query, args := sqlbuilder.Preprocess(stmt.Compile(template), args) return sqladapter.ReplaceWithDollarSign(query), args }