Documentation
¶
Overview ¶
Package postgres provides the example domain's Postgres-backed adapter for its repository ports.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StubRepository ¶
type StubRepository struct {
// contains filtered or unexported fields
}
StubRepository is a Postgres-backed domain.StubRepository, built over a bun.IDB so the same code runs against the pooled production *bun.DB and against a test transaction via dbtest.
func NewStubRepository ¶
func NewStubRepository(db bun.IDB) *StubRepository
NewStubRepository constructs a StubRepository backed by db.
Click to show internal directories.
Click to hide internal directories.