14 lines
311 B
Go
14 lines
311 B
Go
package sqlbuilder
|
|
|
|
import (
|
|
"database/sql"
|
|
"github.com/sub0zero/go-sqlbuilder/types"
|
|
)
|
|
|
|
type statement interface {
|
|
// String returns generated SQL as string.
|
|
Sql() (query string, args []interface{}, err error)
|
|
|
|
Query(db types.Db, destination interface{}) error
|
|
Execute(db types.Db) (sql.Result, error)
|
|
}
|