You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-57Lines changed: 40 additions & 57 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,46 +5,40 @@
5
5
<spanclass="badge-npmversion"><ahref="https://npmjs.org/package/pg"title="View this project on NPM"><imgsrc="https://img.shields.io/npm/v/pg.svg"alt="NPM version" /></a></span>
6
6
<spanclass="badge-npmdownloads"><ahref="https://npmjs.org/package/pg"title="View this project on NPM"><imgsrc="https://img.shields.io/npm/dm/pg.svg"alt="NPM downloads" /></a></span>
7
7
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.
9
9
10
-
## Monorepo
10
+
## Install
11
11
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.
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:
* 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`
37
30
38
31
### Extras
39
32
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.
41
34
The entire list can be found on our [wiki](https://github.com/brianc/node-postgres/wiki/Extras).
42
35
43
36
## Support
44
37
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!
46
39
47
40
When you open an issue please provide:
41
+
48
42
- version of Node
49
43
- version of Postgres
50
44
- 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
56
50
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:
@@ -69,22 +59,15 @@ If you or your company are benefiting from node-postgres and would like to help
69
59
70
60
## Contributing
71
61
72
-
__:heart: contributions!__
62
+
**:heart: contributions!**
63
+
64
+
I will **happily** accept your pull request if it:
73
65
74
-
I will __happily__ accept your pull request if it:
75
-
-__has tests__
66
+
-**has tests**
76
67
- looks reasonable
77
68
- does not break backwards compatibility
78
69
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.
88
71
89
72
## Troubleshooting and FAQ
90
73
@@ -94,20 +77,20 @@ The causes and solutions to common errors can be found among the [Frequently Ask
0 commit comments