API Reference Arcadic v#4.0.1

Copy Markdown View Source

Modules

Runs queries, writes, and transactions against ArcadeDB from Elixir. HTTP is the default transport. Bolt and gRPC are optional.

Backup and restore over ArcadeDB. backup/2 runs BACKUP DATABASE on conn.database (optional :to '<url>' single-quoted target); list/1 runs list backups <db>; restore/3 runs restore database <name> <url>. Tenant-blind.

Bulk-creates vertices and edges already held by the client. HTTP uses ArcadeDB's NDJSON batch endpoint. gRPC uses its GraphBatchLoad stream.

Live change-events client for ArcadeDB's /ws WebSocket feed — arcadic's one caller-supervised process.

A single change-feed delivery from Arcadic.Changes.

Connection handle for ArcadeDB — pure data, no process.

A server-returned ArcadeDB error, normalized to a typed reason.

Server-side database export over ArcadeDB's EXPORT DATABASE file://<name> command (symmetric to Arcadic.Import). The target is a bare <name> written to the server's configured exports directory — a path/traversal character is rejected value-free (ArcadeDB itself rejects a directory in the target: "Export file cannot contain path change"). with: settings (e.g. format: "jsonl", overwrite: true) reuse Arcadic.Import's no-parens grammar: names Arcadic.Identifier-validated, values number/boolean/string (string values charset-allowlisted, injection-inert). Tenant-blind; rejected inputs are omitted from diagnostics. The success row (operation/toUrl/totalRecords/…) is top-level-@props-stripped by Result.normalize (a shallow Map.drop per row — correct because the export row is flat) via command/4.

ArcadeDB full-text search — tenant-blind FULL_TEXT (Lucene) index DDL and SEARCH_INDEX/SEARCH_FIELDS query builders, parallel to Arcadic.Vector.

ArcadeDB user-defined functions — tenant-blind DEFINE FUNCTION / DELETE FUNCTION DDL, parallel to Arcadic.FullText/Arcadic.Geo.

ArcadeDB geospatial index DDL — tenant-blind GEOSPATIAL index create/drop, parallel to Arcadic.FullText's single-property form.

Allowlist validation for identifiers arcadic places into a URL path or a statement (database names, labels, property names).

Bulk load over ArcadeDB's IMPORT DATABASE command (imports a CSV / JSON / JSONL / GraphML / Neo4j / OrientDB / ArcadeDB export into conn.database, server-side).

Document bulk-insert into a target class over a transport that supports it (gRPC BulkInsert).

ArcadeDB materialized views — tenant-blind CREATE MATERIALIZED VIEW / DROP MATERIALIZED VIEW DDL, parallel to Arcadic.Function/Arcadic.Trigger/Arcadic.Geo.

Behaviour for an ArcadeDB migration — a versioned pair of forward/backward steps. Migrations are tenant-blind schema changes; author raw DDL/DML via Arcadic.command/4 in up/1 and down/1.

Declares an ordered list of migration modules.

Loads trusted migration files from a directory at runtime, including in a release.

Runs ordered ArcadeDB migrations and records their state in a durable ledger.

Constructors for ArcadeDB's typed-JSON param value-wrappers — an efficient way to send a byte array or an INT8-quantized vector as a bound parameter instead of a verbose JSON number array.

Creates, looks up, updates, and deletes records through ArcadeDB's gRPC record API. Use an @rid to address an existing record. Lookups return raw property maps. An HTTP or Bolt connection returns :not_supported.

Normalizes an ArcadeDB statement response into rows or a graph.

Read-only introspection of ArcadeDB schema metadata — types, properties, indexes, and buckets — over the SQL SELECT FROM schema:* surface (Cypher does not parse it).

Server security & auth admin: session login/logout, active sessions, and user/group/API-token management — over ArcadeDB's HTTP admin surface. Reads (users/groups/api_tokens/sessions) use the read-only REST endpoints; mutations (create_user/drop_user) use server commands (the REST paths are read-only — POST /server/users → 400). Tenant-blind.

Server-level admin: create/drop/list databases, existence, readiness. Every identifier is allowlist-validated BEFORE any request reaches the wire (fixes the interpolation surface a hand-written create database <name> would open). Returns are tagged tuples — a transport failure is never swallowed into a bare boolean. Not delegated from the Arcadic facade: destructive admin stays namespaced.

Defines the telemetry spans and events emitted by Arcadic. The wrapper checks metadata keys against allowed_meta_keys/0. Arcadic does not include statement text, parameters, row values, or database names.

Manages time-series schema and data in ArcadeDB. It writes InfluxDB line protocol and reads JSON or PromQL results through HTTP. Schema, downsampling, and continuous-aggregate commands use SQL.

Session transactions. transaction/3 begins a session, runs the fun with a session-scoped conn, and commits on a normal return. On an exception it rolls back and RERAISES (postgrex semantics — unexpected failures propagate, they do not become {:error, …}). Use rollback/2 for an intentional abort that yields {:error, reason}. Nesting raises — there is no verified HTTP savepoint contract.

Defines the callbacks that carry Arcadic operations over a transport. HTTP, Bolt, and gRPC implement this behavior.

Runs Cypher queries, transactions, and cursors over native Bolt v4.

Bolt values owned by arcadic. Bytes distinguishes binary data from UTF-8 strings. Structure preserves a PackStream signature and its fields, including unknown extensions. Temporal preserves nanoseconds and the wire epoch/zone without depending on a time zone database. Legacy datetime signatures use local seconds; UTC datetime signatures use UTC seconds, as defined by Bolt.

A Bolt byte array, distinct from a UTF-8 string.

A Bolt duration with calendar months/days and elapsed seconds/nanoseconds.

An IEEE 754 non-finite value, preserved as 64 raw bits.

A Bolt path with unique nodes/relationships and signed traversal indices.

A Bolt point. SRIDs: 7203/9157 (Cartesian), 4326/4979 (WGS-84).

A PackStream structure with a byte signature and ordered fields.

A lossless Bolt date/time structure; see the Bolt structure semantics.

A relationship in a Bolt path.

Executes queries, transactions, and data operations through ArcadeDB's optional gRPC plugin (GrpcServerPlugin).

Caller-supervised cache of multiplexed HTTP/2 connections for unary Arcadic.Transport.Grpc calls.

Runs Arcadic operations over ArcadeDB's HTTP API using Req and Finch.

Represents a connection or protocol failure. The transport supplies the value-free reason atom.

ArcadeDB triggers — tenant-blind CREATE TRIGGER / DROP TRIGGER DDL, parallel to Arcadic.Function/Arcadic.Geo.

Creates dense and sparse ArcadeDB vector indexes and runs nearest-neighbor searches. Combine dense, sparse, and full-text results with fuse/3.