db

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB struct {
	*sql.DB
}

func New

func New() (*DB, error)

func (*DB) Add

func (d *DB) Add(device storage.Device) (int64, error)

func (*DB) Delete

func (d *DB) Delete(address string) error

func (*DB) Get

func (d *DB) Get(address string) (storage.Device, error)

func (*DB) GetAll

func (d *DB) GetAll(pageID int64) (storage.DeviceList, error)

func (*DB) Init

func (d *DB) Init() error

Jump to

Keyboard shortcuts

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