node/doc/api
Tobias Nießen a49abec6c3
sqlite: enable foreign key constraints by default
For historical reasons and to maintain compatibibility with legacy
database schemas, SQLite does not enable foreign key constraints by
default. For new applications, however, this behavior is undesirable.
Currently, any application that wishes to use foreign keys must use

    PRAGMA foreign_keys = ON;

to explicitly enable enforcement of such constraints.

This commit changes the behavior of the SQLite API built into Node.js
to enable foreign key constraints by default. This behavior can be
overridden by users to maintain compatibility with legacy database
schemas.

PR-URL: https://github.com/nodejs/node/pull/54777
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Chemi Atlow <chemi@atlow.co.il>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
2024-10-06 15:57:23 +00:00
..
addons.md src: use args.This() instead of Holder 2024-06-18 16:02:42 +00:00
assert.md doc: require node:process in assert doc examples 2024-07-04 19:49:38 +00:00
async_context.md 2023-04-18, Version 20.0.0 (Current) 2023-04-18 13:04:39 -03:00
async_hooks.md doc,tools: enforce use of node: prefix 2024-07-21 15:44:27 +00:00
buffer.md buffer: make File cloneable 2024-09-26 08:24:39 +00:00
child_process.md doc, child_process: add esm snippets 2024-09-05 08:47:48 +00:00
cli.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
cluster.md doc: move numCPUs require to top of file in cluster CJS example 2024-07-30 06:13:52 +00:00
console.md doc: add esm examples to node:console 2024-08-06 09:56:59 +00:00
corepack.md doc: update pnpm link 2024-03-18 14:27:59 +00:00
crypto.md doc: fix typos 2024-09-29 13:15:15 +00:00
debugger.md inspector: introduce the --inspect-wait flag 2024-05-11 18:48:30 +00:00
deprecations.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
dgram.md doc: use consistent plural form of "index" 2024-04-07 06:46:29 +00:00
diagnostics_channel.md doc: make some parameters optional in tracingChannel.traceCallback 2024-08-07 15:26:20 +09:30
dns.md doc: add esm examples to node:dns 2024-08-06 18:34:19 +00:00
documentation.md doc: use consistent plural form of "index" 2024-04-07 06:46:29 +00:00
domain.md doc: fix typos 2023-04-23 13:34:08 +00:00
embedding.md test,doc: enable running embedtest for Windows 2024-05-23 18:33:40 +00:00
errors.md doc: move ERR_NAPI_TSFN_START/STOP_IDLE_LOOP to legacy errors 2024-10-05 09:59:13 +00:00
esm.md esm: export 'module.exports' on ESM CJS wrapper 2024-10-02 12:30:23 -07:00
events.md doc, typings: events.once accepts symbol event type 2024-06-27 21:56:25 +00:00
fs.md fs: acknowledge signal option in filehandle.createReadStream() 2024-10-03 06:32:36 +00:00
globals.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
http2.md http2: expose nghttp2_option_set_stream_reset_rate_limit as an option 2024-09-30 09:52:08 +00:00
http.md 2024-07-17, Version 22.5.0 (Current) 2024-07-17 12:11:26 -03:00
https.md doc: add esm examples to node:https 2024-08-19 13:52:40 +00:00
index.md module: add --experimental-strip-types 2024-07-24 16:30:06 +00:00
inspector.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
intl.md doc: improve documentation about ICU data fallback 2023-09-22 13:24:23 +00:00
module.md doc: fix typos 2024-09-29 13:15:15 +00:00
modules.md doc: update require(ESM) history and stability status 2024-10-02 23:02:31 +02:00
n-api.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
net.md doc: fix initial default value of autoSelectFamily 2024-10-05 02:06:36 +00:00
os.md doc: fix broken Android building link 2024-09-15 12:29:18 +00:00
packages.md doc: fix typos 2024-09-29 13:15:15 +00:00
path.md 2024-08-21, Version 20.17.0 'Iron' (LTS) 2024-08-21 18:14:55 +02:00
perf_hooks.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
permissions.md src: add receiver to fast api callback methods 2024-09-28 09:46:03 +00:00
process.md process: add process.features.typescript 2024-10-05 07:08:11 +00:00
punycode.md doc: format doc/api/*.md with markdown formatter 2021-10-20 11:59:11 +02:00
querystring.md doc: get rid of unnecessary eslint-skip comments 2023-11-22 19:03:33 +00:00
readline.md doc: detailed description of keystrokes Ctrl-Y and Meta-Y 2023-08-08 19:51:43 +00:00
repl.md doc: remove parseREPLKeyword from REPL documentation 2024-09-22 19:08:53 +00:00
report.md 2024-05-07, Version 20.13.0 'Iron' (LTS) 2024-05-07 17:32:24 +02:00
single-executable-applications.md doc: fix typo in method name in the sea doc 2024-08-15 11:11:01 +00:00
sqlite.md sqlite: enable foreign key constraints by default 2024-10-06 15:57:23 +00:00
stream.md doc: fix typos 2024-09-29 13:15:15 +00:00
string_decoder.md doc: add print results for examples in StringDecoder 2023-08-27 15:32:47 +00:00
synopsis.md doc: clarify explaination text on how to run the example 2023-10-06 13:37:31 +00:00
test.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
timers.md timers: document ref option for scheduler.wait 2024-09-02 06:57:02 +00:00
tls.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
tracing.md doc: include node.module_timer on available categories 2024-07-01 15:18:16 +00:00
tty.md doc,tty: add documentation for ReadStream and WriteStream 2024-07-19 10:53:24 +00:00
typescript.md 2024-08-22, Version 22.7.0 (Current) 2024-08-22 11:14:41 -03:00
url.md url: add missing documentation for URL.parse() 2024-07-05 02:51:03 +00:00
util.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
v8.md doc: fix typos 2024-09-29 13:15:15 +00:00
vm.md 2024-10-03, Version 20.18.0 'Iron' (LTS) 2024-10-03 19:54:20 +02:00
wasi.md doc,tools: enforce use of node: prefix 2024-07-21 15:44:27 +00:00
webcrypto.md doc: fix webcrypto.md AES-GCM backticks 2024-08-30 22:32:03 +00:00
webstreams.md 2024-08-21, Version 20.17.0 'Iron' (LTS) 2024-08-21 18:14:55 +02:00
worker_threads.md worker: add markAsUncloneable api 2024-10-04 07:09:37 +00:00
zlib.md zlib: remove zlib.bytesRead 2024-09-28 23:46:21 +00:00