sql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 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 Sql

type Sql struct {
	sync.RWMutex
	*sql.DB
	// contains filtered or unexported fields
}

func NewSql

func NewSql(parameters ...interface{}) *Sql

func (*Sql) Close

func (s *Sql) Close() error

func (*Sql) Configure

func (s *Sql) Configure(envs map[string]string) error

func (*Sql) EmployeeCreate

func (s *Sql) EmployeeCreate(ctx context.Context, employeePartial data.EmployeePartial) (*data.Employee, error)

func (*Sql) EmployeeDelete

func (s *Sql) EmployeeDelete(ctx context.Context, empNo int64) error

func (*Sql) EmployeeRead

func (s *Sql) EmployeeRead(ctx context.Context, empNo int64) (*data.Employee, error)

func (*Sql) EmployeeUpdate

func (s *Sql) EmployeeUpdate(ctx context.Context, empNo int64, employeePartial data.EmployeePartial) (*data.Employee, error)

func (*Sql) EmployeesSearch

func (s *Sql) EmployeesSearch(ctx context.Context, search data.EmployeeSearch) ([]*data.Employee, error)

func (*Sql) Open

func (s *Sql) Open() error

Jump to

Keyboard shortcuts

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