-
-
Save codecademydev/6089062c2627a09f2393654cd57ee38f to your computer and use it in GitHub Desktop.
Codecademy export
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
const { printQueryResults } = require('./utils'); | |
const sqlite = require('sqlite3'); | |
const db = new sqlite.Database('./db.sqlite'); | |
// Your code below: | |
db.all('SELECT * FROM TemperatureData WHERE year = 1970', (a,b)=>{ | |
printQueryResults(b); | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment