package
0.0.0-20240619025429-39f3c58cbb48
Repository: https://github.com/camelhr/camelhr-api.git
Documentation: pkg.go.dev
# Functions
NewMockDatabase creates a new instance of MockDatabase.
NewMockTransactor creates a new instance of MockTransactor.
NewPostgresDatabase creates a new instance of the postgresDatabase.
SuppressNoRowsError suppresses the sql.ErrNoRows error.
# Structs
MockDatabase is an autogenerated mock type for the Database type.
MockDatabase_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'.
No description provided by the author
MockDatabase_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'.
MockDatabase_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'.
MockDatabase_WithTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTx'.
MockTransactor is an autogenerated mock type for the Transactor type.
No description provided by the author
MockTransactor_WithTx_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WithTx'.
# Interfaces
Database is an interface that defines the methods that a database should implement.
Transactor defines the methods related to database transaction.