db_utils

package
v0.0.0-...-ba78406 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Driver     string
	Connection string
}

type SqlClient

type SqlClient struct {
	DB *gorm.DB
	// contains filtered or unexported fields
}

func NewSqlClient

func NewSqlClient(conf2 *Config) (client *SqlClient)

func (*SqlClient) MustClose

func (self *SqlClient) MustClose(tctx *logger.TraceContext)

func (*SqlClient) MustOpen

func (self *SqlClient) MustOpen(tctx *logger.TraceContext)

func (*SqlClient) Transact

func (self *SqlClient) Transact(tctx *logger.TraceContext, txFunc func(tx *gorm.DB) (err error)) (err error)

Jump to

Keyboard shortcuts

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