mysqlx

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitMysqlX

func InitMysqlX(ctx context.Context)

InitMysqlX 初始化myslqx

func ReadonlyWithResult

func ReadonlyWithResult[T any](ctx context.Context, workFn func(tc *godbx.TransContext) (T, error)) (T, error)

ReadonlyWithResult 只读单事务

func WriteNoResult

func WriteNoResult(ctx context.Context, workFn func(tc *godbx.TransContext) error) error

WriteNoResult 只写单事务,无返回值

func WriteWithResult

func WriteWithResult[T any](ctx context.Context, workFn func(tc *godbx.TransContext) (T, error)) (T, error)

WriteWithResult 只写单事务,有返回值

Types

This section is empty.

Jump to

Keyboard shortcuts

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