Documentation
¶
Overview ¶
Data Base package
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrGetConnection = errors.New("error get connection")
ErrGetConnection - error gets connection
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Options)
Option is a functional option for configuring database.
func WithPostgresAfterConnect ¶
func WithPostgresAfterConnect(fn postgres.AfterConnectFunc) Option
WithPostgresAfterConnect sets the AfterConnect callback for PostgreSQL.
type Options ¶
type Options struct {
// PostgresOptions are options specific to PostgreSQL driver.
PostgresOptions []postgres.Option
}
Options holds configuration options for database initialization.
type UnknownStoreTypeError ¶
type UnknownStoreTypeError struct {
StoreType string
}
UnknownStoreTypeError - unknown store type error
func (UnknownStoreTypeError) Error ¶
func (e UnknownStoreTypeError) Error() string
Click to show internal directories.
Click to hide internal directories.
