Macro tusk_rs::foreign_as

source ·
macro_rules! foreign_as {
    ($table: literal, $name: literal, $alias: literal) => { ... };
}
Expand description

A macro for creating a foreign field with an alias.

§Arguments

  • $table - The table to join on, as a &’static str.
  • $name - The name of the field, as a &’static str.
  • $alias - The alias of the field, as a &’static str.