repository

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package repository provides implementations of repositories for the domain layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccountRepository

func NewAccountRepository(q sqlc.Querier) domain.AccountRepository

NewAccountRepository creates a new concrete implementation of domain.AccountRepository.

func NewAdminAuditRepository

func NewAdminAuditRepository(q sqlc.Querier) domain.AdminAuditRepository

NewAdminAuditRepository creates a new concrete implementation of domain.AdminAuditRepository.

func NewAdminTenantRepository

func NewAdminTenantRepository(q sqlc.Querier) domain.AdminTenantRepository

NewAdminTenantRepository creates a new concrete implementation of domain.AdminTenantRepository.

func NewAdminUserRepository

func NewAdminUserRepository(q sqlc.Querier) domain.AdminUserRepository

NewAdminUserRepository creates a new concrete implementation of domain.AdminUserRepository.

func NewAuditRepository

func NewAuditRepository(q sqlc.Querier) domain.AuditRepository

NewAuditRepository creates a new AuditRepository.

func NewAuthRepository

func NewAuthRepository(q sqlc.Querier) domain.AuthRepository

NewAuthRepository creates a new concrete implementation of domain.AuthRepository.

func NewCategoryRepository

func NewCategoryRepository(q sqlc.Querier) domain.CategoryRepository

NewCategoryRepository creates a new concrete implementation of domain.CategoryRepository.

func NewTenantRepository

func NewTenantRepository(q sqlc.Querier) domain.TenantRepository

NewTenantRepository creates a new concrete implementation of domain.TenantRepository.

func NewTransactionRepository

func NewTransactionRepository(q sqlc.Querier) domain.TransactionRepository

NewTransactionRepository creates a new TransactionRepository.

func NewUserRepository

func NewUserRepository(q sqlc.Querier) domain.UserRepository

NewUserRepository creates a new concrete implementation of domain.UserRepository.

func TranslateError

func TranslateError(err error) error

TranslateError maps database-specific errors (pgx, postgres) to domain-specific errors.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL