postgres

package
v0.0.0-...-bfeb8cb Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CarRepository

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

func NewCarRepository

func NewCarRepository(postgres *postgres.Postgres) *CarRepository

func (*CarRepository) DeleteCar

func (r *CarRepository) DeleteCar(ctx context.Context, regNumber string) error

func (*CarRepository) GetCar

func (r *CarRepository) GetCar(ctx context.Context, regNumber string) (model.Car, error)

func (*CarRepository) GetCars

func (r *CarRepository) GetCars(ctx context.Context, limit, offset int, filterOptions filter.Options) ([]model.Car, error)

func (*CarRepository) InsertCar

func (r *CarRepository) InsertCar(ctx context.Context, car model.Car) error

func (*CarRepository) UpdateCar

func (r *CarRepository) UpdateCar(ctx context.Context, car model.Car) error

type OwnerRepository

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

func NewOwnerRepository

func NewOwnerRepository(postgres *postgres.Postgres) *OwnerRepository

func (*OwnerRepository) InsertOwner

func (r *OwnerRepository) InsertOwner(ctx context.Context, owner model.Owner) error

Jump to

Keyboard shortcuts

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