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:
BIN
async_db/db/GHCND_documentation.pdf
Executable file
BIN
async_db/db/GHCND_documentation.pdf
Executable file
Binary file not shown.
6
async_db/db/README.md
Normal file
6
async_db/db/README.md
Normal 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
28
async_db/db/db.sql
Executable 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
|
||||
);
|
||||
|
13882
async_db/db/nyc_centralpark_weather.csv
Executable file
13882
async_db/db/nyc_centralpark_weather.csv
Executable file
File diff suppressed because it is too large
Load Diff
2
async_db/db/setup_db.sh
Executable file
2
async_db/db/setup_db.sh
Executable file
@ -0,0 +1,2 @@
|
||||
sqlite3 weather.db < db/db.sql ; \
|
||||
sqlite3 -csv weather.db ".import db/nyc_centralpark_weather.csv nyc_weather"
|
Reference in New Issue
Block a user