Documentation
¶
Index ¶
Constants ¶
View Source
const ( LevelSerializable = "serializable" LevelRepeatableRead = "repeatable read" LevelReadCommitted = "read committed" LevelReadUncommitted = "read uncommitted" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConvertParameters ¶
type DB ¶
type DB interface {
Close() error
Exec(query string, args ...interface{}) (Result, error)
ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
Query(query string, args ...interface{}) (Rows, error)
QueryContext(ctx context.Context, query string, args ...interface{}) (Rows, error)
QueryRow(query string, args ...interface{}) Row
QueryRowContext(ctx context.Context, query string, args ...interface{}) Row
BeginTx(ctx context.Context, isolationLevel string, readOnly bool) (Tx, error)
DriverName() string
ErrNoRows() error
ErrGetCode(err error) string
}
type Tx ¶
type Tx interface {
ExecContext(ctx context.Context, query string, args ...interface{}) (Result, error)
QueryContext(ctx context.Context, query string, args ...interface{}) (Rows, error)
QueryRowContext(ctx context.Context, query string, args ...interface{}) Row
Commit(ctx context.Context) error
Rollback(ctx context.Context) error
}
Click to show internal directories.
Click to hide internal directories.