Questions tagged [jugglingdb]

JugglingDB is cross-db ORM for nodejs, providing common interface to access most popular database formats.

According to this source JugglingDB is:

A cross-db ORM for nodejs, providing common interface to access most popular database formats. Currently supported are: MySQL, sqlite3, PostgreSQL, couchdb, mongodb, redis, neo4j and js-memory-storage (yep, self-written engine for test-usage only). You can add your favorite database adapter, checkout one of the existing adapters to learn how, it's super-easy, I guarantee.

Jugglingdb also works on client-side (using WebService and Memory adapters), which allows to write rich client-side apps talking to server using JSON API.

34 questions
0
votes
1 answer

jugglingdb - Setting the primary key field

Is it possible to set what field should be the "id" field? I'm defining my scheme with: var Person = app.ormDb.define('person', { id : { type: String, index: true, default: function () { return uuid.v4(); } }, oAuthID : { type:…
Justin808
  • 20,859
  • 46
  • 160
  • 265
0
votes
1 answer

Jugglingdb schema _validations suddenly shared

I want to re-use some validation rules (login / register). However, if I assign validations to the User schema, jugglingdb also adds these validations to the BaseUser (which is not what I want and I don't know how this happens) // Provide user…
Tessmore
  • 1,054
  • 1
  • 9
  • 23
0
votes
1 answer

Object is immutable in Coffeescript?

c.models.car.findOne where: {id: 1}, (err, car)-> car['seat'] = 1 #seat is not originally in the car object but I would like to add it car['color'] = 'red' #color is originally in car and is changed console.log car The issue is that…
Alexis
  • 23,545
  • 19
  • 104
  • 143
0
votes
1 answer

Using compound, I got an error on update when using validatesPresenceOf

I'm creating an app with compound and mongodb. Compound use jugglingdb and jugglingdb-mongodb to connect to mongodb. I generated a crud for a client using the scaffolding of compound. Then, I added Client.validatesPresenceOf('name'); to…
Camilo
  • 2,844
  • 2
  • 29
  • 44
1 2
3