doc: render type references in SQLite docs

Render JavaScript types as such in the section "Type conversion between
JavaScript and SQLite".

PR-URL: https://github.com/nodejs/node/pull/54684
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Tobias Nießen 2024-09-03 11:46:01 +02:00 committed by GitHub
parent 298dea0c63
commit cb747d360e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -308,11 +308,11 @@ exception.
| SQLite | JavaScript |
| --------- | -------------------- |
| `NULL` | `null` |
| `INTEGER` | `number` or `BigInt` |
| `REAL` | `number` |
| `TEXT` | `string` |
| `BLOB` | `Uint8Array` |
| `NULL` | {null} |
| `INTEGER` | {number} or {bigint} |
| `REAL` | {number} |
| `TEXT` | {string} |
| `BLOB` | {Uint8Array} |
[SQL injection]: https://en.wikipedia.org/wiki/SQL_injection
[`--experimental-sqlite`]: cli.md#--experimental-sqlite