[][src]Crate g1_common

Common types and traits between the client and server portion of the G1 graph store.

Modules

command

A command entered at the REPL.

naive_solve

A naive solver for queries.

nameless

A nameless representation of queries, which are easier to execute, easier to validate, and easier to operate on.

query

G1's query language, which is a Datalog variant.

utils

Utilities. These are unstable, don't depend on these.

Structs

Atom

Atoms are the nodes of the graph. Each is represented as a UUID.

Bytes

A reference counted contiguous slice of memory.

Hash

Hashes are identifiers for blobs. Each is a SHA256 hash of the blob, possibly with some additional metadata.

Mime

A parsed mime or media type.

SimpleError

A newtype around String that impls Error.

Enums

HashParseError

An error parsing a Hash.

Traits

Connection

The basic interface to a G1 server. This exposes all the operations which must be atomic without transactions.

Error

The error returned by operations on a G1 server.