database

package
v0.0.0-...-eaa260f Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BookRow

type BookRow struct {
	ID     string
	Path   sql.NullString
	Title  sql.NullString
	Author sql.NullString
}

type Database

type Database struct {
	Client *sqlx.DB
}

func NewDatabase

func NewDatabase() (*Database, error)

func (*Database) GetBook

func (d *Database) GetBook(
	ctx context.Context,
	uuid string,
) (book.Book, error)

func (*Database) MigrateDB

func (d *Database) MigrateDB() error

func (*Database) Ping

func (d *Database) Ping(ctx context.Context) error

Jump to

Keyboard shortcuts

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