package device import ( "database/sql" "nutfactory.org/Matrix/entities/device" ) func initDeviceTable(db *sql.DB) err error { // TODO: Change to correct Table-Structure statement, err := db.Prepare("CREATE TABLE IF NOT EXISTS people (id INTEGER PRIMARY KEY, firstname TEXT, lastname TEXT)") statement.Exec() } func createDevice(db *sql.DB, device *Device) err error { } func readDevice(db *sql.DB, id string) (device *Device, err error) { } func updateDevice(db *sql.DB, device *Device) err error { } func deleteDevice(db *sql.DB, id string) err error { }