Discover Packages
github.com/plainq/servekit
dbkit
pgkit
package
Version:
v0.3.1
Opens a new window with list of versions in this module.
Published: Jul 10, 2025
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
PgError checks if the error is a Postgres error and returns true if it is.
If it is, it returns the error wrapped with the appropriate error from errkit package.
Otherwise, it returns false and the original error.
Conn represents connection to Postgres.
New returns a pointer to a new instance of *Conn structure.
Takes connstr - connection string in Postgres format.
Close closes the connection to the Postgres database.
Health checks if the connection is healthy.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.