Documentation
¶
Index ¶
- Constants
- type DB
- func (mdb *DB) BeginTX(ctx context.Context, dbShardID int) (sqlplugin.Tx, error)
- func (mdb *DB) IsDupEntryError(err error) bool
- func (mdb *DB) IsNotFoundError(err error) bool
- func (mdb *DB) IsThrottlingError(err error) bool
- func (mdb *DB) IsTimeoutError(err error) bool
- func (mdb *DB) PluginName() string
Constants ¶
View Source
const (
PluginName = "sqlite"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
DB contains methods for managing objects in a sqlite database It inherits methods from the mysql.DB to reuse the implementation of the methods sqlplugin.ErrorChecker is customized for sqlite
func NewDB ¶
NewDB returns an instance of DB, which contains a new created mysql.DB with sqlite specific methods
func (*DB) IsDupEntryError ¶
IsDupEntryError verify if the error is a duplicate entry error
func (*DB) IsNotFoundError ¶
IsNotFoundError verify if the error is a not found error
func (*DB) IsThrottlingError ¶
IsThrottlingError verify if the error is a throttling error
func (*DB) IsTimeoutError ¶
IsTimeoutError verify if the error is a timeout error
func (*DB) PluginName ¶
PluginName returns the name of the plugin
Click to show internal directories.
Click to hide internal directories.