persist

package
v1.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2022 License: BSD-3-Clause Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteReferencesPersister

type DeleteReferencesPersister interface {
	DeleteReferences(Persister, interface{}) error
}

type DeleteRelatedPersister

type DeleteRelatedPersister interface {
	DeleteRelated(Persister, interface{}) error
}

type FetchRelatedPersister

type FetchRelatedPersister interface {
	FetchRelated(Persister, interface{}) error
}

type Persister

type Persister interface {
	dbx.Context
	WithContext(dbx.Context) Persister
	WithOptions(...option.Option) Persister
	Config() option.Config
	Param(name string) interface{}
	Store(string, interface{}, []string) error
	Fetch(string, interface{}, interface{}) error
	Count(string, ...interface{}) (int, error)
	Select(interface{}, string, ...interface{}) error
	Delete(string, interface{}) error
	DeleteWithID(string, reflect.Type, interface{}) error
}

func New

func New(cxt dbx.Context, fm *entity.FieldMapper, reg *registry.Registry, ids ident.Generator, opts ...option.Option) Persister

type Row added in v1.1.0

type Row struct {
	*sqlx.Row
	// contains filtered or unexported fields
}

func (*Row) ScanStruct added in v1.1.0

func (r *Row) ScanStruct(dest interface{}) error

type Rows added in v1.1.0

type Rows struct {
	*sqlx.Rows
	// contains filtered or unexported fields
}

func (*Rows) ScanStruct added in v1.1.0

func (r *Rows) ScanStruct(dest interface{}) error

type StoreReferencesPersister

type StoreReferencesPersister interface {
	StoreReferences(Persister, interface{}) error
}

type StoreRelatedPersister

type StoreRelatedPersister interface {
	StoreRelated(Persister, interface{}) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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