forked from duckdb/duckdb-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix dead external links as well, and unify installation pages
- Loading branch information
Showing
14 changed files
with
291 additions
and
2,058 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,263 @@ | ||
|
||
<div class="yourselection"> | ||
|
||
<div class="version select"> | ||
<h3>Version</h3> | ||
<ul class="version"> | ||
<li class="selected" data-id=".latest"> | ||
<div> {{ site.currentduckdbversion }} <span class="versioninfo">(Latest Release)</span></div> | ||
</li> | ||
<li data-id=".master"> | ||
<div>GitHub master <span class="versioninfo">(Bleeding Edge)</span></div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="evironment select"> | ||
<h3>Environment</h3> | ||
<ul class="environment"> | ||
<li class="selected" data-id=".python">Python</li> | ||
<li data-id=".r">R</li> | ||
<li data-id=".java">Java</li> | ||
<li data-id=".js">node.js</li> | ||
<li data-id=".cplusplus">C/C++</li> | ||
<li data-id=".cli">CLI</li> | ||
<li data-id=".odbc">ODBC</li> | ||
</ul> | ||
</div> | ||
|
||
|
||
<div class="installer select inactive"> | ||
<h3>Package</h3> | ||
<ul class="pack"> | ||
<li data-id=".source">Source</li> | ||
<li data-id=".binary">Binary</li> | ||
</ul> | ||
</div> | ||
|
||
<div class="platform select inactive"> | ||
<h3>Platform</h3> | ||
<ul class="platform"> | ||
<li data-id=".win">Windows</li> | ||
<li data-id=".macos">macOS</li> | ||
<li data-id=".linux">Linux</li> | ||
</ul> | ||
</div> | ||
|
||
|
||
<div class="installartion output"> | ||
<h3>Installation</h3> | ||
<div class="result" id="resultselection"> | ||
{% highlight bash %}pip install duckdb=={{ site.currentduckdbversion }}{% endhighlight %} | ||
</div> | ||
|
||
|
||
</div> | ||
|
||
<div class="example output"> | ||
<h3>Usage Example</h3> | ||
<div class="result"> | ||
{% highlight python %} | ||
import duckdb | ||
cursor = duckdb.connect() | ||
print(cursor.execute('SELECT 42').fetchall()){% endhighlight %} | ||
</div> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
<div class="possibleresults"> | ||
|
||
<!-- Empty Results --> | ||
<div class="latest master cplusplus"></div> | ||
<div class="latest master cli"></div> | ||
<div class="latest master odbc"></div> | ||
<div class="latest master cli binary"></div> | ||
<div class="master odbc"></div> | ||
<!-- End Empty Results --> | ||
|
||
|
||
<div class="latest python"> | ||
{% highlight bash %}pip install duckdb=={{ site.currentduckdbversion }}{% endhighlight %} | ||
</div> | ||
|
||
<div class="latest r"> | ||
{% highlight bash %}install.packages("duckdb"){% endhighlight %} | ||
</div> | ||
|
||
<div class="latest java"> | ||
{% highlight xml %} | ||
<dependency> | ||
<groupId>org.duckdb</groupId> | ||
<artifactId>duckdb_jdbc</artifactId> | ||
<version>{{ site.currentjavaversion }}</version> | ||
</dependency>{% endhighlight %} | ||
</div> | ||
|
||
<div class="latest js"> | ||
{% highlight bash %}npm install duckdb{% endhighlight %} | ||
</div> | ||
|
||
<div class="latest cplusplus source"> | ||
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-src.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-src.zip</a> | ||
</div> | ||
|
||
<div class="latest cli source"> | ||
coming soon | ||
</div> | ||
|
||
<div class="latest odbc source"> | ||
</div> | ||
|
||
<div class="latest cplusplus binary macos"> | ||
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-osx-universal.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-osx-universal.zip</a> | ||
</div> | ||
|
||
<div class="latest cplusplus binary linux"> | ||
Linux 64-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-linux-amd64.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-linux-amd64.zip</a><br/><br/> | ||
Linux 32-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-linux-i386.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-linux-i386.zip</a><br/><br/> | ||
Linux Raspberry Pi: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-linux-rpi.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-linux-rpi.zip</a> | ||
</div> | ||
|
||
<div class="latest cplusplus binary win"> | ||
Win 64-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-windows-amd64.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-windows-amd64.zip</a><br/><br/> | ||
Win 32-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-windows-i386.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/libduckdb-windows-i386.zip</a> | ||
</div> | ||
|
||
<div class="latest cli binary macos"> | ||
<a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-osx-universal.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-osx-universal.zip</a> | ||
</div> | ||
|
||
<div class="latest cli binary linux"> | ||
Linux 64-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-linux-amd64.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-linux-amd64.zip</a><br/><br/> | ||
Linux 32-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-linux-i386.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-linux-i386.zip</a><br/><br/> | ||
Linux Raspberry Pi: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-linux-rpi.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-linux-rpi.zip</a> | ||
</div> | ||
|
||
<div class="latest cli binary win"> | ||
Win 64-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-windows-amd64.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-windows-amd64.zip</a><br/><br/> | ||
Win 32-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-windows-i386.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_cli-windows-i386.zip</a> | ||
</div> | ||
|
||
<div class="latest odbc binary linux"> | ||
Linux 64-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_odbc-linux-amd64.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_odbc-linux-amd64.zip</a><br/><br/> | ||
{% highlight bash %}sudo apt-get install unixodbc unixodbc-dev{% endhighlight %} | ||
{% highlight bash %}./unixodbc_setup.sh --help {% endhighlight %} | ||
</div> | ||
|
||
<div class="latest odbc binary macos"> | ||
</div> | ||
|
||
<div class="latest odbc binary win"> | ||
Win 64-bit: <a href="https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_odbc-windows-amd64.zip" target="_blank">https://github.com/duckdb/duckdb/releases/download/v{{ site.currentduckdbversion }}/duckdb_odbc-windows-amd64.zip</a><br/><br/> | ||
./odbc_install.exe <span style="opacity: 0.5;"><font color="black">(double-click)</font> | ||
</div> | ||
|
||
<div class="master python"> | ||
{% highlight bash %}pip install duckdb --pre --upgrade{% endhighlight %} | ||
</div> | ||
|
||
<div class="master r"> | ||
</div> | ||
|
||
<div class="master java"> | ||
<p>MacOS Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3AOSX" target="_blank">the "OSX" CI runs</a></p> | ||
|
||
<p>Linux Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3ALinuxRelease" target="_blank">the "LinuxRelease" CI runs</a></p> | ||
|
||
<p>Windows Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3AWindows" target="_blank">the "Windows" CI runs</a></p> | ||
</div> | ||
|
||
|
||
<div class="master js"> | ||
{% highlight bash %}npm install duckdb@next{% endhighlight %} | ||
</div> | ||
|
||
|
||
<div class="master cplusplus source"> | ||
<a href="https://github.com/duckdb/duckdb" target="_blank">https://github.com/duckdb/duckdb</a> | ||
</div> | ||
|
||
<div class="master odbc"> | ||
<p>MacOS Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3AOSX" target="_blank">the "OSX" CI runs</a></p> | ||
|
||
<p>Linux Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3ALinuxRelease" target="_blank">the "LinuxRelease" CI runs</a></p> | ||
|
||
<p>Windows Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3AWindows" target="_blank">the "Windows" CI runs</a></p> | ||
</div> | ||
|
||
<div class="master cli binary macos"> | ||
MacOS Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3AOSX" target="_blank">the "OSX" CI runs</a> | ||
</div> | ||
|
||
<div class="master cli binary linux"> | ||
Linux Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3ALinuxRelease" target="_blank">the "LinuxRelease" CI runs</a> | ||
</div> | ||
|
||
<div class="master cli binary win"> | ||
Windows Build Artifacts are available from <a href="https://github.com/duckdb/duckdb/actions?query=branch%3Amaster+event%3Apush+workflow%3AWindows" target="_blank">the "Windows" CI runs</a> | ||
</div> | ||
|
||
|
||
|
||
<div class="example python"> | ||
{% highlight python %} | ||
import duckdb | ||
cursor = duckdb.connect() | ||
print(cursor.execute('SELECT 42').fetchall()){% endhighlight %} | ||
</div> | ||
|
||
<div class="example r"> | ||
{% highlight R %} | ||
library("DBI") | ||
con = dbConnect(duckdb::duckdb(), ":memory:") | ||
dbWriteTable(con, "iris", iris) | ||
dbGetQuery(con, 'SELECT "Species", MIN("Sepal.Width") FROM iris GROUP BY "Species"'){% endhighlight %} | ||
</div> | ||
|
||
<div class="example java"> | ||
{% highlight java %} | ||
Class.forName("org.duckdb.DuckDBDriver"); | ||
Connection conn = DriverManager.getConnection("jdbc:duckdb:"); | ||
Statement stmt = conn.createStatement(); | ||
ResultSet rs = stmt.executeQuery("SELECT 42");{% endhighlight %} | ||
</div> | ||
|
||
<div class="example js"> | ||
{% highlight javascript %} | ||
var duckdb = require('duckdb'); | ||
var db = new duckdb.Database(':memory:'); // or a file name for a persistent DB | ||
db.all('SELECT 42 AS fortytwo', function(err, res) { | ||
if (err) { | ||
throw err; | ||
} | ||
console.log(res[0].fortytwo) | ||
});{% endhighlight %} | ||
</div> | ||
|
||
<div class="example cplusplus"> | ||
{% highlight cpp %} | ||
DuckDB db(nullptr); | ||
Connection con(db); | ||
auto result = con.Query("SELECT 42"); | ||
result->Print();{% endhighlight %} | ||
</div> | ||
|
||
<div class="example cli"> | ||
{% highlight bash %} | ||
./duckdb{% endhighlight %} | ||
</div> | ||
|
||
<div class="example odbc"> | ||
</div> | ||
|
||
</div> | ||
|
||
<!-- | ||
<h1>Embedding</h1> | ||
<p> As DuckDB is an embedded database, there is no database server to launch or client to connect to a running server. However, the database server can be embedded directly into an application using the C or C++ bindings. The main build process creates the shared library build/release/src/libduckdb.[so|dylib|dll] that can be linked against. A static library is built as well. | ||
For examples on how to embed DuckDB into your application, see the examples folder in the repository.</p> | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.