Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidDSN indicates an invalid PostgreSQL connection string. ErrInvalidDSN = errors.New("invalid PostgreSQL DSN") // ErrClientConnection indicates a failure to connect to PostgreSQL. ErrClientConnection = errors.New("failed to connect to PostgreSQL server") // ErrInvalidDatabase indicates an invalid database name. ErrInvalidDatabase = errors.New("invalid database name") // ErrInvalidCredentials indicates invalid authentication credentials. ErrInvalidCredentials = errors.New("invalid PostgreSQL credentials") // ErrInvalidSchema indicates an invalid schema name. ErrInvalidSchema = errors.New("invalid schema name") )
Error variables for wrapping underlying errors.
Functions ¶
This section is empty.
Types ¶
type PingConnectionError ¶
type PingConnectionError struct {
Err error
}
PingConnectionError - error ping connection
func (*PingConnectionError) Error ¶
func (e *PingConnectionError) Error() string
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implementation of db interface
func New ¶
func New(tracer trace.TracerProvider, metrics *metric.MeterProvider) *Store
New return new instance of Store
type StoreError ¶
StoreError is a custom error type for Store operations with added details.
func (*StoreError) Error ¶
func (e *StoreError) Error() string
Error implements the error interface.
func (*StoreError) Unwrap ¶
func (e *StoreError) Unwrap() error
Unwrap allows errors.Is and errors.As to work with StoreError.
Click to show internal directories.
Click to hide internal directories.