mysql

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConn

func NewConn(addr, db string) (*sql.DB, error)

func NewRepository

func NewRepository(table string, db *sql.DB) sushiapi.Repository

NewRepository instances a MySQL implementation of the sushiapi.Repository

func Test_SushiRepository_CreateSushi_RepositoryError

func Test_SushiRepository_CreateSushi_RepositoryError(t *testing.T)

func Test_SushiRepository_CreateSushi_Success

func Test_SushiRepository_CreateSushi_Success(t *testing.T)

func Test_SushiRepository_DeleteSushi_RepositoryError

func Test_SushiRepository_DeleteSushi_RepositoryError(t *testing.T)

func Test_SushiRepository_DeleteSushi_Success

func Test_SushiRepository_DeleteSushi_Success(t *testing.T)

func Test_SushiRepository_GetSushiByID_NoRows

func Test_SushiRepository_GetSushiByID_NoRows(t *testing.T)

func Test_SushiRepository_GetSushiByID_RepositoryError

func Test_SushiRepository_GetSushiByID_RepositoryError(t *testing.T)

func Test_SushiRepository_GetSushiByID_RowWithInvalidData

func Test_SushiRepository_GetSushiByID_RowWithInvalidData(t *testing.T)

func Test_SushiRepository_GetSushiByID_Succeeded

func Test_SushiRepository_GetSushiByID_Succeeded(t *testing.T)

func Test_SushiRepository_GetSushis_NoRows

func Test_SushiRepository_GetSushis_NoRows(t *testing.T)

func Test_SushiRepository_GetSushis_RepositoryError

func Test_SushiRepository_GetSushis_RepositoryError(t *testing.T)

func Test_SushiRepository_GetSushis_RowWithInvalidData

func Test_SushiRepository_GetSushis_RowWithInvalidData(t *testing.T)

func Test_SushiRepository_GetSushis_Succeeded

func Test_SushiRepository_GetSushis_Succeeded(t *testing.T)

func Test_SushiRepository_UpdateSushi_NotFound

func Test_SushiRepository_UpdateSushi_NotFound(t *testing.T)

func Test_SushiRepository_UpdateSushi_RepositoryError

func Test_SushiRepository_UpdateSushi_RepositoryError(t *testing.T)

func Test_SushiRepository_UpdateSushi_Success

func Test_SushiRepository_UpdateSushi_Success(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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