postgres

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PostgresAdapter

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

func New

func New(dsn string) *PostgresAdapter

func (*PostgresAdapter) Create

func (p *PostgresAdapter) Create(entity any) error

func (*PostgresAdapter) Delete

func (p *PostgresAdapter) Delete(id string, entity any) error

func (*PostgresAdapter) FindAll

func (p *PostgresAdapter) FindAll(entity any, filters map[string]any, pagination db.Pagination, sort []db.Sort) (any, error)

func (*PostgresAdapter) FindByID

func (p *PostgresAdapter) FindByID(id string, entity any) (any, error)

func (*PostgresAdapter) Init

func (p *PostgresAdapter) Init() error

func (*PostgresAdapter) Migrate

func (p *PostgresAdapter) Migrate(entities []any) error

func (*PostgresAdapter) Update

func (p *PostgresAdapter) Update(entity any) error

Jump to

Keyboard shortcuts

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