database

package
v0.0.0-...-4ef0dc2 Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectDB

func ConnectDB(filename string) error

DB接続

func CreateItem

func CreateItem(libraryMode string, item models.Item) (int64, error)

DBにINSERTする

func DeleteItem

func DeleteItem(libraryMode string, itemId int) error

DELETEする

func DisconnectDB

func DisconnectDB() error

DB切断

func GetDetail

func GetDetail(libraryMode string, id int) (models.Item, error)

1つだけ取得(IDをもとに)

func GetList

func GetList(libraryMode string) (models.ItemArray, error)

book/cd全一覧取得

func SearchItem

func SearchItem(libraryMode string, item models.Item) (models.ItemArray, error)

func UpdateItem

func UpdateItem(libraryMode string, item models.Item) error

UPDATEする

Types

This section is empty.

Jump to

Keyboard shortcuts

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