entity

package
v0.0.0-...-828d3b4 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TxErr = errors.New("ent: cannot start a transaction within a transaction")

Functions

func Client

func Client(ctx context.Context, group ...string) (*ent.Client, error)

func MustClient

func MustClient(group ...string) *ent.Client

func NetworkClient

func NetworkClient(ctx context.Context, network *ent.Network) (*ent.Client, error)

func SetDialect

func SetDialect(ctx context.Context, f func(string), group ...string)

func Start

func Start(logger log.Logger, cfg *config.Config) error

func WithTx

func WithTx(ctx context.Context, client *ent.Client, fn func(db *ent.Client) error) error

Types

type Option

type Option struct {
	// contains filtered or unexported fields
}

func (*Option) Modify

func (o *Option) Modify(modifiers ...func(s *entsql.Selector)) *Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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