Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FullTextSearchReplacer = strings.NewReplacer("/", " ", ".", " ")
)
Functions ¶
Types ¶
type Repository ¶
Repository provides a PostgreSQL persistence layer.
func NewRepository ¶
func NewRepository(pool *pgxpool.Pool) *Repository
NewRepository initializes and returns a PostgreSQL Repository.
func (*Repository) QueryTx ¶
func (r *Repository) QueryTx(domain string, operation string, query string, args pgx.NamedArgs) error
func (*Repository) Rollback ¶
func (r *Repository) Rollback(ctx context.Context, tx pgx.Tx, domain string, operation string)
func (*Repository) RowExistsByQuery ¶
func (r *Repository) RowExistsByQuery(query string, queryParams ...any) (bool, error)
Click to show internal directories.
Click to hide internal directories.