mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Fix broken link in docs (#3155)
* Fix broken link to /apis/types in docs * Adjust slugs in docs pages
This commit is contained in:
parent
641ab436a0
commit
aedae81c75
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: pg.Cursor
|
||||
slug: /api/cursor
|
||||
slug: /apis/cursor
|
||||
---
|
||||
|
||||
A cursor can be used to efficiently read through large result sets without loading the entire result-set into memory ahead of time. It's useful to simulate a 'streaming' style read of data, or exit early from a large result set. The cursor is passed to `client.query` and is dispatched internally in a way very similar to how normal queries are sent, but the API it presents for consuming the result set is different.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: pg.Result
|
||||
slug: /api/result
|
||||
slug: /apis/result
|
||||
---
|
||||
|
||||
The `pg.Result` shape is returned for every successful query.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
---
|
||||
title: Types
|
||||
slug: /api/types
|
||||
slug: /apis/types
|
||||
---
|
||||
|
||||
These docs are incomplete, for now please reference [pg-types docs](https://github.com/brianc/node-pg-types).
|
||||
|
||||
@ -123,7 +123,7 @@ console.log(res.rows[0]) // ['Brian', 'Carlson']
|
||||
|
||||
### Types
|
||||
|
||||
You can pass in a custom set of type parsers to use when parsing the results of a particular query. The `types` property must conform to the [Types](/api/types) API. Here is an example in which every value is returned as a string:
|
||||
You can pass in a custom set of type parsers to use when parsing the results of a particular query. The `types` property must conform to the [Types](/apis/types) API. Here is an example in which every value is returned as a string:
|
||||
|
||||
```js
|
||||
const query = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user