Socket
Book a DemoInstallSign in
Socket

dscape-mind-explosion-database

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dscape-mind-explosion-database

DATABASE FOR DSCAPE TO TEACH CHILDREN!

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
2
Created
Source
<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

leveldb

FAQs

Package last updated on 06 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts