Documentation ¶
Index ¶
- func InitMysqlX(ctx context.Context)
- func ReadonlyWithResult[T any](ctx context.Context, workFn func(tc *godbx.TransContext) (T, error)) (T, error)
- func WriteNoResult(ctx context.Context, workFn func(tc *godbx.TransContext) error) error
- func WriteWithResult[T any](ctx context.Context, workFn func(tc *godbx.TransContext) (T, error)) (T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadonlyWithResult ¶
func ReadonlyWithResult[T any](ctx context.Context, workFn func(tc *godbx.TransContext) (T, error)) (T, error)
ReadonlyWithResult 只读单事务
func WriteNoResult ¶
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.
Click to show internal directories.
Click to hide internal directories.