gotelem/internal/db/can_adapter.go

24 lines
428 B
Go
Raw Normal View History

2023-04-20 20:26:29 +00:00
package db
import (
"database/sql"
2023-04-22 07:48:04 +00:00
"github.com/jmoiron/sqlx"
_ "github.com/mattn/go-sqlite3"
2023-04-20 20:26:29 +00:00
"github.com/kschamplin/gotelem/internal/can"
)
// this file implements a CAN adapter for the sqlite db.
type CanDB struct {
2023-04-22 07:48:04 +00:00
Db *sqlx.DB
2023-04-20 20:26:29 +00:00
}
func (cdb *CanDB) Send(_ *can.Frame) error {
panic("not implemented") // TODO: Implement
}
func (cdb *CanDB) Recv() (*can.Frame, error) {
panic("not implemented") // TODO: Implement
}