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
//global variable | |
var id=[]; | |
//declare a promise to handle this treatement | |
//would be nice to call the same code many times | |
//use it as a function | |
Task.spawn(function* () { | |
let db = yield Sqlite.openConnection({ path: myPath}); | |
try { |
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
var {Cc, Ci, Cu} = require("chrome"); | |
Cu.import("resource://gre/modules/Sqlite.jsm"); | |
Cu.import("resource://gre/modules/Task.jsm"); | |
Task.spawn(function* () { | |
let db = yield Sqlite.openConnection({ path: filePath}); | |
try { | |
// query to select all cols where plate attribute lives |