Documentation ¶
Index ¶
- type EmployeeDatabaseSQLRepository
- func (r *EmployeeDatabaseSQLRepository) CountAllEmployee(query *pkg_types.QuerySQL) (int, error)
- func (r *EmployeeDatabaseSQLRepository) CreateEmployee(payload *sql.Employee) error
- func (r *EmployeeDatabaseSQLRepository) DeleteEmployee(payload *sql.Employee) error
- func (r *EmployeeDatabaseSQLRepository) GetEmployee(query *pkg_types.QuerySQL) (*sql.Employee, error)
- func (r *EmployeeDatabaseSQLRepository) GetListEmployeeAndCount(query *pkg_types.QuerySQL) ([]*sql.Employee, int, error)
- func (r *EmployeeDatabaseSQLRepository) UpdateEmployee(payload *sql.Employee) error
- type IEmployeeDatabaseSQLRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmployeeDatabaseSQLRepository ¶
type EmployeeDatabaseSQLRepository struct {
// contains filtered or unexported fields
}
func (*EmployeeDatabaseSQLRepository) CountAllEmployee ¶
func (r *EmployeeDatabaseSQLRepository) CountAllEmployee(query *pkg_types.QuerySQL) (int, error)
func (*EmployeeDatabaseSQLRepository) CreateEmployee ¶
func (r *EmployeeDatabaseSQLRepository) CreateEmployee(payload *sql.Employee) error
func (*EmployeeDatabaseSQLRepository) DeleteEmployee ¶
func (r *EmployeeDatabaseSQLRepository) DeleteEmployee(payload *sql.Employee) error
func (*EmployeeDatabaseSQLRepository) GetEmployee ¶
func (*EmployeeDatabaseSQLRepository) GetListEmployeeAndCount ¶
func (*EmployeeDatabaseSQLRepository) UpdateEmployee ¶
func (r *EmployeeDatabaseSQLRepository) UpdateEmployee(payload *sql.Employee) error
type IEmployeeDatabaseSQLRepository ¶
type IEmployeeDatabaseSQLRepository interface { CreateEmployee(payload *sql.Employee) error UpdateEmployee(payload *sql.Employee) error DeleteEmployee(payload *sql.Employee) error GetListEmployeeAndCount(query *pkg_types.QuerySQL) ([]*sql.Employee, int, error) GetEmployee(query *pkg_types.QuerySQL) (*sql.Employee, error) CountAllEmployee(query *pkg_types.QuerySQL) (int, error) }
func InitMysqlEmployeeDatabaseSQLRepository ¶
func InitMysqlEmployeeDatabaseSQLRepository(db config.MysqlDatabaseSQLConnection) IEmployeeDatabaseSQLRepository
Click to show internal directories.
Click to hide internal directories.