ent

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Before added in v0.0.11

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 Connect

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

func Connector

func Connector(db *DB, builder Builder) *Connect

Connector builds DB instances.

func (*Connect) Close

func (c *Connect) Close() error

func (*Connect) Open

func (c *Connect) Open(config orm.Config) (any, error)

Open builds DB instances.

type DB added in v0.0.7

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

func Open added in v0.0.7

func Open(ctx context.Context, config orm.Config) (*DB, error)

func (*DB) Before added in v0.0.11

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

func (*DB) Close added in v0.0.7

func (db *DB) Close() error

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