Documentation ¶
Index ¶
- type BaseDriver
- func (d *BaseDriver) Begin() (*sql.Tx, error)
- func (d *BaseDriver) Close() error
- func (d *BaseDriver) ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error)
- func (d *BaseDriver) PrepareContext(ctx context.Context, query string) (*sql.Stmt, error)
- func (d *BaseDriver) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error)
- func (d *BaseDriver) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row
- type Driver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseDriver ¶
func (*BaseDriver) Close ¶
func (d *BaseDriver) Close() error
func (*BaseDriver) ExecContext ¶
func (*BaseDriver) PrepareContext ¶
func (*BaseDriver) QueryContext ¶
func (*BaseDriver) QueryRowContext ¶
type Driver ¶
type Driver interface { ExecContext(ctx context.Context, query string, args ...interface{}) (sql.Result, error) QueryContext(ctx context.Context, query string, args ...interface{}) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...interface{}) *sql.Row PrepareContext(ctx context.Context, query string) (*sql.Stmt, error) // Adicionado Begin() (*sql.Tx, error) Close() error }
func NewMattnDriver ¶
func NewModerncDriver ¶
Click to show internal directories.
Click to hide internal directories.