24 lines
419 B
Go
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()
|