database

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

README

database

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
}

Engine 数据库引擎简单封装

type Session

type Session struct {
	*xorm.Session
}

Session 描述一个事务

type Tx

type Tx struct {
	// contains filtered or unexported fields
}

Tx 事务控制

func (*Tx) Do

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

func (*Tx) Dop

func (t *Tx) Dop(fun txpFun, params []interface{}, fields ...gox.Field[any]) (err error)

Jump to

Keyboard shortcuts

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