db

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	*xorm.Engine
	gox.CannotCopy
}

type Function

type Function func(session *Session) error

type Session

type Session struct {
	*xorm.Session
	gox.CannotCopy
}

Session 事务

type Transaction

type Transaction struct {
	gox.CannotCopy
	// contains filtered or unexported fields
}

func NewTransaction

func NewTransaction(engine *Engine, logger log.Logger) *Transaction

func (*Transaction) Do

func (t *Transaction) Do(fun Function, fields ...gox.Field[any]) (err error)

Jump to

Keyboard shortcuts

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