Closed watsy0007 closed 1 year ago
Yes, pull requests are welcome!
Actually, I may have a fix soon!
@watsy0007 Were you able to successfully set up DuckDB via ADBC in the end?
@dlindenkreuz yes. as follows
references
Nice, thanks for the swift response. I found out that further keyword options are passed through to the native initializer, so I was able to specify the DB path like this:
defmodule MyApp.Application do
def start(_type, _args) do
children = [
{Adbc.Database,
driver: "./libduckdb.dylib", # relative to cwd
entrypoint: "duckdb_adbc_init",
path: "./.data/duck.db",
process_options: [name: MyApp.DuckDB]},
{Adbc.Connection, database: MyApp.DuckDB, process_options: [name: MyApp.DuckConn]},
# ...
In my workflow, I use python and
duckdb
quite often, I have been considering how to migrate to Elixir for a while, Recently duckdb officially support the ADBC API and provided examples.DuckDB ADBC - Zero-Copy data transfer via Arrow Database Connectivity ADBC API
The offical C++ example is as follow:
Currently, the project only supports a fixed drivers
sqlite postgresql flightsql snowflake
, Is it possible to add a driver for custom path?for example:
or