Skip to content

Commit f6fde30

Browse files
Deploying to main from @ centralmind/gateway@cce9a8b 🚀
1 parent fff78dc commit f6fde30

12 files changed

+11
-4
lines changed

connectors/duckdb/index.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,18 @@ <h2 id="config-schema">Config Schema</h2>
102102

103103

104104

105-
<table><thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>string</td><td>yes</td><td>constant: <code dir="auto">duckdb</code></td></tr><tr><td>hosts</td><td>string[]</td><td>no*</td><td>List of paths (only first path is used)</td></tr><tr><td>database</td><td>string</td><td>no*</td><td>Database file name, will be opened in readonly mode</td></tr></tbody></table>
105+
106+
107+
108+
109+
110+
111+
<table><thead><tr><th>Field</th><th>Type</th><th>Required</th><th>Description</th></tr></thead><tbody><tr><td>type</td><td>string</td><td>yes</td><td>constant: <code dir="auto">duckdb</code></td></tr><tr><td>hosts</td><td>string[]</td><td>no*</td><td>List of paths (only first path is used)</td></tr><tr><td>database</td><td>string</td><td>no*</td><td>Database file name, will be opened in readonly mode</td></tr><tr><td>init_sql</td><td>string</td><td>no</td><td>SQL commands to execute on connection initialization (e.g. installing extensions, attaching databases)</td></tr></tbody></table>
106112
<h2 id="config-examples">Config Examples</h2>
107113
<ol>
108-
<li>Using directory path in hosts:</li>
114+
<li>Using directory path in hosts with initialization SQL:</li>
109115
</ol>
110-
<div class="expressive-code"><link rel="stylesheet" href="/app_assets/ec.j8ofn.css"><script type="module" src="/app_assets/ec.8zarh.js"></script><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="yaml"><code><div class="ec-line"><div class="code"><span style="--0:#7FDBCA;--1:#111111">connection</span><span style="--0:#D6DEEB;--1:#403F53">:</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#7FDBCA;--1:#111111">type</span><span style="--0:#D6DEEB;--1:#403F53">: </span><span style="--0:#ECC48D;--1:#3C63B3">duckdb</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#7FDBCA;--1:#111111">hosts</span><span style="--0:#D6DEEB;--1:#403F53">:</span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#D6DEEB;--1:#403F53"> </span></span><span style="--0:#D6DEEB;--1:#403F53">- </span><span style="--0:#ECC48D;--1:#3C63B3">./data</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#809191;--1:#616671"># relative path to directory</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#7FDBCA;--1:#111111">database</span><span style="--0:#D6DEEB;--1:#403F53">: </span><span style="--0:#ECC48D;--1:#3C63B3">analytics.duckdb</span></div></div></code></pre><div class="copy"><button title="Copy to clipboard" data-copied="Copied!" data-code="connection: type: duckdb hosts: - ./data # relative path to directory database: analytics.duckdb"><div></div></button></div></figure></div>
116+
<div class="expressive-code"><link rel="stylesheet" href="/app_assets/ec.j8ofn.css"><script type="module" src="/app_assets/ec.8zarh.js"></script><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="yaml"><code><div class="ec-line"><div class="code"><span style="--0:#7FDBCA;--1:#111111">connection</span><span style="--0:#D6DEEB;--1:#403F53">:</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#7FDBCA;--1:#111111">type</span><span style="--0:#D6DEEB;--1:#403F53">: </span><span style="--0:#ECC48D;--1:#3C63B3">duckdb</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#7FDBCA;--1:#111111">hosts</span><span style="--0:#D6DEEB;--1:#403F53">:</span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#D6DEEB;--1:#403F53"> </span></span><span style="--0:#D6DEEB;--1:#403F53">- </span><span style="--0:#ECC48D;--1:#3C63B3">./data</span><span style="--0:#D6DEEB;--1:#403F53"> </span><span style="--0:#809191;--1:#616671"># relative path to directory</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#7FDBCA;--1:#111111">database</span><span style="--0:#D6DEEB;--1:#403F53">: </span><span style="--0:#ECC48D;--1:#3C63B3">analytics.duckdb</span></div></div><div class="ec-line"><div class="code"><span class="indent"> </span><span style="--0:#7FDBCA;--1:#111111">init_sql</span><span style="--0:#D6DEEB;--1:#403F53">: </span><span style="--0:#C792EA;--1:#8D46B4">|</span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#ECC48D;--1:#3C63B3"> </span></span><span style="--0:#ECC48D;--1:#3C63B3">FORCE INSTALL aws FROM core_nightly;</span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#ECC48D;--1:#3C63B3"> </span></span><span style="--0:#ECC48D;--1:#3C63B3">FORCE INSTALL httpfs FROM core_nightly;</span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#ECC48D;--1:#3C63B3"> </span></span><span style="--0:#ECC48D;--1:#3C63B3">FORCE INSTALL iceberg FROM core_nightly;</span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#ECC48D;--1:#3C63B3"> </span></span><span style="--0:#ECC48D;--1:#3C63B3">CREATE TABLE weather AS</span></div></div><div class="ec-line"><div class="code"><span class="indent"><span style="--0:#ECC48D;--1:#3C63B3"> </span></span><span style="--0:#ECC48D;--1:#3C63B3">SELECT * FROM read_csv_auto('https://raw.githubusercontent.com/duckdb/duckdb-web/main/data/weather.csv');</span></div></div></code></pre><div class="copy"><button title="Copy to clipboard" data-copied="Copied!" data-code="connection: type: duckdb hosts: - ./data # relative path to directory database: analytics.duckdb init_sql: | FORCE INSTALL aws FROM core_nightly; FORCE INSTALL httpfs FROM core_nightly; FORCE INSTALL iceberg FROM core_nightly; CREATE TABLE weather AS SELECT * FROM read_csv_auto(&#x27;https://raw.githubusercontent.com/duckdb/duckdb-web/main/data/weather.csv&#x27;);"><div></div></button></div></figure></div>
111117
<ol start="2">
112118
<li>Using full file path in hosts:</li>
113119
</ol>
@@ -149,4 +155,5 @@ <h2 id="notes">Notes</h2>
149155
<li>Both forward slashes <code dir="auto">/</code> and backslashes <code dir="auto">\</code> are supported for Windows paths</li>
150156
<li>Relative paths are resolved relative to the current working directory</li>
151157
<li>Database works only in Read-only mode</li>
158+
<li>The <code dir="auto">init_sql</code> field allows executing multiple SQL commands on connection initialization, separated by semicolons</li>
152159
</ul> </div> <footer class="sl-flex astro-3yyafb3n"> <div class="meta sl-flex astro-3yyafb3n"> </div> <div class="pagination-links astro-u2l5gyhi" dir="ltr"> <a href="/connectors/clickhouse/" rel="prev" class="astro-u2l5gyhi"> <svg aria-hidden="true" class="astro-u2l5gyhi astro-c6vsoqas" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17 11H9.41l3.3-3.29a1.004 1.004 0 1 0-1.42-1.42l-5 5a1 1 0 0 0-.21.33 1 1 0 0 0 0 .76 1 1 0 0 0 .21.33l5 5a1.002 1.002 0 0 0 1.639-.325 1 1 0 0 0-.219-1.095L9.41 13H17a1 1 0 0 0 0-2Z"/></svg> <span class="astro-u2l5gyhi"> Previous <br class="astro-u2l5gyhi"> <span class="link-title astro-u2l5gyhi">Clickhouse</span> </span> </a> <a href="/connectors/elasticsearch/" rel="next" class="astro-u2l5gyhi"> <svg aria-hidden="true" class="astro-u2l5gyhi astro-c6vsoqas" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg> <span class="astro-u2l5gyhi"> Next <br class="astro-u2l5gyhi"> <span class="link-title astro-u2l5gyhi">Elasticsearch</span> </span> </a> </div> </footer> </div> </div> </main> </div> </div> </div> </div> </body></html>
1.29 KB
Binary file not shown.
-1.05 KB
Binary file not shown.

pagefind/index/en_24a6743.pf_index

34.4 KB
Binary file not shown.

pagefind/index/en_7fc17cd.pf_index

-34.5 KB
Binary file not shown.

pagefind/index/en_8a44632.pf_index

-34.3 KB
Binary file not shown.

pagefind/index/en_8a8d265.pf_index

34.5 KB
Binary file not shown.

pagefind/index/en_a05148e.pf_index

3.93 KB
Binary file not shown.

pagefind/index/en_d017be0.pf_index

-3.71 KB
Binary file not shown.

pagefind/pagefind-entry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"version":"1.2.0","languages":{"en":{"hash":"en_ac211cf7b5","wasm":"en","page_count":53}}}
1+
{"version":"1.2.0","languages":{"en":{"hash":"en_5bf15b1c71","wasm":"en","page_count":53}}}

0 commit comments

Comments
 (0)