Skip to content

eskygo/sql-layer-adapter-sails

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FoundationDB SQL Layer Sails/Waterline Adapter

The FoundationDB SQL Layer is a fault-tolerant and scalable open source RDBMS, best suited for applications with high concurrency and short transactional workloads.

This project provides adapter integration for Waterline, the default ORM for Sails.

Adapted from the Waterline PostgreSQL adapter.

Installation

Installation is through NPM.

$ npm install sails-fdbsql

Configuration

The following config options are available along with their default values:

config: {
  database: 'databaseName',
  host: 'localhost',
  user: 'root',
  password: '',
  port: 15432,
  pool: false,
  ssl: false
};

Alternatively, you can supply the connection information in URL format:

config: {
  url: 'fdb://username:password@hostname:port/database',
  pool: false,
  ssl: false
};

Testing

Test are written with mocha. To run tests:

$ npm test

Contributing

  1. Fork
  2. Branch
  3. Commit
  4. Pull Request

If you would like to contribute a feature or fix, thanks! Please make sure any changes come with new tests to ensure acceptance. Please read the RUNNING_UNIT_TESTS.md file for more details.

Contact

License

The MIT License (MIT)

Copyright (c) 2013-2014 FoundationDB, LLC

It is free software and may be redistributed under the terms specified in the LICENSE file.

About

Sails.js adapter for the FoundationDB SQL Layer

Resources

License

Stars

Watchers

Forks

Packages

No packages published