ent

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Before

type Before func(ctx context.Context, drv *sql.Driver) (err error)

type Builder

type Builder func(drv *sql.Driver, config orm.Config) (any, error)

type DB

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

func New

func New(config orm.Config) (*DB, error)

func (*DB) Before

func (db *DB) Before(ctx context.Context, fns ...Before) error

func (*DB) Close

func (db *DB) Close() error

func (*DB) Connector

func (db *DB) Connector(builder Builder) orm.Connector

Directories

Path Synopsis
Package mixin is the mixin package
Package mixin is the mixin package

Jump to

Keyboard shortcuts

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