Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PGReadSingleRow ¶
func PGReadSingleRow[T comparable](scanData *T, call string, data ...any) error
PGReadSingleRow is intended for performing a read operation on a query which strictly returns scalar data.
func PostgresNewPool ¶
func PostgresNewPool() error
PostgresNewPool creates a connection for PostgreSQL. Make sure to close the connection when you no longer require it. To close a connection use CloseConnection method.
Types ¶
type PostgresPoolClient ¶
type PostgresPoolClient struct {
// contains filtered or unexported fields
}
func Postgres ¶
func Postgres() *PostgresPoolClient
func (*PostgresPoolClient) ExecNonQuery ¶
func (p *PostgresPoolClient) ExecNonQuery(call string, data ...any) error
ExecNonQuery is intended for performing create, update and delete functions.
------------------ IMPORTANT ----------------
DO NOT USE THIS FUNCTION TO PERFORM READ OPERATIONS. DOING SO WILL RESULT IN UNEXPECTED RESULTS.
------------------ IMPORTANT ----------------
func (*PostgresPoolClient) FlushPool ¶
func (p *PostgresPoolClient) FlushPool()
Click to show internal directories.
Click to hide internal directories.