Skip to main content

πŸ“š Satori Rust SDK

This library allows you to easily and efficiently interact with the Satori database via WebSockets, supporting CRUD operations, real-time notifications, advanced queries, and graph-like relations.

✨ Main Features

  • Ultra-fast CRUD operations ⚑
  • Advanced queries using field_array πŸ”
  • Real-time notifications πŸ“’
  • Graph-like relations (vertices and references) πŸ•ΈοΈ
  • Data encryption and decryption πŸ”

πŸš€ Installation

Add the following to your Cargo.toml:

🏁 Basic Usage


πŸ—ƒοΈ CRUD Operations

Create Data

Read Data

Modify a Field

Delete Data


🧩 Advanced Queries with field_array πŸ”

You can perform operations on multiple objects that meet certain conditions using the field_array field:
  • field_array is an array of conditions { "field": ..., "value": ... }.
  • You can combine it with "one": true to get only the first matching result.

πŸ”” Real-time Notifications

Receive automatic updates when an object changes:

πŸ•ΈοΈ Relations and Graphs

You can create relationships between objects (vertices):
And traverse the graph with DFS:
Get all neighbors of an object:
Remove a specific neighbor:

πŸ” Encryption and Security

Easily encrypt and decrypt data:

πŸ“¦ Array Manipulation Methods

Below are the available methods to manipulate arrays in the Satori database using the Rust client:

πŸ”Ή push

Adds a value to an existing array in an object.

πŸ”Ή pop

Removes the last element from an array in an object.

πŸ”Ή splice

Modifies an array in an object (for example, to cut or replace elements).

πŸ”Ή remove

Removes a specific value from an array in an object.