mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
refactor: remove unused import & fix typos in docs (#3471)
This commit is contained in:
parent
c9353acbc0
commit
9cf2184d09
@ -1,4 +1,3 @@
|
||||
import React from 'react'
|
||||
import { Callout } from 'nextra-theme-docs'
|
||||
|
||||
export const Alert = ({ children }) => {
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
import React from 'react'
|
||||
import { Callout } from 'nextra-theme-docs'
|
||||
|
||||
export const Info = ({ children }) => {
|
||||
|
||||
@ -1,5 +1,3 @@
|
||||
import React from 'react'
|
||||
|
||||
type Props = {
|
||||
src: string
|
||||
alt?: string
|
||||
|
||||
@ -1,9 +1,5 @@
|
||||
import 'nextra-theme-docs/style.css'
|
||||
|
||||
export default function Nextra({ Component, pageProps }) {
|
||||
return (
|
||||
<>
|
||||
<Component {...pageProps} />
|
||||
</>
|
||||
)
|
||||
return <Component {...pageProps} />
|
||||
}
|
||||
|
||||
@ -29,14 +29,14 @@ type Config = {
|
||||
idleTimeoutMillis?: number
|
||||
|
||||
// maximum number of clients the pool should contain
|
||||
// by default this is set to 10. There is some nuance to setting the maxium size of your pool.
|
||||
// by default this is set to 10. There is some nuance to setting the maximum size of your pool.
|
||||
// see https://node-postgres.com/guides/pool-sizing for more information
|
||||
max?: number
|
||||
|
||||
// minimum number of clients the pool should hold on to and _not_ destroy with the idleTimeoutMillis
|
||||
// this can be useful if you get very bursty traffic and want to keep a few clients around.
|
||||
// note: current the pool will not automatically create and connect new clients up to the min, it will
|
||||
// only not evict and close clients except those which execeed the min count.
|
||||
// only not evict and close clients except those which exceed the min count.
|
||||
// the default is 0 which disables this behavior.
|
||||
min?: number
|
||||
|
||||
|
||||
@ -73,7 +73,7 @@ try {
|
||||
|
||||
### Pooling
|
||||
|
||||
In most applications you'll wannt to use a [connection pool](/features/pooling) to manage your connections. This is a more advanced topic, but here's a simple example of how to use it:
|
||||
In most applications you'll want to use a [connection pool](/features/pooling) to manage your connections. This is a more advanced topic, but here's a simple example of how to use it:
|
||||
|
||||
```js
|
||||
import { Pool } from 'pg'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user