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