Arcadic

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.

Install

Add {:arcadic, "~> 3.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.