orm

package
v0.0.0-...-714bc2e Latest Latest
Warning

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

Go to latest
Published: May 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DB

func DB() *gorm.DB

DB .

func Do

func Do(fn func(db *gorm.DB) error) error

Do do something with db

func Init

func Init(fn driver.Driver, opts ...func(o *database.Options)) error

Init init default client

func NewClient

func NewClient(fn driver.Driver, opts ...func(o *database.Options)) (*gorm.DB, error)

NewClient new db

func Transaction

func Transaction(fs ...func(tx *gorm.DB) error) (err error)

Transaction transaction with db

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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