nhost
ModuleAn 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
Structs
NHostAn NHost project.Functions
convert_indexThe 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).status_code_from_errorThe status code of an error: its SQLSTATE's, or its positive code.status_code_from_sql_stateThe status code of a PostgreSQL SQLSTATE.use utopia_migration::sources::nhost::NHost;Rust
pub struct NHostAn 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) -> i64The 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>) -> i64The status code of a PostgreSQL SQLSTATE.