forked from duckdb/duckdb-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
377 lines (316 loc) · 15.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
---
layout: default
title: An in-process SQL OLAP database management system
subtitle: An In-Process Analytical Database
description: DuckDB is an in-process SQL OLAP database management system. Simple, feature-rich, fast & open source.
body_class: landing nowrap
---
<div class="dummy">
</div>
<section class="welcome">
<div class="flexwrap wrap">
<div class="duckdb">
<h1>DuckDB is a fast <nobr>in-process</nobr> analytical database</h1>
<p>DuckDB supports a feature-rich SQL dialect complemented with deep integrations into client APIs</p>
<a class="button transparent arrow-down dark" href="#quickinstall">Installation</a>
<a class="button yellow" href="/docs/">Documentation</a>
</div>
<div class="demo window">
<div>
<div class="topbar">
<ul class="lang">
<li data-language="sql" class="active">SQL</li>
<li data-language="python">Python</li>
<li data-language="r">R</li>
<li data-language="java">Java</li>
<li data-language="nodejs">Node.js</li>
</ul>
</div>
<div class="content haslines">
<div class="lines"></div>
<div class="code dark">
{% highlight sql %}
{% include landing-page/sql/aggregation.sql %}
{% endhighlight -%}
</div>
</div>
<div class="bottombar flexwrap">
<div class="select">
<select id="example-select">
<option value="sql-aggregation-query">Aggregation query</option>
<option value="sql-join-query">Join query</option>
<option value="sql-csv-reader">Read CSV files</option>
<option value="sql-parquet-reading-s3">Read Parquet files from S3</option>
<option value="sql-spatial-extension">Spatial extension</option>
</select>
</div>
<a class="button arrow-right livedemo" href="https://shell.duckdb.org/#queries=v0,%20%20-Create-table-from-Parquet-file%0ACREATE-TABLE-train_services-AS%0A----FROM-'s3%3A%2F%2Fduckdb%20blobs%2Ftrain_services.parquet'~,%20%20-Get-the-top%203-busiest-train-stations%0ASELECT-station_name%2C-count(*)-AS-num_services%0AFROM-train_services%0AGROUP-BY-ALL%0AORDER-BY-num_services-DESC%0ALIMIT-3~">Live demo</a>
</div>
</div>
</div>
</div>
</section>
<section class="whyduckdb">
<div class="wrap">
<h1>DuckDB at a glance</h1>
<div class="flexwrap">
<div class="featurebox">
<div class="icon simple"></div>
<h3>Simple</h3>
<p>DuckDB is easy to install and deploy. It has zero external dependencies and runs <nobr>in-process</nobr> in its host application or as a single binary.</p>
<a href="why_duckdb#simple" class="textbutton arrow-right">Read more</a>
</div>
<div class="featurebox">
<div class="icon portable"></div>
<h3>Portable</h3>
<p>DuckDB runs on Linux, macOS, Windows, and all popular hardware architectures. It has idiomatic client APIs for major programming languages.</p>
<a href="why_duckdb#portable" class="textbutton arrow-right">Read more</a>
</div>
<div class="featurebox">
<div class="icon featurerich"></div>
<h3>Feature-rich</h3>
<p>DuckDB offers a rich SQL dialect. It can read and write file formats such as CSV, Parquet, and JSON, to and from the local file system and remote endpoints such as S3 buckets.</p>
<a href="why_duckdb#feature-rich" class="textbutton arrow-right">Read more</a>
</div>
<div class="featurebox">
<div class="icon speed"></div>
<h3>Fast</h3>
<p>DuckDB runs analytical queries at blazing speed thanks to its columnar engine, which supports parallel execution and can process larger-than-memory workloads.</p>
<a href="why_duckdb#fast" class="textbutton arrow-right">Read more</a>
</div>
<div class="featurebox">
<div class="icon extensible"></div>
<h3>Extensible</h3>
<p>DuckDB is extensible by third-party features such as new data types, functions, file formats and new SQL syntax.</p>
<a href="why_duckdb#extensible" class="textbutton arrow-right">Read more</a>
</div>
<div class="featurebox">
<div class="icon free"></div>
<h3>Free</h3>
<p>DuckDB and its core extensions are <nobr>open-source</nobr> under the permissive MIT License.</p>
<a href="why_duckdb#free" class="textbutton arrow-right">Read more</a>
</div>
</div>
</div>
</section>
<section id="quickinstall">
<div class="flexwrap wrap">
<div class="intro">
<h1>Installation</h1>
<p>DuckDB is seamlessly integrated with major programming languages. It can be installed in less than 20 seconds on most platforms.</p>
<a href="/docs/installation/" class="white dark button">More installation options</a>
</div>
<div class="install">
<div class="window">
<div class="topbar environment">
<ul>
<li data-id="cli" class="active">Command line</li>
<li data-id="python">Python</li>
<li data-id="r">R</li>
<li data-id="java">Java</li>
<li data-id="nodejs">Node.js</li>
<li data-id="odbc">ODBC</li>
</ul>
</div>
<label class="onlymobile">
<select name="environment" class="environmentselect onlymobile">
<option value="cli">Command Line</option>
<option value="python">Python</option>
<option value="r">R</option>
<option value="java">Java</option>
<option value="nodejs">Node.js</option>
<option value="odbc">ODBC</option>
</select>
</label>
<div class="result content dark">
<pre><a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-windows-amd64.zip" target="_blank">https://github.com<wbr>/duckdb/<wbr>duckdb/<wbr>releases/<wbr>download/<wbr>v{{ site.currentduckdbversion }}/duckdb_cli-windows-amd64.zip</a></pre>
</div>
<div class="bottombar">
<p class="system">
<span>Latest release: DuckDB {{ site.currentduckdbversion }} | </span>
<span class="systemdetected">System detected: </span>
</p>
</div>
</div>
</section>
<section class="blog">
<div class="wrap">
<h1>Blog</h1>
<div class="newstileswrap">
{% for post in site.posts limit:4 %}
{% capture year %}{{post.date | date: "%Y"}}{% endcapture %}
{% capture month %}{{post.date | date: "%B"}}{% endcapture %}
{% assign random_number = forloop.index | modulo: 5 %}
<div class="postpreview" data-year="{{year}}" data-month="{{month}}">
{% if post.thumb %}
<div class="postimg custom" style="background-image: url('{{ post.thumb }}');">
{% else %}
<div class="postimg bg_{{ random_number }}">
{% endif %}
<a href="{{ post.url }}" class="blocklink"></a>
</div>
<div class="date">{{ post.date | date: "%Y-%m-%d" }}</div>
<h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
</div>
{% endfor %}
</div>
<a href="{{ site.url }}{{ site.baseurl }}/news" class="button transparent arrow-right">Archive <span></span></a>
</div>
</section>
<section class="hidden">
<div class="dropdown hero-demo">
<!-- example list for SQL -->
<div data-language="sql">
<option value="sql-aggregation-query">Aggregation query</option>
<option value="sql-join-query">Join query</option>
<option value="sql-csv-reader">Read CSV files</option>
<option value="sql-parquet-reading-s3">Read Parquet files from S3</option>
<option value="sql-spatial-extension">Spatial extension</option>
</div>
<!-- example list for Python -->
<div data-language="python">
<option value="python-sql-query">SQL query</option>
<option value="python-pandas-integration">Pandas integration</option>
<option value="python-udf">Custom UDFs</option>
</div>
<!-- specific example list for R -->
<div data-language="r">
<option value="r-sql-query">SQL query</option>
<option value="r-dplyr-integration">dplyr integration</option>
</div>
<!-- specific example list for Java -->
<div data-language="java">
<option value="java-sql-query">SQL query</option>
<option value="java-appender">Appender</option>
</div>
<!-- specific example list for Node.js -->
<div data-language="nodejs">
<option value="nodejs-sql-query">SQL Query</option>
<option value="nodejs-web-service-integration">Web Service Integration</option>
</div>
</div>
<div class="examples hero-demo">
<!-- ------------------- SQL ------------------- -->
<div data-language="sql" data-example="sql-aggregation-query" data-buttontxt="Live demo" data-buttonurl="https://shell.duckdb.org/#queries=v0,%20%20-Create-table-from-Parquet-file%0ACREATE-TABLE-train_services-AS%0A----FROM-'s3%3A%2F%2Fduckdb%20blobs%2Ftrain_services.parquet'~,%20%20-Get-the-top%203-busiest-train-stations%0ASELECT-station_name%2C-count(*)-AS-num_services%0AFROM-train_services%0AGROUP-BY-ALL%0AORDER-BY-num_services-DESC%0ALIMIT-3~">
{% highlight sql %}
{% include landing-page/sql/aggregation.sql %}
{% endhighlight %}
</div>
<div data-language="sql" data-example="sql-csv-reader" data-buttontxt="Live demo" data-buttonurl="https://shell.duckdb.org/#queries=v0,%20%20-Load-CSV-file%2C-auto%20detecting-column-name-and-types%0ACREATE-TABLE-stations-AS%0A----FROM-'https%3A%2F%2Fblobs.duckdb.org%2Fstations.csv'~,%20%20-Sample-10-stations-using-replacement-sample%0AFROM-stations-USING-SAMPLE-10~,%20%20-Compute-some-property-on-the-stations-table%0ASUMMARIZE-stations~">
{% highlight sql %}
{% include landing-page/sql/csv-loader.sql %}
{% endhighlight %}
</div>
<div data-language="sql" data-example="sql-parquet-reading-s3" data-buttontxt="Live demo" data-buttonurl="https://shell.duckdb.org/#queries=v0,%20%20-Directly-query-Parquet-file-in-S3%0ASELECT-station_name%2C-count(*)-AS-num_services%0AFROM-'s3%3A%2F%2Fduckdb%20blobs%2Ftrain_services.parquet'%0AGROUP-BY-ALL%0AORDER-BY-num_services-DESC%0ALIMIT-10~">
{% highlight sql %}
{% include landing-page/sql/s3-parquet.sql %}
{% endhighlight %}
</div>
<div data-language="sql" data-example="sql-join-query" data-buttontxt="Live demo" data-buttonurl="https://shell.duckdb.org/#queries=v0,CREATE-TABLE-stations-AS%0A----FROM-'s3%3A%2F%2Fduckdb%20blobs%2Fstations.parquet'~,CREATE-TABLE-tariffs-AS%0A----FROM-'s3%3A%2F%2Fduckdb%20blobs%2Ftariffs.parquet'~,%20%20-Find-the-top%205-most-expensive-domestice-train-routes%0ASELECT-s1.name_short%2C-s2.name_short%2C-tariffs.price%0AFROM-tariffs%0AJOIN-stations-s1-ON-tariffs.station1-%3D-s1.code%0AJOIN-stations-s2-ON-tariffs.station2-%3D-s2.code%0AWHERE-s1.country-%3D-s2.country%0A--AND-s1.code-%3C-s2.code%0AORDER-BY-price-DESC%0ALIMIT-5~">
{% highlight sql %}
{% include landing-page/sql/join.sql %}
{% endhighlight %}
</div>
<div data-language="sql" data-example="sql-spatial-extension" data-buttontxt="Live demo" data-buttonurl="https://shell.duckdb.org/#queries=v0,%20%20-Spatial-extension-for-geospatial-support%0AINSTALL-spatial~%0ALOAD-spatial~,CREATE-TABLE-stations-AS%0A----FROM-'s3%3A%2F%2Fduckdb%20blobs%2Fstations.parquet'~,%20%20-What-are-the-top%203-closest-Intercity-stations%0A%20%20-using-aerial-distance%3F%0ASELECT%0A----s1.name_long-AS-station1%2C%0A----s2.name_long-AS-station2%2C%0A----ST_Distance(%0A--------ST_Point(s1.geo_lng%2C-s1.geo_lat)%2C%0A--------ST_Point(s2.geo_lng%2C-s2.geo_lat)%0A----)-*-111139-AS-distance%0AFROM-stations-s1%2C-stations-s2%0AWHERE-s1.type-LIKE-'%25Intercity%25'%0A--AND-s2.type-LIKE-'%25Intercity%25'%0A--AND-s1.id-%3C-s2.id%0AORDER-BY-distance-ASC%0ALIMIT-3~">
{% highlight sql %}
{% include landing-page/sql/spatial-extension.sql %}
{% endhighlight %}
</div>
<!-- ------------------- Python -------------------- -->
<div data-language="python" data-example="python-sql-query" data-buttontxt="Python Docs" data-buttonurl="/docs/api/python/overview">
{% highlight python %}
{% include landing-page/python/sql-query.py %}
{% endhighlight %}
</div>
<div data-language="python" data-example="python-pandas-integration" data-buttontxt="Blog Post" data-buttonurl="/2021/05/14/sql-on-pandas">
{% highlight python %}
{% include landing-page/python/pandas-integration.py %}
{% endhighlight %}
</div>
<div data-language="python" data-example="python-udf" data-buttontxt="Blog Post" data-buttonurl="/2023/07/07/python-udf">
{% highlight python %}
{% include landing-page/python/udf.py %}
{% endhighlight %}
</div>
<!-- ------------------- R -------------------- -->
<div data-language="r" data-example="r-sql-query" data-buttontxt="R documentation" data-buttonurl="/docs/api/r">
{% highlight r %}
{% include landing-page/r/sql-query.r %}
{% endhighlight %}
</div>
<div data-language="r" data-example="r-dplyr-integration" data-buttontxt="R documentation" data-buttonurl="/docs/api/r">
{% highlight r %}
{% include landing-page/r/dplyr-integration.r %}
{% endhighlight %}
</div>
<!-- ------------------- Java -------------------- -->
<div data-language="java" data-example="java-sql-query" data-buttontxt="DuckDB JDBC Docs" data-buttonurl="/docs/api/java">
{% highlight java %}
{% include landing-page/java/sql-query.java %}
{% endhighlight %}
</div>
<div data-language="java" data-example="java-appender" data-buttontxt="DuckDB JDBC Docs" data-buttonurl="/docs/api/java">
{% highlight java %}
{% include landing-page/java/appender.java %}
{% endhighlight %}
</div>
<!-- ------------------- Node.js -------------------- -->
<div data-language="nodejs" data-example="nodejs-sql-query" data-buttontxt="Node.js Docs" data-buttonurl="/docs/api/nodejs/overview">
{% highlight javascript %}
{% include landing-page/nodejs/sql-query.js %}
{% endhighlight %}
</div>
<div data-language="nodejs" data-example="nodejs-web-service-integration" data-buttontxt="Node.js Docs" data-buttonurl="/docs/api/nodejs/overview">
{% highlight javascript %}
{% include landing-page/nodejs/web-service-integration.js %}
{% endhighlight %}
</div>
</div>
<div class="quick-installation">
<div data-install="python">
{% highlight console %}
pip install duckdb=={{ site.currentduckdbversion }}
{% endhighlight %}
</div>
<div data-install="r">
{% highlight r %}
install.packages("duckdb")
{% endhighlight %}
</div>
<div data-install="java">
{% highlight xml %}
<dependency>
<groupId>org.duckdb</groupId>
<artifactId>duckdb_jdbc</artifactId>
<version>{{ site.currentduckdbversion }}</version>
</dependency>
{% endhighlight %}<br/>
<a href="https://search.maven.org/artifact/org.duckdb/duckdb_jdbc/{{ site.currentduckdbversion }}/jar">More Options</a>
</div>
<div data-install="nodejs">
{% highlight console %}
npm install duckdb
{% endhighlight %}
</div>
<div data-install="cli macos">
{% highlight console %}
brew install duckdb
{% endhighlight %}
</div>
<div data-install="cli linux">
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-linux-amd64.zip" target="_blank">https://github.com<wbr>/duckdb/<wbr>duckdb/<wbr>releases/<wbr>download/<wbr>v{{ site.currentduckdbversion }}/duckdb_cli-linux-amd64.zip</a>
</div>
<div data-install="cli win">
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-windows-amd64.zip" target="_blank">https://github.com<wbr>/duckdb/<wbr>duckdb/<wbr>releases/<wbr>download/<wbr>v{{ site.currentduckdbversion }}/duckdb_cli-windows-amd64.zip</a>
</div>
<div data-install="odbc macos">
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_odbc-osx-universal.zip">duckdb_odbc-osx-universal.zip</a>
</div>
<div data-install="odbc linux">
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_odbc-linux-amd64.zip" target="_blank">https://github.com/<wbr>duckdb/<wbr>duckdb/<wbr>releases/<wbr>download/<wbr>v{{ site.currentduckdbversion }}/duckdb_odbc-linux-amd64.zip</a>
</div>
<div data-install="odbc win">
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_odbc-windows-amd64.zip" target="_blank">https://github.com/<wbr>duckdb/<wbr>duckdb/<wbr>releases/<wbr>download/<wbr>v{{ site.currentduckdbversion }}/duckdb_odbc-windows-amd64.zip</a>
</div>
</div>
</section>