Documentation
¶
Index ¶
- Variables
- func CreateConnection(pgxconf string)
- func InsertStruct[T any](pool *pgxpool.Pool, table string, value T) error
- func SelectStruct[T any](pool *pgxpool.Pool, table string, where string, whereArgs ...any) (T, error)
- func SelectStructs[T any](pool *pgxpool.Pool, table string, where string, whereArgs ...any) ([]T, error)
- func UpdateStruct[T any](pool *pgxpool.Pool, table string, value T, where string, whereArgs ...any) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ConnPool *pgxpool.Pool
Functions ¶
func CreateConnection ¶
func CreateConnection(pgxconf string)
func SelectStruct ¶
func SelectStructs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.