Skip to content

Commit

Permalink
Merge pull request #4 from AdChain/storage-folder
Browse files Browse the repository at this point in the history
move storage into its own folder
  • Loading branch information
ameensol committed Apr 25, 2017
2 parents 43dcf98 + f2bae68 commit 8d3dfda
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
13 changes: 0 additions & 13 deletions js/storage.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions js/storage/index.js
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 })

0 comments on commit 8d3dfda

Please sign in to comment.