sqlstore

package
v0.0.0-...-53273dc Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 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 EmployeeRepository

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

EmployeeRepository ...

func (*EmployeeRepository) Create

Create call employees.employee_add()

func (*EmployeeRepository) Delete

func (r *EmployeeRepository) Delete(ctx context.Context, id int) error

Delete call employees.employee_remove()

func (*EmployeeRepository) GetAll

func (r *EmployeeRepository) GetAll(ctx context.Context) ([]*models.Employee, error)

GetAll call employees.employee_get_all()

func (*EmployeeRepository) GetByID

func (r *EmployeeRepository) GetByID(ctx context.Context, id int) (*models.Employee, error)

GetByID call employees.employee_get()

func (*EmployeeRepository) Update

Update call employees.employee_upd()

type Store

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

Store ...

func New

func New(db *sql.DB) *Store

New ...

func (*Store) Employee

func (s *Store) Employee() store.EmployeeRepository

Employee public method for managment repository

Jump to

Keyboard shortcuts

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