]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Clearer docs for the unowned db/stmt handle mechanism. oo1-unowned-handles
authorstephan <stephan@noemail.net>
Fri, 11 Jul 2025 19:44:42 +0000 (19:44 +0000)
committerstephan <stephan@noemail.net>
Fri, 11 Jul 2025 19:44:42 +0000 (19:44 +0000)
FossilOrigin-Name: 53401b5435e30c4b47b6e203976b714d616246d734b5876a34f53f6388f872f8

ext/wasm/api/sqlite3-api-oo1.c-pp.js
manifest
manifest.uuid

index f92dde48a7e99b7063d0740879970e2f1897d004..62c44fa9d0e98896ee4e0e880ebc3cc8d6719ff4 100644 (file)
@@ -39,12 +39,15 @@ globalThis.sqlite3ApiBootstrap.initializers.push(function(sqlite3){
   const __ptrMap = new WeakMap();
   /**
      A Set of oo1.DB or oo1.Stmt objects which are proxies for
-     (sqlite3*) resp. (sqlite3_stmt*) pointers. Such objects
-     optionally do not own their underlying handle and that handle
-     must be guaranteed (by the client) to outlive the proxy. These
-     proxies are primarily intended as a way to briefly wrap an
-     (sqlite3[_stmt]*) object as an oo1.DB/Stmt without taking over
-     ownership.
+     (sqlite3*) resp. (sqlite3_stmt*) pointers which themselves are
+     owned elsewhere. Objects in this Set do not own their underlying
+     handle and that handle must be guaranteed (by the client) to
+     outlive the proxy. DB.close()/Stmt.finalize() methods will remove
+     the object from this Set _instead_ of closing/finalizing the
+     pointer. These proxies are primarily intended as a way to briefly
+     wrap an (sqlite3[_stmt]*) object as an oo1.DB/Stmt without taking
+     over ownership, to take advantage of simplifies usage compared to
+     the C API while not imposing any change of ownership.
 
      See DB.wrapHandle() and Stmt.wrapHandle().
   */
index cc57a87555e00f589d4aade54e5bfa6f91b3cf34..cc2bf2044379bfaf1c09c53add443d27d4ddfeb3 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Correct\sa\sone-too-many-exclamation-points\sbug\swhich\scaused\sthe\sopposite\sof\sintended\ssemantics\sin\soo1.Stmt.pointer\sownership.
-D 2025-07-11T19:34:30.706
+C Clearer\sdocs\sfor\sthe\sunowned\sdb/stmt\shandle\smechanism.
+D 2025-07-11T19:44:42.921
 F .fossil-settings/binary-glob 61195414528fb3ea9693577e1980230d78a1f8b0a54c78cf1b9b24d0a409ed6a x
 F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
 F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
@@ -641,7 +641,7 @@ F ext/wasm/api/post-js-header.js 53740d824e5d9027eb1e6fd59e216abbd2136740ce260ea
 F ext/wasm/api/pre-js.c-pp.js a614a2c82b12c4d96d8e3ba77330329efc53c4d56a8a7e60ade900f341866cfb
 F ext/wasm/api/sqlite3-api-cleanup.js 3ac1786e461ada63033143be8c3b00b26b939540661f3e839515bb92f2e35359
 F ext/wasm/api/sqlite3-api-glue.c-pp.js 0b76510f3650053bac67ca8947cb6ab9d050ad2218118a2e7796dd37be832ffa
-F ext/wasm/api/sqlite3-api-oo1.c-pp.js 19067fa3939d355db7bb5b02ee79dbb5e7ca4a8bd24216e24a2b4320b81ebb8d
+F ext/wasm/api/sqlite3-api-oo1.c-pp.js f59e59f0d94ba5835c6b7fc9b800a4aa5084e1224721a07e3cd6cc7fef1789c2
 F ext/wasm/api/sqlite3-api-prologue.js 8708570165f5b4bce9a78ccd91bc9ddf8735970ac1c4d659e36c9a7d9a644bb4
 F ext/wasm/api/sqlite3-api-worker1.c-pp.js f646a65257973b8c4481f8a6a216370b85644f23e64b126e7ae113570587c0ab
 F ext/wasm/api/sqlite3-license-version-header.js 0c807a421f0187e778dc1078f10d2994b915123c1223fe752b60afdcd1263f89
@@ -2208,8 +2208,8 @@ F tool/version-info.c 3b36468a90faf1bbd59c65fd0eb66522d9f941eedd364fabccd7227350
 F tool/warnings-clang.sh bbf6a1e685e534c92ec2bfba5b1745f34fb6f0bc2a362850723a9ee87c1b31a7
 F tool/warnings.sh 1ad0169b022b280bcaaf94a7fa231591be96b514230ab5c98fbf15cd7df842dd
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 34d893b4837be8bb679e9809befd98201dd79c8d2054f41429b18793b77e840f
-R 3857d6c93e170f8a2978e6a4274a481e
+P 91e709f36d36174534b4cf4ff548a558e66cca5e23a6c8c106bc43375fc3ce72
+R e5c4d3b625713e6da11932841f2fcce9
 U stephan
-Z 42d47a808b11dbced254adeb3041a5ca
+Z 9fc18e96946cc270569853caeaa690c0
 # Remove this line to create a well-formed Fossil manifest.
index 2eca880dc552e63a83b222b57ad8c4327d40e671..6fca69ff3aad5d42f730848df84857675a99786f 100644 (file)
@@ -1 +1 @@
-91e709f36d36174534b4cf4ff548a558e66cca5e23a6c8c106bc43375fc3ce72
+53401b5435e30c4b47b6e203976b714d616246d734b5876a34f53f6388f872f8