2019-05-22 11:28:57 +00:00
|
|
|
"use strict";
|
|
|
|
|
2019-05-22 17:04:46 +00:00
|
|
|
import { get_instance } from '../Helpers/Database.mjs';
|
|
|
|
|
|
|
|
|
2019-05-22 11:28:57 +00:00
|
|
|
class ReadingRepo {
|
2019-05-22 17:04:46 +00:00
|
|
|
constructor(in_RSSIRepo) {
|
|
|
|
this.db = get_instance();
|
|
|
|
this.RSSIRepo = in_RSSIRepo;
|
2019-05-22 11:28:57 +00:00
|
|
|
|
2019-05-22 17:04:46 +00:00
|
|
|
this.insert_query = this.db.prepare("INSERT INTO readings")
|
|
|
|
}
|
|
|
|
|
|
|
|
insert(reading) {
|
|
|
|
this.db.
|
2019-05-22 11:28:57 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default ReadingRepo;
|