Skip to content

Commit

Permalink
load, index, save time series
Browse files Browse the repository at this point in the history
  • Loading branch information
dphiffer committed Oct 4, 2023
1 parent 2c1f9a5 commit 3090be2
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 3090be2

Please sign in to comment.