entext

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Close() error
}

type EntExt

type EntExt struct {
	NS        string
	NewClient func(interface{}) Client
	Driver    func(dialect.Driver) interface{}

	IsNotFound          func(error) bool
	IsConstraintFailure func(error) bool
	IsNotSingular       func(error) bool
	// contains filtered or unexported fields
}

func (*EntExt) Application

func (d *EntExt) Application() *gobay.Application

func (*EntExt) Close

func (d *EntExt) Close() error

func (*EntExt) DB added in v0.5.0

func (d *EntExt) DB() *sql.DB

DB 获取数据库,ent目前还不够完善,某些场景下还需要执行sql

func (*EntExt) Init

func (d *EntExt) Init(app *gobay.Application) error

func (*EntExt) Object

func (d *EntExt) Object() interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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