postgres

package
v0.0.0-...-1223afe Latest Latest
Warning

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

Go to latest
Published: May 10, 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 PostgresRepo

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

func New

func New(dsn string) (*PostgresRepo, error)

func (*PostgresRepo) BulkInsert

func (r *PostgresRepo) BulkInsert(toInsert []entity.Comix) error

func (*PostgresRepo) GetAll

func (r *PostgresRepo) GetAll() ([]entity.Comix, error)

func (*PostgresRepo) GetByID

func (r *PostgresRepo) GetByID(id int) (entity.Comix, error)

func (*PostgresRepo) Size

func (r *PostgresRepo) Size() (int, error)

Jump to

Keyboard shortcuts

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