add Query/Exec/Prepare back for gdb.Link

This commit is contained in:
jflyfox
2020-12-29 14:01:49 +08:00
parent 05703ec3d7
commit 662f1ed6b7

View File

@ -213,6 +213,9 @@ type TableField struct {
// Link is a common database function wrapper interface.
type Link interface {
Query(sql string, args ...interface{}) (*sql.Rows, error)
Exec(sql string, args ...interface{}) (sql.Result, error)
Prepare(sql string) (*sql.Stmt, error)
QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)