Documentation ¶
Overview ¶
Package entdb extends the ent db library and satisfies matt's needs for consistency
Index ¶
- func NewMultiDriverDBClient(ctx context.Context, c entx.Config, l *zap.SugaredLogger, opts []ent.Option) (*ent.Client, *entx.EntClientConfig, error)
- func NewTestClient(ctx context.Context, ctr *testutils.TC, entOpts []ent.Option) (*ent.Client, error)
- func NewTestContainer(ctx context.Context) *testutils.TC
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMultiDriverDBClient ¶ added in v0.3.3
func NewMultiDriverDBClient(ctx context.Context, c entx.Config, l *zap.SugaredLogger, opts []ent.Option) (*ent.Client, *entx.EntClientConfig, error)
NewMultiDriverDBClient returns a ent client with a primary and secondary, if configured, write database
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.