CI Hex version HexDocs REUSE status MIT license

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, "~> 4.0"} 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

See Compatibility for Elixir, ArcadeDB, and dependency requirements.

License

MIT.