This leaflet example (Leaflet.TileLayer.PouchDBCached) is using an "idb" adapter and for electron/node it looks like I want to use a "leveldb" adapter. So I followed the instructions here: PouchDB in Node.js
In Node.js, the adapter situation is much simpler than in browsers. By default, if you create a PouchDB like this one:
var pouch = new PouchDB('./path/to/db');
then a LevelDB-based database will be created in the directory ./path/to/db. The LevelDB implementation uses LevelDOWN.
In my "main.js" (Electron entry point) I create a db like this:
var dbPath = path.join(__dirname, 'main-db');
var myDB = new PouchDB(dbPath);
console.log('myDB', myDB.adapter);
And though the adapter type is reported as "leveldb" it does not show up on disk.
Question: Where is the database created? I've looked in my app directory, in the node_modules/pouchdb directory. I've even looked for "hidden files" (this is on OSX). What gives? If I dump the db instance to the console, it looks like it was created (in memory). Am I "doing it wrong"?