@blackrainbowlabs/cli-win32-x64 2.2.0 → 2.3.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.
Binary file
Binary file
Binary file
Binary file
@@ -416,6 +416,23 @@ int32_t inillucent_stmt_execute_params(inillucent_stmt *stmt,
416
416
  inillucent_error **error);
417
417
  void inillucent_params_free(inillucent_params *params);
418
418
 
419
+ /* One foreign call per execution, for a binding running inside CPython.
420
+ * inillucent_py_init_threads takes the addresses of PyEval_SaveThread and
421
+ * PyEval_RestoreThread, in that order (count 2). inillucent_py_stmt_execute
422
+ * reads a list or tuple of parameters the way inillucent_py_params reads one
423
+ * row, binds them in place of what was bound, runs the statement with the
424
+ * interpreter lock let go, and returns a new reference: the result list
425
+ * inillucent_rows_py builds, an int holding the address of an
426
+ * inillucent_error the caller raises from and frees, or None when a value is
427
+ * not one it reads, so the caller binds that execution another way.
428
+ * inillucent_py_execute does the same for a statement with no parameters,
429
+ * given as a str. Call both with the interpreter lock held (ctypes.PyDLL),
430
+ * after inillucent_py_init and inillucent_py_init_params. Since ABI 1.4.0. */
431
+ int32_t inillucent_py_init_threads(const void *const *api, size_t count);
432
+ void *inillucent_py_stmt_execute(inillucent_stmt *stmt, void *params,
433
+ uint64_t limit);
434
+ void *inillucent_py_execute(inillucent_conn *conn, void *sql, uint64_t limit);
435
+
419
436
  /* For Node. The library is also a Node addon: process.dlopen() calls this,
420
437
  * and it fills exports with open, connect, query, batch, disconnect and
421
438
  * close. Node's napi_* functions are looked up in the host process when it is
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blackrainbowlabs/cli-win32-x64",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "The inillucent binaries for win32-x64. Installed automatically by the 'inillucent' package; there is no reason to depend on this directly.",
5
5
  "homepage": "https://github.com/Black-Rainbow-Labs/Inillucent#readme",
6
6
  "repository": {