Expand description

This module is the main module for the Ligature project. It represents to common types and traits used by Ligature.

Structs

A string that represents a Dataset by name. Currently can only be ASCII text separated by /

An Entity that is identified by a unique String id.

A general struct for representing errors involving Ligature. TODO should probably be an enum with a bunch of specific cases

A Statement is a grouping of an Entity, an Attribute, and a Value.

Enums

A set of enums used to express range queries when it makes sense for that type.

An enum that represents all the currently supported Value types.

Traits

A trait that all Ligature implementations implement.

Represents a QueryTx within the context of a Ligature instance and a single Dataset

Represents a WriteTx within the context of a Ligature instance and a single Dataset

Functions

Creates a new Identifier with an optional prefix.

Check if a given identifier is valid.

Check if a given str only contains valid characters. This is a duplicate of valid_identifier for now but the two could deviate potentially.

Type Definitions

A simple type alias for Bytes.

An Fn that is used when making a Query transaction.

An Fn that is used when making a Write transaction.