neosqlite.collection.query_helper.schema_compiler module¶
SQL Compiler for JSON Schema validation. Translates MongoDB $jsonSchema rules into native SQLite SQL expressions.
- neosqlite.collection.query_helper.schema_compiler.compile_schema_to_sql(schema: dict[str, Any], data_column: str = 'data', jsonb: bool = False) str[source]¶
Compile a JSON Schema into a SQL expression for use in a CHECK constraint.