postgres

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	QueryOne(ctx context.Context, result, query interface{}, params ...interface{}) error
	Query(ctx context.Context, result, query interface{}, params ...interface{}) error
	Insert(ctx context.Context, model ...interface{}) error
	SelectPK(ctx context.Context, model ...interface{}) error
	SelectDeletedPK(ctx context.Context, model ...interface{}) error
	Select(ctx context.Context, model ...interface{}) error
	SelectDeleted(ctx context.Context, model ...interface{}) error
	SelectWhere(ctx context.Context, model interface{}, where string, relations []string, params ...interface{}) error
	SelectDeletedWhere(ctx context.Context, model interface{}, where string, params ...interface{}) error
	UpdatePK(ctx context.Context, model interface{}) error
	UpdateWhere(ctx context.Context, model interface{}, where string, params ...interface{}) error
	DeletePK(ctx context.Context, model ...interface{}) error
	DeleteWhere(ctx context.Context, model interface{}, where string, params ...interface{}) error
	UndeletePK(ctx context.Context, model ...interface{}) error
	UndeleteWhere(ctx context.Context, model interface{}, where string, params ...interface{}) error
	ForceDeletePK(ctx context.Context, model ...interface{}) error
	ForceDeleteWhere(ctx context.Context, model interface{}, where string, params ...interface{}) error
	RunInTransaction(ctx context.Context, persist func(client Client) error) error
	Ping(ctx context.Context) error
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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