Versions in this module Expand all Collapse all v0 v0.0.2 Jul 6, 2025 v0.0.1 Jul 6, 2025 Changes in this version + func InsertStruct(ctx context.Context, db DB, table string, data any) error + func QueryJSON(ctx context.Context, db DB, sql string, args ...any) ([]byte, error) + func QueryStructs(ctx context.Context, db DB, sql string, dest any, args ...any) error + type DB interface + Exec func(ctx context.Context, sql string, args ...any) (pgconn.CommandTag, error) + Query func(ctx context.Context, sql string, args ...any) (pgx.Rows, error) + type RowMap map[string]interface + func QueryMaps(ctx context.Context, db DB, sql string, args ...any) ([]RowMap, error)