mydb

package
v0.0.0-...-d04fe6a Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDevice

func AddDevice(db *sql.DB, newDevice device.Device) (device.Device, error)

AddDevice adds a new device to the given database instance

func GetDevices

func GetDevices(db *sql.DB) []*device.Device

GetDevices returns the cached devices from the provided database connection

func OpenDB

func OpenDB(dbPath string) *sql.DB

OpenDB opens and returns a new connection to the DB

Types

This section is empty.

Jump to

Keyboard shortcuts

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