Fix broken link in docs (#3155)

* Fix broken link to /apis/types in docs

* Adjust slugs in docs pages
This commit is contained in:
Jakob Runge 2024-03-15 06:54:57 +01:00 committed by GitHub
parent 641ab436a0
commit aedae81c75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View File

@ -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.

View File

@ -1,6 +1,6 @@
---
title: pg.Result
slug: /api/result
slug: /apis/result
---
The `pg.Result` shape is returned for every successful query.

View File

@ -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).

View File

@ -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 = {