Struct codegenta::generator::Config [] [src]

pub struct Config {
    pub base_module: Option<String>,
    pub include_table_references: bool,
    pub use_condensed_name: bool,
    pub generate_table_meta: bool,
    pub base_dir: String,
}

configuration for generating code

Fields

base_module

the module name to be used when it is possible to unify all tables in 1 module likely the project name

include_table_references

include the has_one, has_many, extension Models

use_condensed_name

use the condense name of the has_many else, use the table name referred

generate_table_meta

generate the is table definition for each table

base_dir

base directory for the generated content

Methods

impl Config

fn default() -> Self