Documentation ¶
Overview ¶
copy from core/stores/sqlx/orm.go
copy from core/stores/sqlx/sqlconn.go
copy from core/stores/sqlx/utils.go
Index ¶
- Variables
- type MockConn
- func (conn *MockConn) Exec(query string, args ...interface{}) (sql.Result, error)
- func (conn *MockConn) Prepare(query string) (sqlx.StmtSession, error)
- func (conn *MockConn) QueryRow(v interface{}, q string, args ...interface{}) error
- func (conn *MockConn) QueryRowPartial(v interface{}, q string, args ...interface{}) error
- func (conn *MockConn) QueryRows(v interface{}, q string, args ...interface{}) error
- func (conn *MockConn) QueryRowsPartial(v interface{}, q string, args ...interface{}) error
- func (conn *MockConn) Transact(func(session sqlx.Session) error) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotMatchDestination = errors.New("not matching destination to scan") ErrNotReadableValue = errors.New("value not addressable or interfaceable") ErrNotSettable = errors.New("passed in variable is not settable") ErrUnsupportedValueType = errors.New("unsupported unmarshal type") )
View Source
var ErrNotFound = sql.ErrNoRows
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
func NewMockConn ¶
func (*MockConn) QueryRowPartial ¶
func (*MockConn) QueryRowsPartial ¶
Click to show internal directories.
Click to hide internal directories.