persistentstorage

package module
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: 1 Imported by: 0

README

README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?
How do I get set up?
  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions
Contribution guidelines
  • Writing tests
  • Code review
  • Other guidelines
Who do I talk to?
  • Repo owner or admin
  • Other community or team contact

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PersistentStorage

type PersistentStorage interface {
	QueryOne(c context.Context, target QueryGetter, params map[string]interface{}) error
	QueryMany(c context.Context, target QueryGetter, params map[string]interface{}) error

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

	GetOne(c context.Context, target interface{}, params interface{}) error
	GetMany(c context.Context, target interface{}, params interface{}) error

	Insert(c context.Context, target interface{}) error
	Update(c context.Context, update interface{}, query interface{}) error
	Delete(c context.Context, model interface{}, params interface{}) error

	Exec(c context.Context, target QueryGetter, params map[string]interface{}) error

	IsRecordNotFoundError(err error) bool
}

type QueryGetter

type QueryGetter interface {
	GetQuery() string
}

type UpdateStampGetter

type UpdateStampGetter interface {
	GetUpdateStamp(c context.Context, description string) (int64, error)
}

Jump to

Keyboard shortcuts

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