macro_rules! schema_name {
($db:expr, $schema:expr) => { ... };
($schema:expr) => { ... };
}Expand description
Creates a SchemaName with optional database qualifier.
This macro provides a convenient way to create schema names with or without
a database qualifier. Returns a Result that must be handled with ? or .unwrap().
ยงExamples
use hyperdb_api::schema_name;
// Simple schema name
let schema = schema_name!("public")?;
assert_eq!(schema.to_string(), "\"public\"");
// With database
let schema = schema_name!("mydb", "public")?;
assert_eq!(schema.to_string(), "\"mydb\".\"public\"");