entdb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package entdb extends the ent db library and satisfies matt's needs for consistency

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMultiDriverDBClient

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

func NewTestClient

func NewTestClient(ctx context.Context, entOpts []ent.Option) (*ent.Client, *testutils.TC, error)

NewTestClient creates a entdb client that can be used for TEST purposes ONLY

Types

This section is empty.

Jump to

Keyboard shortcuts

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