Caylir.Graph behaviour

Base module to define graph connections.

All graph connections will be made using a user-defined extension of this module.

Example Module

defmodule MyGraph do
  use Caylir.Graph, otp_app: :my_application
end

Example Configuration

config :my_application, MyGraph,
  host: "localhost",
  pool: [ max_overflow: 10, size: 5 ],
  port: 64210
Source

Types

t_delete :: :ok | {:error, String.t}

t_query :: any | {:error, String.t}

t_write :: :ok | {:error, String.t}

Callbacks

__pool__/0

Specs:

  • __pool__ :: module

Returns the (internal) pool module.

Source
child_spec/0

Specs:

Returns a supervisable pool child_spec.

Source
config/0

Specs:

Returns the connection configuration.

Source
delete/1

Specs:

Deletes a quad from the graph.

Source
query/1

Specs:

Queries the graph.

Source
shape/1

Specs:

Gets the shape of a query.

Source
write/1

Specs:

Writes a quad to the graph.

Source