mydb

package
v0.0.0-...-f86793e Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect() *gorm.DB

Types

type TodoDBInterface

type TodoDBInterface struct {
	// contains filtered or unexported fields
}

func NewTodoDBInterface

func NewTodoDBInterface(db *gorm.DB) *TodoDBInterface

func (*TodoDBInterface) Create

func (tdb *TodoDBInterface) Create(todo *entity.TodoEntity) error

func (*TodoDBInterface) Delete

func (tdb *TodoDBInterface) Delete(todo *entity.TodoEntity) error

func (*TodoDBInterface) FindAll

func (tdb *TodoDBInterface) FindAll() ([]entity.TodoEntity, error)

func (*TodoDBInterface) FindByID

func (tdb *TodoDBInterface) FindByID(id uint) (*entity.TodoEntity, error)

func (*TodoDBInterface) Update

func (tdb *TodoDBInterface) Update(todo *entity.TodoEntity) error

Jump to

Keyboard shortcuts

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