Skip to content

Instantly share code, notes, and snippets.

@ftdysa
Created September 14, 2014 03:03
Show Gist options
  • Save ftdysa/63dc3973307414ee208d to your computer and use it in GitHub Desktop.
Save ftdysa/63dc3973307414ee208d to your computer and use it in GitHub Desktop.
Get all tags for ghost
var config = require('./../../../../config');
var sqlite3 = require('sqlite3');
var dbfile = config.development.database.connection.filename;
var db = new sqlite3.Database(dbfile);
db.serialize(function() {
db.all("select * from tags", function(err, rows) {
console.log(JSON.stringify(rows));
})
});
db.close();
@Pestov
Copy link

Pestov commented Dec 27, 2014

Excuse me, how I can use it?

@acb122
Copy link

acb122 commented Sep 2, 2015

This is great thanks for the time saver :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment