Skip to main content

generate_all_row_views

Function generate_all_row_views 

Source
pub fn generate_all_row_views(
    dialect: &dyn SqlDialect,
    types: &[TypeDefinition],
    include_types: &[String],
    exclude_types: &[String],
) -> String
Expand description

Generate DDL for all types in a compiled schema.

Returns one DDL statement per type, separated by blank lines. Non-scalar-only types (those with no scalar fields) are skipped.

§Arguments

  • dialect — SQL dialect for type casting and DDL syntax.
  • types — Slice of type definitions to generate views for.
  • include_types — Whitelist of type names (empty = all).
  • exclude_types — Blacklist of type names.