Module ockam_node::storage::database

source ·
Expand description

Database support

Modules§

Structs§

  • Migrator is responsible for running Sql and Rust migrations side by side in the correct order, checking for conflicts, duplicates; making sure each migration runs only once
  • The SqlxDatabase struct is used to create a database:

Enums§

  • This enum represents the set of types that we currently support in our database Since we support only Sqlite at the moment, those types are close to what is supported by Sqlite: https://www.sqlite.org/datatype3.html

Traits§

  • This trait provides some syntax for transforming sqlx errors into ockam errors
  • This trait runs migrations on a given database
  • Individual rust migration
  • This trait can be implemented by any type that can be converted to a database type Typically an Identifier (to a Text), a TimestampInSeconds (to an Integer) etc…
  • This trait provides some syntax to shorten queries execution returning ()