sqlite-jna icon indicating copy to clipboard operation
sqlite-jna copied to clipboard

How to avoid copying data twice ?

Open gwenn opened this issue 8 months ago • 1 comments

See https://github.com/gwenn/sqlite-jna/blob/9bc3697780a69303960ef5809795d4ee261e4b56/src/main/java/org/sqlite/SQLite.java#L796 And https://github.com/gwenn/sqlite-jna/blob/9bc3697780a69303960ef5809795d4ee261e4b56/src/main/java/org/sqlite/SQLite.java#L1118

  • it seems impossible to use the xDel callback
  • Maybe we should use an Arena by statement instead of try (Arena arena = Arena.ofConfined()) {...} and drop it when reset or clear_bindings or close is called ?

gwenn avatar May 06 '25 06:05 gwenn

Partially fixed in https://github.com/gwenn/sqlite-jna/commit/77cc0ca36aeb2eb32386c8a04e8c1a2c8f9441fc

gwenn avatar May 06 '25 08:05 gwenn