2023-05-08 06:28:36 +00:00
|
|
|
package gotelem
|
2023-04-20 20:26:29 +00:00
|
|
|
|
|
|
|
import (
|
2023-04-22 07:48:04 +00:00
|
|
|
"github.com/jmoiron/sqlx"
|
2023-05-05 00:15:03 +00:00
|
|
|
_ "github.com/mattn/go-sqlite3"
|
2023-04-20 20:26:29 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
// 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
|
|
|
}
|
|
|
|
|
2023-05-08 06:28:36 +00:00
|
|
|
func (cdb *CanDB) Send(_ *Frame) error {
|
2023-04-20 20:26:29 +00:00
|
|
|
panic("not implemented") // TODO: Implement
|
|
|
|
}
|
|
|
|
|
2023-05-08 06:28:36 +00:00
|
|
|
func (cdb *CanDB) Recv() (*Frame, error) {
|
2023-04-20 20:26:29 +00:00
|
|
|
panic("not implemented") // TODO: Implement
|
|
|
|
}
|
2023-05-05 00:15:03 +00:00
|
|
|
|
2023-05-09 05:54:20 +00:00
|
|
|
func NewCanDB() {}
|