Discover Packages
github.com/squeakymisre/netmoth
internal
storage
postgres
package
Version:
v0.0.0-...-f1a8a3b
Opens a new window with list of versions in this module.
Published: Apr 23, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Connect struct {
Conn *sql .DB
}
Connect is ...
New creates a new connection to the PostgreSQL database using the provided configuration.
It returns a pointer to a Connect struct that contains the database connection and an error if any occurred.
type PgSQLConfig struct {
DSN string
MaxConn int
MaxIdleConn int
MaxLifetimeConn int
}
PgSQLConfig is ...
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.