mysqldb

package
v0.0.0-...-acaafe5 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, cfg *config.Config) (*gorm.DB, error)

Connect connects to database using provided config and ping the database to make sure successful connection.

func Migrate

func Migrate(db *gorm.DB) error

Migrate migrates the database schema.

func NewTodoRepository

func NewTodoRepository(dbClient *gorm.DB) repository.TodoRepository

Types

This section is empty.

Jump to

Keyboard shortcuts

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