Commit 30f0416
Accept :memory: mode for credentials parameter in duckdb factory (#1297)
* Accept :memory: mode for credentials parameter in duckdb factory
* Check instance of native_value and add check in test for in-memory mode
* Add a separate test for in-memory mode when using duckdb
* Fix failing test, bind dataset_name to configuration
* Adjust test, take ownership when :memory: has been passed
* Revert changes
* Adjust documentation of duckdb
* Add a new exception for duckdb
* Adjust error message
* Remove backticks
* Fix typo
* Update docs
* Update duckdb docs, merge examples
* Remove the mention of :memory: from docstrings
* Adjust the message in exception
* Catch :memory: in DuckDbCredentials.on_resolve
* Update tests
* Rename exception
* Update docs
* Use Destination.from_reference in code snippet
* Add one more test for Destination.from_reference and update docs
* Format code and ignore mypy error
* Use standard way to initialize destination via factory
* Preserve environment
* Cleanup duckdb docs code snippets
* Adjust memo about :pipeline: connection string
* Show tables from in-memory schema
* Explicitly mention python script instead of pipeline
* Fix typo
* Reword the description of :pipeline: value
* Update docs/website/docs/dlt-ecosystem/destinations/duckdb.md
Co-authored-by: VioletM <[email protected]>
* Re-arrange text blocks
* Add example on how to use :pipeline: connection string
* Fix typo
* Adjust warning message
---------
Co-authored-by: VioletM <[email protected]>1 parent e329ab9 commit 30f0416
File tree
5 files changed
+108
-10
lines changed- dlt/destinations/impl/duckdb
- docs/website/docs/dlt-ecosystem/destinations
- tests/load/duckdb
5 files changed
+108
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
117 | 119 | | |
118 | 120 | | |
119 | 121 | | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
120 | 125 | | |
121 | 126 | | |
122 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
105 | | - | |
| 105 | + | |
| 106 | + | |
106 | 107 | | |
107 | 108 | | |
| 109 | + | |
108 | 110 | | |
109 | 111 | | |
110 | | - | |
| 112 | + | |
111 | 113 | | |
112 | | - | |
| 114 | + | |
113 | 115 | | |
114 | 116 | | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
115 | 138 | | |
116 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
117 | 144 | | |
118 | 145 | | |
119 | 146 | | |
120 | 147 | | |
121 | 148 | | |
122 | 149 | | |
| 150 | + | |
123 | 151 | | |
124 | 152 | | |
125 | | - | |
126 | | - | |
127 | | - | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
128 | 157 | | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
129 | 171 | | |
130 | 172 | | |
131 | 173 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | | - | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
59 | 98 | | |
60 | 99 | | |
61 | 100 | | |
| |||
257 | 296 | | |
258 | 297 | | |
259 | 298 | | |
| 299 | + | |
260 | 300 | | |
261 | 301 | | |
262 | 302 | | |
| |||
0 commit comments