Skip to main content

ALIAS_PREFIX

Constant ALIAS_PREFIX 

Source
pub const ALIAS_PREFIX: &str = "__ig";
Expand description

The framework’s DEFAULT identifier namespace — the four characters a minted alias begins with where the declaration named no other, and the prefix ingraph-derive refuses a declared table or column name for taking wherever any database still defaults.

It is deliberately SHORT. An alias competes for the same sixty-three bytes an engine keeps of an identifier as the table name inside it does, so every character the prefix spends is a character the name it stands for loses before the clamp starts cutting — which is also the whole cost of spending a longer one through alias(prefix = "…").

Pinned against ingraph’s own ALIAS_PREFIX and against ingraph-derive’s fence — three crates hold this string because the dependency edges do not let one of them hold it for the others, and each pair that CAN see both is a test.

It is also the mark EmissionPrefix::INGRAPH is built from, so a platform’s own namespace and this default are one type with one string behind the framework arm rather than two spellings that have to be kept level.