Documentation ¶
Index ¶
Constants ¶
View Source
const RegistrySep = "."
RegistrySep is a name separator for building implementation hierarchy.
Variables ¶
View Source
var ErrVolatile = fmt.Errorf("database is in-memory")
ErrVolatile is returned when trying to pass a path for opening an in-memory database.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB interface { // Close closes the database. Close() error }
DB is a common interface implemented by all database abstractions.
type ErrRegistered ¶
type ErrRegistered struct {
Name string
}
ErrRegistered is thrown when trying to register a database driver with a name that is already registered.
func (ErrRegistered) Error ¶
func (e ErrRegistered) Error() string
type Iterator ¶
type Iterator interface { // Next advances an iterator. Next(ctx context.Context) bool // Err returns a last encountered error. Err() error // Close frees resources. Close() error }
Iterator is a common interface implemented by all iterators.
Click to show internal directories.
Click to hide internal directories.