Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrCodeMySQLDuplicateEntry はMySQL系のDUPLICATEエラーコード // https://dev.mysql.com/doc/mysql-errors/8.0/en/server-error-reference.html // Error number: 1062; Symbol: ER_DUP_ENTRY; SQLSTATE: 23000 ErrCodeMySQLDuplicateEntry = 1062 )
Variables ¶
View Source
var ( Tasks = &TasksStore{Tasks: map[entity.TaskID]*entity.Task{}} ErrNotFOund = errors.New("not found") )
View Source
var (
ErrAlreadyEntry = errors.New("duplicate entry")
)
Functions ¶
Types ¶
type Queryer ¶
type Queryer interface { Preparer QueryContext(ctx context.Context, query string, args ...any) (*sql.Rows, error) QueryRowContext(ctx context.Context, query string, args ...any) *sql.Row GetContext(ctx context.Context, dest interface{}, query string, args ...any) error SelectContext(ctx context.Context, dest interface{}, query string, args ...any) error }
type Repository ¶
func (*Repository) RegisterUser ¶
Click to show internal directories.
Click to hide internal directories.