@duckdb/node-api 1.1.2-alpha.1
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/LICENSE +7 -0
- package/README.md +5 -0
- package/lib/DuckDBAppender.d.ts +36 -0
- package/lib/DuckDBAppender.js +106 -0
- package/lib/DuckDBConnection.d.ts +18 -0
- package/lib/DuckDBConnection.js +51 -0
- package/lib/DuckDBDataChunk.d.ts +13 -0
- package/lib/DuckDBDataChunk.js +37 -0
- package/lib/DuckDBExtractedStatements.d.ts +11 -0
- package/lib/DuckDBExtractedStatements.js +28 -0
- package/lib/DuckDBInstance.d.ts +9 -0
- package/lib/DuckDBInstance.js +39 -0
- package/lib/DuckDBLogicalType.d.ts +70 -0
- package/lib/DuckDBLogicalType.js +292 -0
- package/lib/DuckDBPendingResult.d.ts +14 -0
- package/lib/DuckDBPendingResult.js +43 -0
- package/lib/DuckDBPreparedStatement.d.ts +40 -0
- package/lib/DuckDBPreparedStatement.js +116 -0
- package/lib/DuckDBResult.d.ts +20 -0
- package/lib/DuckDBResult.js +46 -0
- package/lib/DuckDBType.d.ts +164 -0
- package/lib/DuckDBType.js +279 -0
- package/lib/DuckDBTypeId.d.ts +39 -0
- package/lib/DuckDBTypeId.js +44 -0
- package/lib/DuckDBValue.d.ts +8 -0
- package/lib/DuckDBValue.js +2 -0
- package/lib/DuckDBVector.d.ts +491 -0
- package/lib/DuckDBVector.js +1676 -0
- package/lib/configurationOptionDescriptions.d.ts +1 -0
- package/lib/configurationOptionDescriptions.js +16 -0
- package/lib/enums.d.ts +4 -0
- package/lib/enums.js +2 -0
- package/lib/index.d.ts +16 -0
- package/lib/index.js +32 -0
- package/lib/version.d.ts +1 -0
- package/lib/version.js +10 -0
- package/package.json +13 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function configurationOptionDescriptions(): Readonly<Record<string, string>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.configurationOptionDescriptions = configurationOptionDescriptions;
|
|
7
|
+
const node_bindings_1 = __importDefault(require("@duckdb/node-bindings"));
|
|
8
|
+
function configurationOptionDescriptions() {
|
|
9
|
+
const descriptions = {};
|
|
10
|
+
const count = node_bindings_1.default.config_count();
|
|
11
|
+
for (let i = 0; i < count; i++) {
|
|
12
|
+
const { name, description } = node_bindings_1.default.get_config_flag(i);
|
|
13
|
+
descriptions[name] = description;
|
|
14
|
+
}
|
|
15
|
+
return descriptions;
|
|
16
|
+
}
|
package/lib/enums.d.ts
ADDED
package/lib/enums.js
ADDED
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './configurationOptionDescriptions';
|
|
2
|
+
export * from './DuckDBAppender';
|
|
3
|
+
export * from './DuckDBConnection';
|
|
4
|
+
export * from './DuckDBDataChunk';
|
|
5
|
+
export * from './DuckDBExtractedStatements';
|
|
6
|
+
export * from './DuckDBInstance';
|
|
7
|
+
export * from './DuckDBLogicalType';
|
|
8
|
+
export * from './DuckDBPendingResult';
|
|
9
|
+
export * from './DuckDBPreparedStatement';
|
|
10
|
+
export * from './DuckDBResult';
|
|
11
|
+
export * from './DuckDBType';
|
|
12
|
+
export * from './DuckDBTypeId';
|
|
13
|
+
export * from './DuckDBValue';
|
|
14
|
+
export * from './DuckDBVector';
|
|
15
|
+
export * from './enums';
|
|
16
|
+
export * from './version';
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./configurationOptionDescriptions"), exports);
|
|
18
|
+
__exportStar(require("./DuckDBAppender"), exports);
|
|
19
|
+
__exportStar(require("./DuckDBConnection"), exports);
|
|
20
|
+
__exportStar(require("./DuckDBDataChunk"), exports);
|
|
21
|
+
__exportStar(require("./DuckDBExtractedStatements"), exports);
|
|
22
|
+
__exportStar(require("./DuckDBInstance"), exports);
|
|
23
|
+
__exportStar(require("./DuckDBLogicalType"), exports);
|
|
24
|
+
__exportStar(require("./DuckDBPendingResult"), exports);
|
|
25
|
+
__exportStar(require("./DuckDBPreparedStatement"), exports);
|
|
26
|
+
__exportStar(require("./DuckDBResult"), exports);
|
|
27
|
+
__exportStar(require("./DuckDBType"), exports);
|
|
28
|
+
__exportStar(require("./DuckDBTypeId"), exports);
|
|
29
|
+
__exportStar(require("./DuckDBValue"), exports);
|
|
30
|
+
__exportStar(require("./DuckDBVector"), exports);
|
|
31
|
+
__exportStar(require("./enums"), exports);
|
|
32
|
+
__exportStar(require("./version"), exports);
|
package/lib/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function version(): string;
|
package/lib/version.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.version = version;
|
|
7
|
+
const node_bindings_1 = __importDefault(require("@duckdb/node-bindings"));
|
|
8
|
+
function version() {
|
|
9
|
+
return node_bindings_1.default.library_version();
|
|
10
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@duckdb/node-api",
|
|
3
|
+
"version": "1.1.2-alpha.1",
|
|
4
|
+
"main": "./lib/index.js",
|
|
5
|
+
"types": "./lib/index.d.ts",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@duckdb/node-bindings": "1.1.2-alpha.1"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/duckdb/duckdb-node-neo.git"
|
|
12
|
+
}
|
|
13
|
+
}
|