Skip to content

Commit

Permalink
Merge pull request #2 from mediasanctuary/index-data
Browse files Browse the repository at this point in the history
Load, index, save time series
  • Loading branch information
dphiffer authored Oct 4, 2023
2 parents eccce72 + 3090be2 commit 6310f0c
Show file tree
Hide file tree
Showing 6 changed files with 647 additions and 22 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
node_modules/
.env
data/index.db
15 changes: 15 additions & 0 deletions db/migration-01.sql
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);
Loading

0 comments on commit 6310f0c

Please sign in to comment.