txrequest

package
v0.0.41 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2025 License: MIT Imports: 0 Imported by: 5

Documentation

Overview

Package txrequest, 定义了事务的级别,包括三个级别:

RequestNone 没有特别的事务要求,每一条sql的执行都在mysql缺省事务中

RequestReadonly 只读事务, 事务内只有读取数据sql,不能有写数据的操作,可以有效的提升性能

RequestWrite 写事务,事务内支持写操作,当然也支持读操作

Index

Constants

View Source
const (
	RequestNone     = RequestStyle(0)
	RequestReadonly = RequestStyle(1)
	RequestWrite    = RequestStyle(2)
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestStyle

type RequestStyle int

Jump to

Keyboard shortcuts

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