Git Product home page Git Product logo

oracle-adapter's Introduction

A basic CRUD waterline adapter for oracle, built on top of oracle's driver. Most of this code is based on atiertant's sails-oracle.

####Connection options (default values provided if they exist):

connectString:
String - Required

user:
String - Required

password:
String - Required

poolMin:
Number - The minimum number of connections a connection pool maintains. Defaults to 0.

poolMax:
Number - The maximum number of connections to which a connection pool can grow. Defaults to 4.

poolIncrement:
Number - The number of connections that are opened when a connection request exceeds the number of currently open connections. Defaults to 1.

poolTimeout:
Number - The number, in seconds, after which idle connections are terminated. If set to 0, idle connections are never terminated. Defaults to 60.

Example connection (from test config)
oracleConn: {  
    connectString: '192.168.201.100/xe',  
    user: 'myusername',  
    password: 'mypassword'  
}

#####Running the tests
To run the tests, supply the required env vars in test/unit/support/bootstrap.js for your test oracle instance.

oracle-adapter's People

Contributors

ryanwilliamquinn avatar tjwebb avatar

Stargazers

Kas Becker avatar rocky chen avatar  avatar telkomops avatar Luiz Carraro avatar Lucian avatar Dan McGhan avatar  avatar

Watchers

Dan McGhan avatar James Cloos avatar Luiz Carraro avatar Roman Lorenzo Balayan avatar

oracle-adapter's Issues

Get a proper value for Model.count()

Hi,

I found that not only does node-mongodb return 100 rows by default, but that the Model.count() also returns the value of 100, or whatever the maxRows is set to.

If I set maxRows to 115 and do a plain find(), I get back:

"success": true,
"total": 115,

Is there a way to maybe fix the Model.count() call so that it returns an actual number of rows?

Is this an issue for node-mongodb?

How do I configure sails-oracle-db adapter ?

Thank you for your contribution to the sails-oracle-db for us.
i installed sails-oracle-db for success,but i don`t know How to configure sails-oracle-db in connection.js because there is no demo in config / connection.js, can you help me?

queryStream not available?

This adapter is based on node-oracledb, which supports streams with the queryStream method. But the adepter does not support it? :(

How can we enable the usage of this method?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.