gotelem/db/can_adapter.go
2023-05-04 20:49:04 -05:00

24 lines
419 B
Go

package db
import (
"github.com/jmoiron/sqlx"
"github.com/kschamplin/gotelem/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()