DuckDB Installation

Version

  • 0.2.0 (Latest Release)
  • GitHub master (Bleeding Edge)

Environment

  • Python
  • R
  • Java
  • C/C++
  • CLI

Package

  • Source
  • Binary

Platform

  • Windows
  • macOS
  • Linux

Installation

pip install duckdb==0.2.0

Usage Example

import duckdb
cursor = duckdb.connect()
print(cursor.execute('SELECT 42').fetchall())
pip install duckdb==0.2.0
install.packages("duckdb", repos=c("http://download.duckdb.org/alias/v0.2.0/rstats/", "http://cran.rstudio.com"))
<dependency>
 <groupId>org.duckdb</groupId>
 <artifactId>duckdb_jdbc</artifactId>
 <version>0.2.0</version>
</dependency>
coming soon
pip install duckdb --pre --upgrade
install.packages("duckdb", repos=c("http://download.duckdb.org/alias/master/rstats/", "http://cran.rstudio.com"))
coming soon
coming soon
import duckdb
cursor = duckdb.connect()
print(cursor.execute('SELECT 42').fetchall())
library("DBI")
con = dbConnect(duckdb::duckdb(), ":memory:")
dbWriteTable(con, "iris", iris)
dbGetQuery(con, 'SELECT "Species", MIN("Sepal.Width") FROM iris GROUP BY "Species"')
Class.forName("org.duckdb.DuckDBDriver");
Connection conn = DriverManager.getConnection("jdbc:duckdb:");
Statement stmt = conn.createStatement();
ResultSet rs = stmt.execute("SELECT 42");
DuckDB db(nullptr);
Connection con(db);
auto result = con.Query("SELECT 42");
result->Print();
./duckdb