duckdb 0.6.2-dev2303.0 → 0.6.2-dev2306.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.
package/lib/duckdb.d.ts
CHANGED
|
@@ -3,9 +3,13 @@
|
|
|
3
3
|
* See https://duckdb.org/docs/api/nodejs/overview for details
|
|
4
4
|
* on Node.JS API
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Standard error shape for DuckDB errors
|
|
9
|
+
*/
|
|
10
|
+
export interface DuckDbError extends Error {
|
|
11
|
+
errno: -1; // value of ERROR
|
|
12
|
+
code: 'DUCKDB_NODEJS_ERROR';
|
|
9
13
|
}
|
|
10
14
|
|
|
11
15
|
type Callback<T> = (err: DuckDbError | null, res: T) => void;
|
package/package.json
CHANGED
package/src/connection.cpp
CHANGED
|
@@ -388,7 +388,8 @@ struct ExecTask : public Task {
|
|
|
388
388
|
void Callback() override {
|
|
389
389
|
auto env = object.Env();
|
|
390
390
|
Napi::HandleScope scope(env);
|
|
391
|
-
callback.Value().MakeCallback(object.Value(),
|
|
391
|
+
callback.Value().MakeCallback(object.Value(),
|
|
392
|
+
{success ? env.Null() : Utils::CreateError(env, error.Message())});
|
|
392
393
|
};
|
|
393
394
|
|
|
394
395
|
std::string sql;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#ifndef DUCKDB_VERSION
|
|
2
|
-
#define DUCKDB_VERSION "0.6.2-
|
|
2
|
+
#define DUCKDB_VERSION "0.6.2-dev2306"
|
|
3
3
|
#endif
|
|
4
4
|
#ifndef DUCKDB_SOURCE_ID
|
|
5
|
-
#define DUCKDB_SOURCE_ID "
|
|
5
|
+
#define DUCKDB_SOURCE_ID "4390131cdc"
|
|
6
6
|
#endif
|
|
7
7
|
#include "duckdb/function/table/system_functions.hpp"
|
|
8
8
|
#include "duckdb/main/database.hpp"
|