Arcadic
Arcadic is an Elixir client for ArcadeDB. Use it to run Cypher or SQL, manage transactions, and stream results from an Elixir application without a framework dependency.
- Bind query values as parameters and receive structured, redacted errors.
- Use HTTP by default, Bolt for Cypher cursors, or gRPC for cursors and bulk ingest.
- Group writes in transactions and roll back a transaction explicitly.
- Manage schema and indexes and query vector, full-text, and time-series data.
Install
Add {:arcadic, "~> 3.1"} to your Mix dependencies and run mix deps.get.
Query a database
With ArcadeDB listening on port 2480, set ARCADIC_DATABASE to an existing
database. Set ARCADIC_USERNAME and ARCADIC_PASSWORD to credentials
that can query it.
conn =
Arcadic.connect("http://localhost:2480", System.fetch_env!("ARCADIC_DATABASE"),
auth: {System.fetch_env!("ARCADIC_USERNAME"), System.fetch_env!("ARCADIC_PASSWORD")}
)
{:ok, rows} =
Arcadic.query(conn, "SELECT :value AS value", %{"value" => 42}, language: "sql")
Documentation
- Tutorials include Getting started, GraphRAG, Operations, and Time-series.
- Topics cover Connections and transports, Transactions and retries, Change delivery, and Time-series semantics.
- How-to guides show how to run statements, stream results, and run and recover migrations, load data, and search text and vectors.
- Reference is the generated API reference.
See Compatibility for Elixir, ArcadeDB, and dependency requirements.
License
MIT.