-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from mediasanctuary/index-data
Load, index, save time series
- Loading branch information
Showing
6 changed files
with
647 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_Store | ||
node_modules/ | ||
.env | ||
data/index.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE record ( | ||
sensor_id INTEGER, | ||
time_stamp INTEGER, | ||
pm25_alt_a REAL, | ||
pm25_alt_b REAL, | ||
pm25_atm_a REAL, | ||
pm25_atm_b REAL, | ||
pm25_cf_1_a REAL, | ||
pm25_cf_1_b REAL, | ||
temperature REAL, | ||
humidity REAL, | ||
pressure REAL | ||
); | ||
|
||
CREATE INDEX record_idx ON record (sensor_id, time_stamp, pm25_atm_a, pm25_atm_b); |
Oops, something went wrong.