postgres

package
v0.0.0-...-a9b3359 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serializer

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

func New

func (*Serializer) GetActions

func (s *Serializer) GetActions() schema.SerializerInterface

func (*Serializer) Register

func (s *Serializer) Register()

func (*Serializer) Scan

func (s *Serializer) Scan(
	ctx c.Context,
	field *schema.Field,
	dst reflect.Value,
	dbValue interface{},
) (
	err error,
)

func (*Serializer) Value

func (s *Serializer) Value(
	ctx c.Context,
	field *schema.Field,
	dst reflect.Value,
	fieldValue interface{},
) (
	out interface{},
	err error,
)

type Serializers

type Serializers []*Serializer

func NewSerializers

func NewSerializers() Serializers

func (Serializers) RegisterAll

func (ss Serializers) RegisterAll()

func (Serializers) Set

func (ss Serializers) Set(serializers ...*Serializer)

type Storage

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

func Connect

func Connect(dsn string, i ...interface{}) (*Storage, error)

func (*Storage) Clear

func (ps *Storage) Clear(ctx c.Context, where string) (
	err error,
)

func (*Storage) ClearAll

func (ps *Storage) ClearAll(ctx c.Context) (
	err error,
)

func (*Storage) Read

func (ps *Storage) Read(ctx c.Context, where string, items interface{}) (
	err error,
)

func (*Storage) Remove

func (ps *Storage) Remove(ctx c.Context, where string, item interface{}) (
	err error,
)

func (*Storage) Store

func (ps *Storage) Store(ctx c.Context, where string, item interface{}) (
	err error,
)

Jump to

Keyboard shortcuts

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