title: Is PouchDB with LevelDB adapter supposed to create a local file?
body: <p>This leaflet example (<a href="https://github.com/MazeMap/Leaflet.TileLayer.PouchDBCached" rel="nofollow noreferrer">Leaflet.TileLayer.PouchDBCached</a>) 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: <a href="https://pouchdb.com/adapters.html" rel="nofollow noreferrer">PouchDB in Node.js</a></p>
  
  <blockquote>
    <p>In Node.js, the adapter situation is much simpler than in browsers. By
    default, if you create a PouchDB like this one:</p>
    
    <p>var pouch = new PouchDB('./path/to/db');</p>
    
    <p>then a LevelDB-based database will be created in the directory
    ./path/to/db. The LevelDB implementation uses LevelDOWN.</p>
  </blockquote>
  
  <p>In my "main.js" (Electron entry point) I create a db like this:</p>
  
  <pre><code>var dbPath = path.join(__dirname, 'main-db');
  var myDB = new PouchDB(dbPath);
  console.log('myDB', myDB.adapter);
  </code></pre>
  
  <p>And though the adapter type is reported as "leveldb" it does not show up on disk.</p>
  
  <p><strong>Question:</strong> 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"? </p>