orm

package
v0.0.0-...-e964040 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 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 return defaultDB

func Init

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

Init init defaultDB

func New

func New(fn driver.Dialector, opts ...func(o *database.Options)) (*gorm.DB, error)

New new db

func Transaction

func Transaction(gormDB *gorm.DB, fs ...func(tx *gorm.DB) error) error

Transaction .

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