sqls

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SqlWrap

type SqlWrap struct {
	// contains filtered or unexported fields
}

func Open

func Open(driverName, dataSourceName string) (db *SqlWrap, err error)

func (*SqlWrap) Begin

func (s *SqlWrap) Begin() (tx *sql.Tx, err error)

func (*SqlWrap) Commit

func (s *SqlWrap) Commit(tx *sql.Tx)

func (*SqlWrap) Exec

func (s *SqlWrap) Exec(sql string, params ...interface{}) (res sql.Result, err error)

func (*SqlWrap) ExecTx

func (s *SqlWrap) ExecTx(tx *sql.Tx, sql string, params ...interface{}) (res sql.Result, err error)

func (*SqlWrap) Query

func (s *SqlWrap) Query(sql string, params ...interface{}) (rows *sql.Rows, err error)

func (*SqlWrap) Rollback

func (s *SqlWrap) Rollback(tx *sql.Tx)

func (*SqlWrap) SetDB

func (s *SqlWrap) SetDB(db *sql.DB)

set real sql DB

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL