Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

dscape-mind-explosion-database

0.0.1 • Public • Published
<dscape>		ideally i would want
<dscape>		range(function (doc) { return 'athlete:u17:w:100dash' }, {type: 'string', collation: 'base'})
<dscape>		and then just query that by whatever i called it :)
<mikeal>		yeah, you could have that, but better
<dscape>		range.query('athlete:u17:w:100dash') // sorted list, accounting for dups
<mikeal>		dude, use arrays
<mikeal>		:)
<mikeal>		seriously, you're going to get them stuck in string slice hell
<dscape>		is there anything like this?
<mikeal>		it's like 10 lines of code
<mikeal>		lemme write this for you real quick
<dscape>		i can see that - you are right
<dscape>		i just want them to understand what they are programing
var index = require('./')('./testindex')
  , assert = require('assert')
  ;
 
index.put(['name', 0], 1, function (e) {
  if (e) throw e
  index.put(['name', 1, 8], 1, function (e) {
    if (e) throw e
    index.query(['name'], [{}], function (e, results) {
      if (e) throw e
      assert.equal(2, results.length)
      console.log('works!')
      process.exit()
    })
  })
})

Keywords

none

install

npm i dscape-mind-explosion-database

Downloadsweekly downloads

4

version

0.0.1

license

none

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
  • avatar
Report a vulnerability