@malloydata/db-duckdb 0.0.393 → 0.0.395
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/dist/duckdb_common.js +1 -12
- package/package.json +2 -2
package/dist/duckdb_common.js
CHANGED
|
@@ -32,14 +32,6 @@ const unquoteName = (name) => {
|
|
|
32
32
|
}
|
|
33
33
|
return name;
|
|
34
34
|
};
|
|
35
|
-
/**
|
|
36
|
-
* A bare or schema-qualified SQL identifier — `name` or `schema.name`. Anything
|
|
37
|
-
* else (file paths with dashes, dots-as-extensions, slashes, URL schemes,
|
|
38
|
-
* globs) is treated as a file-path string by `fetchTableSchema` and wrapped
|
|
39
|
-
* in single quotes so DuckDB sees it as a string literal rather than parsing
|
|
40
|
-
* it as a SQL identifier.
|
|
41
|
-
*/
|
|
42
|
-
const SQL_IDENTIFIER_CHAIN = /^[A-Za-z_][A-Za-z0-9_]*(\.[A-Za-z_][A-Za-z0-9_]*)*$/;
|
|
43
35
|
class DuckDBCommon extends connection_1.BaseConnection {
|
|
44
36
|
get dialectName() {
|
|
45
37
|
return this.dialect.name;
|
|
@@ -131,10 +123,7 @@ class DuckDBCommon extends connection_1.BaseConnection {
|
|
|
131
123
|
connection: this.name,
|
|
132
124
|
fields: [],
|
|
133
125
|
};
|
|
134
|
-
const
|
|
135
|
-
? tablePath
|
|
136
|
-
: `'${tablePath}'`;
|
|
137
|
-
const infoQuery = `DESCRIBE SELECT * FROM ${quotedTablePath}`;
|
|
126
|
+
const infoQuery = `DESCRIBE SELECT * FROM ${tablePath}`;
|
|
138
127
|
await this.schemaFromQuery(infoQuery, structDef);
|
|
139
128
|
return structDef;
|
|
140
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@malloydata/db-duckdb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.395",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"dependencies": {
|
|
62
62
|
"@duckdb/duckdb-wasm": "1.33.1-dev13.0",
|
|
63
63
|
"@duckdb/node-api": "1.4.4-r.1",
|
|
64
|
-
"@malloydata/malloy": "0.0.
|
|
64
|
+
"@malloydata/malloy": "0.0.395",
|
|
65
65
|
"@motherduck/wasm-client": "^0.6.6",
|
|
66
66
|
"apache-arrow": "^17.0.0",
|
|
67
67
|
"web-worker": "^1.3.0"
|