quackamollie.devtools.cli.command.db_schema_cli_command module

quackamollie db schema

Generate the schema of the current database as defined by the package quackamollie-core.

param ctx:

Click context to pass between commands of quackamollie

type ctx:

click.Context

param output_dir:

Directory path where to write the generated schema, default file name is in the form ‘quackamollie_schema_v{core_version}.png’

type output_dir:

click.Path

param output_file:

File path where to write the generated schema

type output_file:

Optional[click.Path]

param show_multiplicity_one:

Show the ‘1’s on arrows in the database schema, or not

type show_multiplicity_one:

bool

param show_operations:

Show operations associated to SQLAlchemy model

type show_operations:

bool

quackamollie db schema [OPTIONS]

Options

-h, --help

Show this message and exit.

--version

Show the version and exit.

-od, --output-dir <output_dir>

Directory path where to write the generated schema, default file name is ‘quackamollie_schema_v0.1.png’

-of, --output-file <output_file>

File path where to write the generated schema

--show-multiplicity-one, --no-show-multiplicity-one

Show the ‘1’s on arrows in the database schema, or not

Default:

True

--show-operations, --no-show-operations

Show operations associated to SQLAlchemy model

Default:

False