-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from AdChain/storage-folder
move storage into its own folder
- Loading branch information
Showing
8 changed files
with
15 additions
and
13 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
import Datastore from 'nedb' | ||
import path from 'path' | ||
|
||
// datastore for plain impressions | ||
// datastore for channel state | ||
|
||
export const impressionDB = new Datastore({ filename: path.join(__dirname, '/DATA_IMPRESSION'), autoload: true }) | ||
export const channelDB = new Datastore({ filename: path.join(__dirname, '/DATA_CHANNEL'), autoload: true }) | ||
|
||
export const supImpDB = new Datastore({ filename: path.join(__dirname, '/S_DATA_IMPRESSION'), autoload: true }) | ||
export const supChDB = new Datastore({ filename: path.join(__dirname, '/S_DATA_CHANNEL'), autoload: true }) | ||
|
||
export const amImpDB = new Datastore({ filename: path.join(__dirname, '/A_DATA_IMPRESSION'), autoload: true }) | ||
export const amChDB = new Datastore({ filename: path.join(__dirname, '/A_DATA_CHANNEL'), autoload: true }) |