dump_data(to_dir_path, class_name, excluded_class_names, include_date_fields) → {dict}
Export entity data from the project to JSON files on disk. Each class is written to a separate ``<ClassName>.json`` file. Base classes are automatically skipped.
Properties
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
to_dir_path | Union[str, Path] | Target directory. Created automatically if it does not exist. | ||
class_name | str | <optional> | Schema.ALL_CLASSES | The class name to dump, or Schema.ALL_CLASSES for all. |
excluded_class_names | str | <optional> | '' | Comma-separated list of classes to exclude from the export if class_name is Schema.ALL_CLASSES. |
include_date_fields | bool | <optional> | False | Whether to include system date metadata. |
Returns:
A dict with an exported count.
- Type
- dict