Files: 03ba4f6100e6c42a83ad6c770c69bb63a5d6fd7b / mvd-indexes.js
431 bytesRaw
1 | var Indexes = require('flumeview-query/indexes') |
2 | var pkg = require('./package.json') |
3 | exports.name = 'mvd-indexes' |
4 | exports.version = pkg.version |
5 | exports.manifest = {} |
6 | |
7 | exports.init = function (sbot, config) { |
8 | |
9 | var view = |
10 | sbot._flumeUse('query/mvd', Indexes(1, { |
11 | indexes: [ |
12 | {key: 'chr', value: [['value', 'timestamp' ]]} |
13 | ] |
14 | })) |
15 | |
16 | var indexes = view.indexes() |
17 | sbot.query.add(indexes[0]) |
18 | |
19 | return {} |
20 | } |
21 |
Built with git-ssb-web