db

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NanoIDHook

func NanoIDHook() ent.Hook

func NewDB

func NewDB(config *config.Config, logger *zap.SugaredLogger) (*ent.Client, error)

func NewTestDB

func NewTestDB() *ent.Client

Types

type NanoidMutation

type NanoidMutation interface {
	Nanoid() (r string, exists bool)
	ID() (id int, exists bool)
}

type Updater

type Updater interface {
	Exec(context.Context) error
}

Jump to

Keyboard shortcuts

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