GitXplorerGitXplorer
b

imponderous

public
2 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
1f03ab9f26cb92964519a62ccde634746978e488

New static property on collections to get all unique fields.

bbenhutchins committed 9 years ago
Unverified
4740347068b6d5318ccbb5334fab493b76e0f3a8

Updated Model.all() to accept more options.

bbenhutchins committed 9 years ago
Unverified
4062521ca2726c816f77dbd864ae1af3bb84fe21

Model.find() now waits until documents are loaded and then resolves.

bbenhutchins committed 9 years ago
Unverified
2ac72b7240d228d251946daa56953b48b56c583c

New utility method Model.destroy to destroy a document by key.

bbenhutchins committed 9 years ago
Unverified
bdd6390acd11b54fa3b52ebb9f591a664f67580b

Removed use of unused argument, collectionName, from destroyAll method.

bbenhutchins committed 9 years ago
Unverified
ca1038feb6071092d6d181ebf7e78077064cf220

Model.get() now always loads the document and rejects the promise if document file does not exist. Does not get added to cache unless document successfully loaded.

bbenhutchins committed 9 years ago

README

The README file for this repository.

Imponderous Build Status

Let's face it, sometimes you want a simple database that's fast, quick, speedy, swift and just downright blazing. That's why I wrote Imponderous.

let imponderous = require('imponderous')

imponderous.connect(__dirname + '/db')

class Cat extends imponderous.Model {
  static get schema () {
    return { name: String }
  }
}

let kitty = new Cat({ name: 'Zildjian' })

kitty.save().catch(function (err) {
  // ...
}).then(function () {
  console.log('meow')
})

Imponderous is an extremely simple, straight-forward, schema-based modeling wrapper on top of a document-oriented database that relies on actual files on a disk. It includes built-in type casting, validation, query building and more out of the box. It offers amazing utilities on top of simple text files giving you a powerful database alternative.

Getting Started