1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

added async_db project

This commit is contained in:
dowwie
2018-05-26 17:05:12 -04:00
parent 0691d4207e
commit 0cb217c08a
10 changed files with 14231 additions and 0 deletions

Binary file not shown.

6
async_db/db/README.md Normal file
View File

@ -0,0 +1,6 @@
This directory includes weather information obtained from NOAA for NYC Central Park: https://www.ncdc.noaa.gov/cdo-web/
# Setup Instructions
Set up a sqlite3 database by executing the setup_db.sh file: ``bash sqlite_db.sh``

28
async_db/db/db.sql Executable file
View File

@ -0,0 +1,28 @@
CREATE TABLE nyc_weather(
STATION TEXT,
NAME TEXT,
DATE TEXT,
ACMH DOUBLE,
AWND DOUBLE,
FMTM DOUBLE,
PGTM DOUBLE,
PRCP DOUBLE,
PSUN DOUBLE,
SNOW DOUBLE,
SNWD DOUBLE,
TAVG DOUBLE,
TMAX DOUBLE,
TMIN DOUBLE,
TSUN DOUBLE,
WDF1 DOUBLE,
WDF2 DOUBLE,
WDF5 DOUBLE,
WDFG DOUBLE,
WDFM DOUBLE,
WSF1 DOUBLE,
WSF2 DOUBLE,
WSF5 DOUBLE,
WSFG DOUBLE,
WSFM DOUBLE
);

File diff suppressed because it is too large Load Diff

2
async_db/db/setup_db.sh Executable file
View File

@ -0,0 +1,2 @@
sqlite3 weather.db < db/db.sql ; \
sqlite3 -csv weather.db ".import db/nyc_centralpark_weather.csv nyc_weather"