db.v3: upper.io/db.v3/internal/sqladapter/compat Index | Files

package compat

import "upper.io/db.v3/internal/sqladapter/compat"

Index

Package Files

query_go18.go

func BeginTx Uses

func BeginTx(p TxStarter, ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error)

func ExecContext Uses

func ExecContext(p Execer, ctx context.Context, query string, args []interface{}) (sql.Result, error)

func PrepareContext Uses

func PrepareContext(p Preparer, ctx context.Context, query string) (*sql.Stmt, error)

func PreparedExecContext Uses

func PreparedExecContext(p PreparedExecer, ctx context.Context, args []interface{}) (sql.Result, error)

func PreparedQueryContext Uses

func PreparedQueryContext(p PreparedQueryer, ctx context.Context, args []interface{}) (*sql.Rows, error)

func PreparedQueryRowContext Uses

func PreparedQueryRowContext(p PreparedRowQueryer, ctx context.Context, args []interface{}) *sql.Row

func QueryContext Uses

func QueryContext(p Queryer, ctx context.Context, query string, args []interface{}) (*sql.Rows, error)

func QueryRowContext Uses

func QueryRowContext(p RowQueryer, ctx context.Context, query string, args []interface{}) *sql.Row

type Execer Uses

type Execer interface {
    ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
}

type PreparedExecer Uses

type PreparedExecer interface {
    ExecContext(context.Context, ...interface{}) (sql.Result, error)
}

type PreparedQueryer Uses

type PreparedQueryer interface {
    QueryContext(context.Context, ...interface{}) (*sql.Rows, error)
}

type PreparedRowQueryer Uses

type PreparedRowQueryer interface {
    QueryRowContext(context.Context, ...interface{}) *sql.Row
}

type Preparer Uses

type Preparer interface {
    PrepareContext(context.Context, string) (*sql.Stmt, error)
}

type Queryer Uses

type Queryer interface {
    QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
}

type RowQueryer Uses

type RowQueryer interface {
    QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}

type TxStarter Uses

type TxStarter interface {
    BeginTx(context.Context, *sql.TxOptions) (*sql.Tx, error)
}

Package compat imports 2 packages (graph) and is imported by 7 packages. Updated 2018-09-30. Refresh now. Tools for package owners.