Struct indradb_proto::Transaction[][src]

pub struct Transaction { /* fields omitted */ }
Expand description

A transaction.

Implementations

Creates a new vertex. Returns whether the vertex was successfully created - if this is false, it’s because a vertex with the same UUID already exists.

Arguments
  • vertex: The vertex to create.

Creates a new vertex with just a type specification. As opposed to create_vertex, this is used when you do not want to manually specify the vertex’s UUID. Returns the new vertex’s UUID.

Arguments
  • t: The type of the vertex to create.

Gets a range of vertices specified by a query.

Arguments
  • q: The query to run.

Deletes existing vertices specified by a query.

Arguments
  • q: The query to run.

Gets the number of vertices in the datastore.

Creates a new edge. If the edge already exists, this will update it with a new update datetime. Returns whether the edge was successfully created - if this is false, it’s because one of the specified vertices is missing.

Arguments
  • key: The edge to create.

Gets a range of edges specified by a query.

Arguments
  • q: The query to run.

Deletes a set of edges specified by a query.

Arguments
  • q: The query to run.

Gets the number of edges associated with a vertex.

Arguments
  • id: The id of the vertex.
  • t: Only get the count for a specified edge type.
  • direction: The direction of edges to get.

Gets vertex properties.

Arguments
  • q: The query to run.

Gets all vertex properties.

Arguments
  • q: The query to run.

Sets a vertex properties.

Arguments
  • q: The query to run.
  • value: The property value.

Deletes vertex properties.

Arguments
  • q: The query to run.

Gets edge properties.

Arguments
  • q: The query to run.

Gets all edge properties.

Arguments
  • q: The query to run.

Sets edge properties.

Arguments
  • q: The query to run.
  • value: The property value.

Deletes edge properties.

Arguments
  • q: The query to run.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more