shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Packages
Search packages... ⌘K
  • Data & Persistence
    • Databases 3
    • Object Storage 1
    • File Formats 2
    • Enumerations 2
    • Content 1
    • Codegen 2
  • System Integration
    • Secrets 1
    • CLI Tools 5
    • Media Processing 2
    • Adapters 2
  • UI & Components
    • Primitives 1
    • Blocks 1
    • Sections & Layouts 1
    • Entities 1
    • Media 1
    • Utilities 1
    • State & Presenter 1
    • Branding & Style 1
  • Game Engine
    • Framework 1
    • Engine 2
    • Presets 1
    • Vendor 1
Packages/ Data & Persistence/ Databases/ Repository
Go Package

repository

Domain-specific repositories — typed wrappers for entity persistence

Go Ready MD
Typed Repository Initialization go
1
2
3
4
5
6
7
8
9
// Domain repositories wrap generic persistence with
// entity-specific queries and validation
projects := repository.NewProjectRepo(pool)
entities := repository.NewEntityRepo(pool)

// Domain-specific methods — not just generic CRUD
active, err := projects.FindActive(ctx)
tree, err := entities.LoadTree(ctx, rootID)
children, err := entities.FindChildren(ctx, parentID)

About

Provides pre-configured repository instances for each domain entity. Wraps the generic persistence layer with domain-specific query methods, validation rules, and relationship loading.

Public API

NameKindSignature
ProjectRepotypetype ProjectRepo struct
EntityRepotypetype EntityRepo struct
NewProjectRepofuncfunc NewProjectRepo(pool *database.Pool) *ProjectRepo
NewEntityRepofuncfunc NewEntityRepo(pool *database.Pool) *EntityRepo

Dependencies

Imports (2)

database Go Ready

PostgreSQL adapter — connection pooling, schema isolation, health checks

postgresqlpgxpoolingschema-isolation
4 exports 5 deps
persistence Go Ready

Generic persistence layer — CRUD operations with type-safe repositories

crudgenericsrepository-patterntype-safe
4 exports 2 deps

Related Packages

database Go Ready

PostgreSQL adapter — connection pooling, schema isolation, health checks

postgresqlpgxpoolingschema-isolation
4 exports 5 deps
persistence Go Ready

Generic persistence layer — CRUD operations with type-safe repositories

crudgenericsrepository-patterntype-safe
4 exports 2 deps

Source

github.com/shredbx/sbx-core/pkg/repository
domain-driventyped-repositoriesentity-storage
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |