pub fn aliases(prefix: &str, table: &str, depth: usize) -> Vec<String>Expand description
Every alias one table wears in one database, indexed by the depth of the scope wearing it.
depth is how many the declaration asked for — DEPTH_CEILING where it asked for nothing —
and prefix the namespace they are minted in, ALIAS_PREFIX by the same rule. Both are the
caller’s to resolve, so this function has no defaulting of its own to disagree with anybody
else’s; refused is where the pair is held to what the mint can actually spend.
ALIASES[0] is minted like the rest and is never WORN: the outermost FROM names the real
table, so depth zero has no alias to take. It is present because the array is indexed by depth
and an array that started at depth one would need every use site to subtract, which is an
arithmetic step each of them could get wrong and none of them could get caught at.