nish 0.42.0 → 0.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,8 +20,13 @@ them.
20
20
 
21
21
  ## How it is linked
22
22
 
23
- `scripts/build.sh` compiles every `*.c` here for a link whose IR declares an
24
- `sqlite3_*` or `nishsqlite_*` function, and for no other link. The options are
23
+ `nish-sqlite.c` starts with `#include "sqlite3.c"`, so SQLite and the
24
+ `nish/sqlite` adapter are one unit: the cursors call SQLite's internal
25
+ functions, which are `static` in the amalgamation
26
+ ([docs/sqlite-cursor.md](../../docs/sqlite-cursor.md#the-build-decision)).
27
+ `scripts/build.sh` compiles every `*.c` here except `sqlite3.c` for a link
28
+ whose IR declares an `sqlite3_*` or `nishsqlite_*` function, and for no other
29
+ link. The options are
25
30
  in `build.sh`, under "SQLite's compile-time options". `NISH_SQLITE_CFLAGS` adds
26
31
  to them (`docs/guide/using-nish/cli.md`). `nish --link` and `nish run` compile
27
32
  these units once per recipe into an entry of the runtime cache of their own
@@ -40,6 +45,14 @@ for the units and the files the cache key fingerprints (`sqliteUnits`,
40
45
  3. Update the table above, the two file hashes included (`openssl dgst
41
46
  -sha3-256 sqlite3.c sqlite3.h`), the version in `THIRD_PARTY_NOTICES.md`, and the
42
47
  numbers in `tests/link/sqlite_link*/expected.out`.
43
- 4. Run `node tests/run.js link`, `node tests/run.js sqlite-link`,
48
+ 4. Re-check every internal SQLite function the cursor adapter in
49
+ `nish-sqlite.c` calls, the list in
50
+ [`docs/sqlite-cursor.md`](../../docs/sqlite-cursor.md#what-the-adapter-calls):
51
+ these are `SQLITE_PRIVATE`, not SQLite's API, and a release may change one
52
+ without notice. Diff each one's declaration and body against the old
53
+ `sqlite3.c`, including what it asserts about the mutex and the cursor's
54
+ state, and the `KeyInfo` fields the adapter fills by hand against
55
+ `sqlite3KeyInfoOfIndex`. Update the adapter and that list for any change.
56
+ 5. Run `node tests/run.js link`, `node tests/run.js sqlite-link`,
44
57
  `WASI_SYSROOT=/usr node tests/run.js wasi` and the third-party-licence
45
58
  section.