File tree 3 files changed +24
-6
lines changed
packages/extension-driver-duckdb
3 files changed +24
-6
lines changed Original file line number Diff line number Diff line change 1
1
# extension-driver-duckdb
2
2
3
- This library was generated with [ Nx ] ( https://nx.dev ) .
3
+ [ Duckdb ] ( https://duckdb.org/ ) driver for Vulcan SQL
4
4
5
- ## Building
5
+ ## Install
6
6
7
- Run ` nx build extension-driver-duckdb ` to build the library.
7
+ 1 . Install package
8
8
9
- ## Running unit tests
9
+ ``` sql
10
+ npm i @vulcan- sql/ extension- driver- duckdb
11
+ ```
10
12
11
- Run ` nx test extension-driver-duckdb ` to execute the unit tests via [ Jest] ( https://jestjs.io ) .
13
+ 2 . Update ` vulcan.yaml `
14
+
15
+ ``` yaml
16
+ extensions :
17
+ duckdb : ' @vulcan-sql/extension-driver-duckdb'
18
+
19
+ duckdb :
20
+ # Optional: Path to your persistent DB, if this value is not set, we use in-memory database. (default: ":memory:")
21
+ persistent-path : ' path-to-a-folder'
22
+ # Optional: Whether log query requests (default: false)
23
+ log-queries : false
24
+ # Optional: Whether log query requests' parameters, please be aware that query parameters might contain sensitive data (default: false)
25
+ log-parameters : false
26
+ ` ` `
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @vulcan-sql/extension-driver-duckdb" ,
3
- "description" : " duckbe driver for Vulcan SQL" ,
3
+ "description" : " duckdb driver for Vulcan SQL" ,
4
4
"version" : " 0.1.0-alpha.1" ,
5
5
"type" : " commonjs" ,
6
6
"publishConfig" : {
Original file line number Diff line number Diff line change @@ -29,6 +29,9 @@ export interface DuckDBOptions {
29
29
'log-parameters' ?: boolean ;
30
30
}
31
31
32
+ /// NOTICE: We're using the dev version of duckdb nodejs client for stream data support
33
+ /// It might contain some issues.
34
+
32
35
@VulcanExtensionId ( 'duckdb' )
33
36
export class DuckDBDataSource extends DataSource < DuckDBOptions > {
34
37
private db : duckdb . Database ;
You can’t perform that action at this time.
0 commit comments