gotelem/db/can_adapter.go
2023-05-04 19:15:03 -05:00

24 lines
428 B
Go

package db
import (
"github.com/jmoiron/sqlx"
"github.com/kschamplin/gotelem/internal/can"
_ "github.com/mattn/go-sqlite3"
)
// this file implements a CAN adapter for the sqlite db.
type CanDB struct {
Db *sqlx.DB
}
func (cdb *CanDB) Send(_ *can.Frame) error {
panic("not implemented") // TODO: Implement
}
func (cdb *CanDB) Recv() (*can.Frame, error) {
panic("not implemented") // TODO: Implement
}
func NewCanDB()