Skip to main content

run

Function run 

Source
pub fn run(config: GenerateViewsConfig) -> Result<()>
Expand description

Run the generate-views command

§Arguments

  • config - Generation configuration

§Errors

Returns error if:

  • Schema file doesn’t exist or can’t be read
  • JSON parsing fails
  • Entity doesn’t exist in schema
  • View name validation fails
  • Output file can’t be written