machinepack-postgresql
Advanced tools
Comparing version
@@ -6,1 +6,8 @@ // This is a boilerplate file which should not need to be changed. | ||
}); | ||
//... well except for this. | ||
// Also give the driver a `pg` property, so that it provides access | ||
// to the `pg` PostgreSQL library for Node.js. (See http://npmjs.com/package/pg) | ||
module.exports.pg = require('pg'); |
// Dependencies | ||
var util = require('util'); | ||
var url = require('url'); | ||
var _ = require('lodash'); | ||
var _ = require('@sailshq/lodash'); | ||
var pg = require('pg'); | ||
@@ -6,0 +6,0 @@ |
// Dependencies | ||
var _ = require('lodash'); | ||
var _ = require('@sailshq/lodash'); | ||
@@ -4,0 +4,0 @@ module.exports = { |
// Dependencies | ||
var _ = require('lodash'); | ||
var _ = require('@sailshq/lodash'); | ||
@@ -4,0 +4,0 @@ module.exports = { |
// Dependencies | ||
var _ = require('lodash'); | ||
var _ = require('@sailshq/lodash'); | ||
@@ -4,0 +4,0 @@ module.exports = { |
@@ -1,2 +0,2 @@ | ||
var _ = require('lodash'); | ||
var _ = require('@sailshq/lodash'); | ||
var debug = require('debug')('query'); | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "machinepack-postgresql", | ||
"version": "1.0.0-9", | ||
"description": "Structured Node.js bindings for Postgresql.", | ||
"version": "1.0.0-10", | ||
"description": "Structured Node.js bindings for connecting and running queries against a PostgreSQL database.", | ||
"scripts": { | ||
@@ -9,3 +9,3 @@ "test": "node ./node_modules/mocha/bin/mocha test/integration --recursive", | ||
"pretest": "npm run lint", | ||
"lint": "eslint machines test", | ||
"lint": "node ./node_modules/eslint/bin/eslint *.js **/*.js", | ||
"docker": "docker-compose run adapter bash", | ||
@@ -22,8 +22,7 @@ "benchmark": "node ./node_modules/mocha/bin/mocha test/benchmarks --recursive" | ||
], | ||
"author": "The Treeline Company", | ||
"author": "The Sails Company", | ||
"license": "MIT", | ||
"dependencies": { | ||
"benchmark": "2.1.1", | ||
"debug": "2.2.0", | ||
"lodash": "3.10.1", | ||
"@sailshq/lodash": "^3.10.2", | ||
"machine": "^13.0.0-17", | ||
@@ -35,7 +34,7 @@ "pg": "6.1.0", | ||
"eslint": "3.5.0", | ||
"espree": "3.3.0", | ||
"benchmark": "2.1.1", | ||
"mocha": "3.0.2" | ||
}, | ||
"machinepack": { | ||
"friendlyName": "Postgresql", | ||
"friendlyName": "PostgreSQL", | ||
"machineDir": "machines/", | ||
@@ -42,0 +41,0 @@ "machines": [ |
@@ -6,25 +6,44 @@ <h1> | ||
### [Docs](http://node-machine.org/machinepack-postgresql) [Browse other machines](http://node-machine.org/machinepacks) [FAQ](http://node-machine.org/implementing/FAQ) [Newsgroup](https://groups.google.com/forum/?hl=en#!forum/node-machine) | ||
Run queries against a PostgreSQL database. | ||
> See https://github.com/node-machine/driver-interface for more background information about this package. | ||
## Installation [](http://badge.fury.io/js/machinepack-postgresql) [](https://travis-ci.org/treelinehq/machinepack-postgresql) | ||
```sh | ||
$ npm install machinepack-postgresql --save --save-exact | ||
$ npm install machinepack-postgresql --save | ||
``` | ||
## Usage | ||
For the latest usage documentation, version information, and test status of this module, see <a href="http://node-machine.org/machinepack-postgresql" title="Run queries against a postgresql database. (for node.js)">http://node-machine.org/machinepack-postgresql</a>. The generated manpages for each machine contain a complete reference of all expected inputs, possible exit states, and example return values. If you need more help, or find a bug, jump into [Gitter](https://gitter.im/node-machine/general) or leave a message in the project [newsgroup](https://groups.google.com/forum/?hl=en#!forum/node-machine). | ||
For the latest usage documentation, version information, and test status of this module, see <a href="http://node-machine.org/machinepack-postgresql" title="Structured Node.js bindings for postgresql. (for node.js)">http://node-machine.org/machinepack-postgresql</a>. The generated manpage for each method contains a complete reference of all expected inputs, possible exit states, and example return values. | ||
## About [](https://gitter.im/node-machine/general?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
This is a [machinepack](http://node-machine.org/machinepacks), an NPM module which exposes a set of related Node.js [machines](http://node-machine.org/spec/machine) according to the [machinepack specification](http://node-machine.org/spec/machinepack). | ||
Documentation pages for the machines contained in this module (as well as all other NPM-hosted machines for Node.js) are automatically generated and kept up-to-date on the <a href="http://node-machine.org" title="Public machine registry for Node.js">public registry</a>. | ||
Learn more at <a href="http://node-machine.org/implementing/FAQ" title="Machine Project FAQ (for implementors)">http://node-machine.org/implementing/FAQ</a>. | ||
## Help | ||
For more examples, or if you get stuck or have questions, click [here](http://sailsjs.com/support). | ||
## Bugs [](http://npmjs.com/package/machinepack-postgresql) | ||
To report a bug, [click here](http://sailsjs.com/bugs). | ||
## Contributing [](https://travis-ci.org/balderdashy/machinepack-postgresql) | ||
Please observe the guidelines and conventions laid out in the [Sails project contribution guide](http://sailsjs.com/contribute) when opening issues or submitting pull requests. | ||
[](http://npmjs.com/package/machinepack-postgresql) | ||
## Acknowledgements | ||
Thanks to [@brianc](https://github.com/brianc) for all of his fantastic work on the [`pg`](http://npmjs.com/package/pg) package! | ||
## License | ||
MIT © 2015 - 2016 contributors | ||
MIT © 2015-2017 The Sails Company | ||
This package, like the [Sails framework](http://sailsjs.com), is free and open-source under the [MIT License](http://sailsjs.com/license). | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
90478
62.07%5
-16.67%35
84.21%2031
91.97%49
63.33%9
800%+ Added
- Removed
- Removed
- Removed
- Removed