Documentation
¶
Overview ¶
Package db provides structure to implement database connections.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
Postgres is wrapper over pgxpool.Pool.
func NewPostgres ¶
NewPostgres creates new Pool and ping database. It returns pointer to a Postgres instance or nil if connection failed.
Click to show internal directories.
Click to hide internal directories.