This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
## Following these commands should upgrade and migrate your existing database. | |
## This is an example of going from 9.6.2 to 10.5 on OSX. | |
## Be sure to update any version numbers based on the versions you're upgrading from and to. | |
## Adapted from https://stackoverflow.com/questions/24379373/how-to-upgrade-postgresql-from-version-9-6-to-version-10-1-without-losing-data | |
## Backup your database, just in case (replace databasename with your actual DB name) | |
pg_dump databasename > ~/Desktop/dev_dump | |
## Stop postgres |
This guide is based on the very informative discussion in this article: Using node_sqlite3 with Electron
Install sqlite3
npm install sqlite3 --save
I know I'm late with this article for about 5 years or so, but people are still using Python 2.x, so this subject is relevant I think.
Some facts first:
str
is an 8-bit string.unicode
is for strings of unicode code points.(function () { | |
'use strict'; | |
$('a[data-toggle="tab"]').on('shown.bs.tab', function (e) { | |
var id = $(this).parents('[role="tablist"]').attr('id'); | |
var key = 'lastTag'; | |
if (id) { | |
key += ':' + id; | |
} |