Skip to content

Instantly share code, notes, and snippets.

@codecademydev
Created October 7, 2020 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codecademydev/6089062c2627a09f2393654cd57ee38f to your computer and use it in GitHub Desktop.
Save codecademydev/6089062c2627a09f2393654cd57ee38f to your computer and use it in GitHub Desktop.
Codecademy export
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