Skip to content

Commit 18e4419

Browse files
author
Ryan Sundberg
committed
put pg in /
1 parent 4502d1c commit 18e4419

File tree

211 files changed

+81
-13135
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+81
-13135
lines changed

CHANGELOG.md

-405
This file was deleted.

LICENSE

-21
This file was deleted.
File renamed without changes.

README.md

+40-57
Original file line numberDiff line numberDiff line change
@@ -5,46 +5,40 @@
55
<span class="badge-npmversion"><a href="https://npmjs.org/package/pg" title="View this project on NPM"><img src="https://img.shields.io/npm/v/pg.svg" alt="NPM version" /></a></span>
66
<span class="badge-npmdownloads"><a href="https://npmjs.org/package/pg" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/pg.svg" alt="NPM downloads" /></a></span>
77

8-
Non-blocking PostgreSQL client for Node.js. Pure JavaScript and optional native libpq bindings.
8+
Non-blocking PostgreSQL client for Node.js. Pure JavaScript and optional native libpq bindings.
99

10-
## Monorepo
10+
## Install
1111

12-
This repo is a monorepo which contains the core [pg](https://github.com/brianc/node-postgres/tree/master/packages/pg) module as well as a handful of related modules.
12+
```sh
13+
$ npm install pg
14+
```
1315

14-
- [pg](https://github.com/brianc/node-postgres/tree/master/packages/pg)
15-
- [pg-pool](https://github.com/brianc/node-postgres/tree/master/packages/pg-pool)
16-
- [pg-cursor](https://github.com/brianc/node-postgres/tree/master/packages/pg-cursor)
17-
- [pg-query-stream](https://github.com/brianc/node-postgres/tree/master/packages/pg-query-stream)
18-
- [pg-connection-string](https://github.com/brianc/node-postgres/tree/master/packages/pg-connection-string)
16+
---
1917

20-
21-
## Documentation
22-
23-
Each package in this repo should have it's own readme more focused on how to develop/contribute. For overall documentation on the project and the related modules managed by this repo please see:
24-
25-
### :star: [Documentation](https://node-postgres.com) :star:
18+
## :star: [Documentation](https://node-postgres.com) :star:
2619

2720
### Features
2821

29-
* Pure JavaScript client and native libpq bindings share _the same API_
30-
* Connection pooling
31-
* Extensible JS ↔ PostgreSQL data-type coercion
32-
* Supported PostgreSQL features
33-
* Parameterized queries
34-
* Named statements with query plan caching
35-
* Async notifications with `LISTEN/NOTIFY`
36-
* Bulk import & export with `COPY TO/COPY FROM`
22+
- Pure JavaScript client and native libpq bindings share _the same API_
23+
- Connection pooling
24+
- Extensible JS ↔ PostgreSQL data-type coercion
25+
- Supported PostgreSQL features
26+
- Parameterized queries
27+
- Named statements with query plan caching
28+
- Async notifications with `LISTEN/NOTIFY`
29+
- Bulk import & export with `COPY TO/COPY FROM`
3730

3831
### Extras
3932

40-
node-postgres is by design pretty light on abstractions. These are some handy modules we've been using over the years to complete the picture.
33+
node-postgres is by design pretty light on abstractions. These are some handy modules we've been using over the years to complete the picture.
4134
The entire list can be found on our [wiki](https://github.com/brianc/node-postgres/wiki/Extras).
4235

4336
## Support
4437

45-
node-postgres is free software. If you encounter a bug with the library please open an issue on the [GitHub repo](https://github.com/brianc/node-postgres). If you have questions unanswered by the documentation please open an issue pointing out how the documentation was unclear & I will do my best to make it better!
38+
node-postgres is free software. If you encounter a bug with the library please open an issue on the [GitHub repo](https://github.com/brianc/node-postgres). If you have questions unanswered by the documentation please open an issue pointing out how the documentation was unclear & I will do my best to make it better!
4639

4740
When you open an issue please provide:
41+
4842
- version of Node
4943
- version of Postgres
5044
- smallest possible snippet of code to reproduce the problem
@@ -56,10 +50,6 @@ You can also follow me [@briancarlson](https://twitter.com/briancarlson) if that
5650
node-postgres's continued development has been made possible in part by generous finanical support from [the community](https://github.com/brianc/node-postgres/blob/master/SPONSORS.md) and these featured sponsors:
5751

5852
<div align="center">
59-
<a href="https://www.timescale.com" target="_blank">
60-
<img height="80" src="https://node-postgres.com/timescale.svg" />
61-
</a>
62-
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAABCAQAAAB0m0auAAAADElEQVR42mNkIBIAAABSAAI2VLqiAAAAAElFTkSuQmCC" />
6353
<a href="https://crate.io" target="_blank">
6454
<img height="80" src="https://node-postgres.com/crate-io.png" />
6555
</a>
@@ -69,22 +59,15 @@ If you or your company are benefiting from node-postgres and would like to help
6959

7060
## Contributing
7161

72-
__:heart: contributions!__
62+
**:heart: contributions!**
63+
64+
I will **happily** accept your pull request if it:
7365

74-
I will __happily__ accept your pull request if it:
75-
- __has tests__
66+
- **has tests**
7667
- looks reasonable
7768
- does not break backwards compatibility
7869

79-
If your change involves breaking backwards compatibility please please point that out in the pull request & we can discuss & plan when and how to release it and what type of documentation or communication it will require.
80-
81-
### Setting up for local development
82-
83-
1. Clone the repo
84-
2. From your workspace root run `yarn` and then `yarn lerna bootstrap`
85-
3. Ensure you have a PostgreSQL instance running with SSL enabled and an empty database for tests
86-
4. Ensure you have the proper environment variables configured for connecting to the instance
87-
5. Run `yarn test` to run all the tests
70+
If your change involves breaking backwards compatibility please please point that out in the pull request & we can discuss & plan when and how to release it and what type of documentation or communicate it will require.
8871

8972
## Troubleshooting and FAQ
9073

@@ -94,20 +77,20 @@ The causes and solutions to common errors can be found among the [Frequently Ask
9477

9578
Copyright (c) 2010-2020 Brian Carlson (brian.m.carlson@gmail.com)
9679

97-
Permission is hereby granted, free of charge, to any person obtaining a copy
98-
of this software and associated documentation files (the "Software"), to deal
99-
in the Software without restriction, including without limitation the rights
100-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
101-
copies of the Software, and to permit persons to whom the Software is
102-
furnished to do so, subject to the following conditions:
103-
104-
The above copyright notice and this permission notice shall be included in
105-
all copies or substantial portions of the Software.
106-
107-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
108-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
109-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
110-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
111-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
112-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
113-
THE SOFTWARE.
80+
Permission is hereby granted, free of charge, to any person obtaining a copy
81+
of this software and associated documentation files (the "Software"), to deal
82+
in the Software without restriction, including without limitation the rights
83+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
84+
copies of the Software, and to permit persons to whom the Software is
85+
furnished to do so, subject to the following conditions:
86+
87+
The above copyright notice and this permission notice shall be included in
88+
all copies or substantial portions of the Software.
89+
90+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
91+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
92+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
93+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
94+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
95+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
96+
THE SOFTWARE.

SPONSORS.md

-33
This file was deleted.
File renamed without changes.

lerna.json

-12
This file was deleted.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

package.json

+41-29
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,49 @@
11
{
2-
"name": "node-postgres",
3-
"description": "node postgres monorepo",
4-
"main": "index.js",
5-
"private": true,
6-
"repository": "git@github.com:brianc/node-postgres.git",
7-
"author": "Brian M. Carlson <brian.m.carlson@gmail.com>",
8-
"license": "MIT",
9-
"workspaces": [
10-
"packages/*"
2+
"name": "pg",
3+
"version": "8.3.0",
4+
"description": "PostgreSQL client - pure javascript & libpq with the same API",
5+
"keywords": [
6+
"database",
7+
"libpq",
8+
"pg",
9+
"postgre",
10+
"postgres",
11+
"postgresql",
12+
"rdbms"
1113
],
12-
"scripts": {
13-
"test": "yarn lint && yarn lerna exec yarn test",
14-
"build": "yarn lerna exec --scope pg-protocol yarn build",
15-
"pretest": "yarn build",
16-
"lint": "if [ -x ./node_modules/.bin/prettier ]; then eslint '*/**/*.{js,ts,tsx}'; fi;"
14+
"homepage": "https://github.com/brianc/node-postgres",
15+
"repository": {
16+
"type": "git",
17+
"url": "git://github.com/brianc/node-postgres.git"
18+
},
19+
"author": "Brian Carlson <brian.m.carlson@gmail.com>",
20+
"main": "./lib",
21+
"dependencies": {
22+
"buffer-writer": "2.0.0",
23+
"packet-reader": "1.0.0",
24+
"pg-connection-string": "^2.3.0",
25+
"pg-pool": "^3.2.1",
26+
"pg-protocol": "^1.2.5",
27+
"pg-types": "^2.1.0",
28+
"pgpass": "1.x",
29+
"semver": "4.3.2"
1730
},
1831
"devDependencies": {
19-
"@typescript-eslint/eslint-plugin": "^2.27.0",
20-
"@typescript-eslint/parser": "^2.27.0",
21-
"eslint": "^6.8.0",
22-
"eslint-config-prettier": "^6.10.1",
23-
"eslint-plugin-node": "^11.1.0",
24-
"eslint-plugin-prettier": "^3.1.2",
25-
"lerna": "^3.19.0"
32+
"async": "0.9.0",
33+
"bluebird": "3.5.2",
34+
"co": "4.6.0",
35+
"pg-copy-streams": "0.3.0"
2636
},
27-
"optionalDependencies": {
28-
"prettier": "2.0.4"
37+
"minNativeVersion": "2.0.0",
38+
"scripts": {
39+
"test": "make test-all"
2940
},
30-
"prettier": {
31-
"semi": false,
32-
"printWidth": 120,
33-
"arrowParens": "always",
34-
"trailingComma": "es5",
35-
"singleQuote": true
41+
"files": [
42+
"lib",
43+
"SPONSORS.md"
44+
],
45+
"license": "MIT",
46+
"engines": {
47+
"node": ">= 8.0.0"
3648
}
3749
}

packages/pg-connection-string/.coveralls.yml

-2
This file was deleted.

packages/pg-connection-string/.gitignore

-26
This file was deleted.

packages/pg-connection-string/.travis.yml

-6
This file was deleted.

packages/pg-connection-string/LICENSE

-21
This file was deleted.

0 commit comments

Comments
 (0)