mysqlPersistentStorage

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQLDb

func NewMySQLDb(updateStampGetter UpdateStampGetter, credentials credentials.CredentialsGetter,
	config configuration.Config, ctxResolver contextData.ContextDataResolver) PersistentStorage

func NewMySQLDbNoExtraDeps

func NewMySQLDbNoExtraDeps(credentials credentials.CredentialsGetter,
	config configuration.Config) PersistentStorage

Types

type MySQLDb

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

func (MySQLDb) Delete

func (repo MySQLDb) Delete(c context.Context, model interface{}, params interface{}) error

func (MySQLDb) Exec

func (repo MySQLDb) Exec(c context.Context, queryGetter QueryGetter, params map[string]interface{}) error

func (MySQLDb) GetMany

func (repo MySQLDb) GetMany(c context.Context, target interface{}, params interface{}) error

func (MySQLDb) GetOne

func (repo MySQLDb) GetOne(c context.Context, target interface{}, params interface{}) error

func (MySQLDb) Insert

func (repo MySQLDb) Insert(c context.Context, target interface{}) error

func (MySQLDb) IsRecordNotFoundError

func (repo MySQLDb) IsRecordNotFoundError(err error) bool

func (MySQLDb) QueryInt

func (repo MySQLDb) QueryInt(c context.Context, query QueryGetter, params map[string]interface{}) (int64, error)

func (MySQLDb) QueryMany

func (repo MySQLDb) QueryMany(c context.Context, target QueryGetter, params map[string]interface{}) error

func (MySQLDb) QueryOne

func (repo MySQLDb) QueryOne(c context.Context, target QueryGetter, params map[string]interface{}) error

func (MySQLDb) QueryString

func (repo MySQLDb) QueryString(c context.Context, query QueryGetter, params map[string]interface{}) (string, error)

func (MySQLDb) Update

func (repo MySQLDb) Update(c context.Context, update interface{}, query interface{}) error

Jump to

Keyboard shortcuts

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