Documentation ¶
Index ¶
- func NewConn(addr, db string) (*sql.DB, error)
- func NewRepository(table string, db *sql.DB) sushiapi.Repository
- func Test_SushiRepository_CreateSushi_RepositoryError(t *testing.T)
- func Test_SushiRepository_CreateSushi_Success(t *testing.T)
- func Test_SushiRepository_DeleteSushi_RepositoryError(t *testing.T)
- func Test_SushiRepository_DeleteSushi_Success(t *testing.T)
- func Test_SushiRepository_GetSushiByID_NoRows(t *testing.T)
- func Test_SushiRepository_GetSushiByID_RepositoryError(t *testing.T)
- func Test_SushiRepository_GetSushiByID_RowWithInvalidData(t *testing.T)
- func Test_SushiRepository_GetSushiByID_Succeeded(t *testing.T)
- func Test_SushiRepository_GetSushis_NoRows(t *testing.T)
- func Test_SushiRepository_GetSushis_RepositoryError(t *testing.T)
- func Test_SushiRepository_GetSushis_RowWithInvalidData(t *testing.T)
- func Test_SushiRepository_GetSushis_Succeeded(t *testing.T)
- func Test_SushiRepository_UpdateSushi_NotFound(t *testing.T)
- func Test_SushiRepository_UpdateSushi_RepositoryError(t *testing.T)
- func Test_SushiRepository_UpdateSushi_Success(t *testing.T)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(table string, db *sql.DB) sushiapi.Repository
NewRepository instances a MySQL implementation of the sushiapi.Repository
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.