Documentation ¶
Index ¶
- type Connection
- type DefaultConnection
- func (conn *DefaultConnection) Exec(ctx context.Context, sqlStr string, params ...interface{}) (common.Result, error)
- func (conn *DefaultConnection) Prepare(sqlStr string) (statement.Statement, error)
- func (conn *DefaultConnection) Query(ctx context.Context, result reflection.Object, sqlStr string, ...) error
- type DefaultStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type DefaultConnection ¶ added in v0.2.7
func (*DefaultConnection) Prepare ¶ added in v0.2.7
func (conn *DefaultConnection) Prepare(sqlStr string) (statement.Statement, error)
func (*DefaultConnection) Query ¶ added in v0.2.7
func (conn *DefaultConnection) Query(ctx context.Context, result reflection.Object, sqlStr string, params ...interface{}) error
type DefaultStatement ¶ added in v0.2.7
func (*DefaultStatement) Close ¶ added in v0.2.7
func (s *DefaultStatement) Close()
func (*DefaultStatement) Query ¶ added in v0.2.7
func (s *DefaultStatement) Query(ctx context.Context, result reflection.Object, params ...interface{}) error
Click to show internal directories.
Click to hide internal directories.