Versions in this module Expand all Collapse all v1 v1.0.1 Jan 23, 2026 Changes in this version + var ErrNoRowsAffected = errors.New("no rows affected") v1.0.0 Aug 16, 2025 Changes in this version + type DataGate interface + Create func(ctx context.Context, data T) (int64, error) + Delete func(ctx context.Context, filter F) error + Get func(ctx context.Context, filter F) ([]T, error) + GetWithTransaction func(tx pgx.Tx) DataGate[T, F] + Update func(ctx context.Context, filter F, data map[string]interface{}) error + func NewDataGate[T, F interface{}](tableName string, primaryKey string, pool *pgxpool.Pool) (DataGate[T, F], error)