test_tx

package
v0.0.0-...-acc9957 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 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 UserGenDAO

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

func NewUserGenDAO

func NewUserGenDAO(db *sql.DB) (*UserGenDAO, error)

func (*UserGenDAO) Begin

func (dao *UserGenDAO) Begin(ctx context.Context, opts *sql.TxOptions) (*UserTxGenDAO, error)

func (*UserGenDAO) DeleteByRaw

func (dao *UserGenDAO) DeleteByRaw(ctx context.Context, query string, args ...any) (int64, error)

func (*UserGenDAO) DeleteByWhere

func (dao *UserGenDAO) DeleteByWhere(ctx context.Context, where string, args ...any) (int64, error)

func (*UserGenDAO) Insert

func (dao *UserGenDAO) Insert(ctx context.Context, vals ...*integration.User) (int64, error)

func (*UserGenDAO) NewBatch

func (dao *UserGenDAO) NewBatch(rows *sql.Rows) ([]*integration.User, error)

func (*UserGenDAO) NewOne

func (dao *UserGenDAO) NewOne(row *sql.Row) (*integration.User, error)

func (*UserGenDAO) SelectBatchByRaw

func (dao *UserGenDAO) SelectBatchByRaw(ctx context.Context, query string, args ...any) ([]*integration.User, error)

func (*UserGenDAO) SelectBatchByWhere

func (dao *UserGenDAO) SelectBatchByWhere(ctx context.Context, where string, args ...any) ([]*integration.User, error)

func (*UserGenDAO) SelectByRaw

func (dao *UserGenDAO) SelectByRaw(ctx context.Context, query string, args ...any) (*integration.User, error)

func (*UserGenDAO) SelectByWhere

func (dao *UserGenDAO) SelectByWhere(ctx context.Context, where string, args ...any) (*integration.User, error)

func (*UserGenDAO) UpdateColsByRaw

func (dao *UserGenDAO) UpdateColsByRaw(ctx context.Context, query string, args ...any) (int64, error)

func (*UserGenDAO) UpdateNonePKColByWhere

func (dao *UserGenDAO) UpdateNonePKColByWhere(ctx context.Context, val *integration.User, where string, args ...any) (int64, error)

func (*UserGenDAO) UpdateNoneZeroColByWhere

func (dao *UserGenDAO) UpdateNoneZeroColByWhere(ctx context.Context, val *integration.User, where string, args ...any) (int64, error)

func (*UserGenDAO) UpdateSpecificColsByWhere

func (dao *UserGenDAO) UpdateSpecificColsByWhere(ctx context.Context, val *integration.User, cols []string, where string, args ...any) (int64, error)

type UserTxGenDAO

type UserTxGenDAO struct {
	*UserGenDAO
}

func (*UserTxGenDAO) Commit

func (dao *UserTxGenDAO) Commit() error

func (*UserTxGenDAO) Rollback

func (dao *UserTxGenDAO) Rollback() error

Jump to

Keyboard shortcuts

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