Skip to main content

good_module

Macro good_module 

Source
macro_rules! good_module {
    ($vis: vis $mod_name: ident) => { ... };
    ($vis: vis $mod_name: ident, $db_name: literal) => { ... };
}
Expand description

Create a module containing the generated code for a database.

§Parameters

  • $vis - (Optional) Visibility of the module (e.g., pub).

  • $mod_name - The name of the module to create.

  • $db_name - (Optional) The database name string literal. Must match the name passed to generate.

§Example

good_module!(dbm);
good_module!(pub my_db, "custom_db");