This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('lodash'); | |
var should = require('should'); | |
var helper = require('../support/spec_helper'); | |
var async = require('async'); | |
var ORM = require('../../'); | |
describe("abc", function() { | |
var db = null; | |
var Person = null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DATAMAPPER = 'git://github.com/datamapper' | |
DM_VERSION = '~> 1.0.0.rc3' | |
DO_VERSION = '~> 0.10.3' | |
gem 'dm-sqlite-adapter', DM_VERSION, :git => "#{DATAMAPPER}/dm-sqlite-adapter.git" | |
gem 'dm-validations', DM_VERSION, :git => "#{DATAMAPPER}/dm-validations" | |
gem 'dm-constraints', DM_VERSION, :git => "#{DATAMAPPER}/dm-constraints" | |
gem 'dm-aggregates', DM_VERSION, :git => "#{DATAMAPPER}/dm-aggregates" | |
gem 'dm-is-list', DM_VERSION, :git => "#{DATAMAPPER}/dm-is-list" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
orm.connect(config, function (error, db) { | |
//Declare Variables | |
var models = {}; | |
//Settings | |
db.settings.set("properties.primary_key", "id"); | |
db.settings.set("instance.cache", false); | |
db.settings.set("instance.autoSave", false); | |
db.settings.set("instance.autoFetch", false); | |
db.settings.set("instance.autoFetchLimit", 2); |