Rust

An NHost project as the source: users, the public schema's tables and rows, and storage files, read from its PostgreSQL database; file contents through its storage API.

Contents

use utopia_migration::sources::nhost::NHost;
Rust
pub struct NHost

An NHost project.

Also implements Debug.
use utopia_migration::sources::nhost::convert_index;
Rust
pub fn convert_index(definition: &str, table: &ResourceRef) -> Option<ResourceRef>

The index of a CREATE <TYPE> INDEX <name> ON <schema>.<table> USING btree (<column>) definition (only those match: a plain CREATE INDEX, several columns or another method do not).

use utopia_migration::sources::nhost::status_code_from_error;
Rust
pub fn status_code_from_error(e: &Error) -> i64

The status code of an error: its SQLSTATE's, or its positive code.

use utopia_migration::sources::nhost::status_code_from_sql_state;
Rust
pub fn status_code_from_sql_state(sql_state: Option<&str>) -> i64

The status code of a PostgreSQL SQLSTATE.