macro_rules! node {
    ($table:ident { $($column:ident),* }) => { ... };
}
Expand description

An easy way to declare constant strings for database schemas

Example

use surreal_simple_querybuilder::node;

node!(
  users {
    id,
    handle
  }
);

which results in

pub mod schema {
  pub const label: &'static str = "users";
  pub const id: &'static str = "id";
  pub const handle: &'static str = "handle";
}