ProtectedescapeProperly escapes a string for JSON output, handling all control characters
The string to escape
The escaped string safe for JSON
Generates JSON representation for a specific database schema
Array of entities in this schema
Array of entity names to exclude from output
Name of the schema being processed
Whether to generate simplified output (field names only)
JSON string representing the schema
Main entry point for generating database schema JSON files. Creates multiple output formats for different consumption needs:
Array of entities to process
Directory to write the JSON files to
True if generation was successful, false otherwise
ProtectedgenerateGenerates JSON representation for a single entity
The entity to generate JSON for
Whether to generate simplified output
JSON string representing the entity
ProtectedgenerateGenerates JSON representation for a single entity field
The field to generate JSON for
Whether to generate simplified output (currently unused for fields)
JSON string representing the field with type, relationships, and constraints
Base class for generating database schema JSON output files. Creates comprehensive JSON documentation of database schemas including:
You can sub-class this class to create custom schema generation logic.