postgres

package
v0.0.0-...-0b5492d Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2023 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 Customer

type Customer struct {
	ID        string `db:"id"`
	Version   int
	FirstName string `db:"first_name"`
	LastName  string `db:"last_name"`
	Email     string
}

type CustomerRepository

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

func NewCustomerRepository

func NewCustomerRepository(trans *transaction.Transaction[*sqlx.Tx]) CustomerRepository

func (CustomerRepository) Create

func (CustomerRepository) Update

type CustomerViewRepository

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

func NewCustomerViewRepository

func NewCustomerViewRepository(db *sqlx.DB) CustomerViewRepository

func (CustomerViewRepository) GetAll

func (CustomerViewRepository) GetByEmail

type Registration

type Registration struct {
	ID       string `db:"id"`
	Email    string
	Verified bool
}

type RegistrationRepository

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

func NewRegistrationRepository

func NewRegistrationRepository(trans *transaction.Transaction[*sqlx.Tx]) RegistrationRepository

func (RegistrationRepository) Create

func (RegistrationRepository) Update

Jump to

Keyboard shortcuts

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