i_mysql

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: BSD-3-Clause Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMysql

type IMysql interface {
	TagName() string
	Close()

	ConnectWithConfiguration(configuration t_mysql.Configuration) error

	RawSelectFirst(
		dest interface{},
		select_ string,
		str string,
		values ...interface{},
	) (
		notFound bool,
		err error,
	)

	RawSelect(
		dest interface{},
		select_ string,
		str string,
		values ...interface{},
	) error

	RawExec(sql string, values ...interface{}) (
		lastInsertId uint64,
		err error,
	)
	Count(countParams *t_mysql.CountParams, values ...interface{}) (
		count uint64,
		err error,
	)
	RawCount(sql string, values ...interface{}) (
		count uint64,
		err error,
	)
	Sum(sumParams *t_mysql.SumParams, values ...interface{}) (
		sum float64,
		err error,
	)
	SelectFirst(dest interface{}, selectParams *t_mysql.SelectParams, values ...interface{}) (
		notFound bool,
		err error,
	)
	SelectById(
		dest interface{},
		selectByIdParams *t_mysql.SelectByIdParams,
	) (
		notFound bool,
		err error,
	)
	Select(dest interface{}, selectParams *t_mysql.SelectParams, values ...interface{}) error
	Insert(tableName string, params interface{}) (
		lastInsertId uint64,
		err error,
	)
	InsertIgnore(tableName string, params interface{}) (
		lastInsertId uint64,
		err error,
	)
	Update(
		updateParams *t_mysql.UpdateParams,
		values ...interface{},
	) (
		lastInsertId uint64,
		err error,
	)

	Begin() (IMysql, error)
	Commit() error
	Rollback() error
}

Jump to

Keyboard shortcuts

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