postgres

package
v0.0.0-...-25be205 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
}

func Open

func Open(databaseURL string) (*DB, error)

type PostgresCompanyRepository

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

func NewCompanyRepository

func NewCompanyRepository(db *DB) *PostgresCompanyRepository

func (*PostgresCompanyRepository) Delete

func (r *PostgresCompanyRepository) Delete(company *domain.Company) error

func (*PostgresCompanyRepository) FindAll

func (r *PostgresCompanyRepository) FindAll() []*domain.Company

func (*PostgresCompanyRepository) FindByID

func (r *PostgresCompanyRepository) FindByID(id uuid.UUID) (*domain.Company, error)

func (*PostgresCompanyRepository) Insert

func (r *PostgresCompanyRepository) Insert(company *domain.Company) error

func (*PostgresCompanyRepository) Reset

func (r *PostgresCompanyRepository) Reset()

func (*PostgresCompanyRepository) Update

func (r *PostgresCompanyRepository) Update(company *domain.Company) error

Jump to

Keyboard shortcuts

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