Permalink
Browse files

Remove sql adapters and tests

  • Loading branch information...
1 parent b00ab29 commit 100b5322c67cadbeda343022553e4712cfb262b9 @1602 committed Dec 14, 2012
Showing with 18 additions and 1,348 deletions.
  1. +2 −11 .travis.yml
  2. +9 −2 README.md
  3. +0 −536 lib/adapters/mysql.js
  4. +0 −579 lib/adapters/postgres.js
  5. +1 −1 lib/schema.js
  6. +6 −9 package.json
  7. +0 −210 test/migration_test.coffee
View
@@ -1,17 +1,8 @@
language: node_js
node_js:
- 0.6
- - 0.8.12
+ - 0.8
+ - 0.9
services:
- - mongodb
- - redis-server
- neo4j
- couchdb
-before_install:
- - git submodule init && git submodule --quiet update
- - ./support/ci/neo4j.sh
-before_script:
- - "mysql -e 'create database myapp_test;'"
- - "psql -c 'create database myapp_test;' -U postgres"
- - mongo mydb_test --eval 'db.addUser("travis", "test");'
- - curl -X PUT localhost:5984/nano-test
View
@@ -1,7 +1,8 @@
## About [<img src="https://secure.travis-ci.org/1602/jugglingdb.png" />](http://travis-ci.org/#!/1602/jugglingdb)
JugglingDB is cross-db ORM for nodejs, providing **common interface** to access most popular database formats.
-Currently supported are: mysql, mongodb, redis, neo4j and js-memory-storage (yep,
+Currently supported are: mysql, sqlite3, postgres, 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.
@@ -15,11 +16,17 @@ existing adapters to learn how, it's super-easy, I guarantee.
- Make sure all tests pass (`npm test` command)
- Feel free to vote and comment on cards (tickets/issues), if you want to join team -- send me a message with your email.
+If you want to create your own jugglingdb adapter, you should publish your
+adapter package with name `jugglingdb-ADAPTERNAME`. Creating adapter is simple,
+check [jugglingdb-redis](/1602/jugglingdb-redis) for example. JugglingDB core
+exports common tests each adapter should pass, you could create your adapter in
+TDD style, check that adapter pass all tests defined in `test/common_test.js`.
+
## Usage
```javascript
var Schema = require('jugglingdb').Schema;
-var schema = new Schema('redis2', {port: 6379}); //port number depends on your configuration
+var schema = new Schema('redis', {port: 6379}); //port number depends on your configuration
// define models
var Post = schema.define('Post', {
title: { type: String, length: 255 },
Oops, something went wrong.

0 comments on commit 100b532

Please sign in to comment.