Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildConnectionString ¶
Build connection string
Types ¶
type PgClient ¶
PostgresClient struct
func GetInstance ¶
The GetInstance function returns a singleton instance of a Postgres client, creating a new instance if one does not already exist.
func New ¶
The New function initializes a new PostgreSQL client and returns it along with a nil error if successful.
func (*PgClient) CloseConnection ¶
The `CloseConnection` method is a function defined on the `PgClient` struct. It is used to close the connection to the PostgreSQL database.
func (*PgClient) DropDatabaseTables ¶
func (pgClient *PgClient) DropDatabaseTables()
Drop database tables
Click to show internal directories.
Click to hide internal directories.