Structured & JSON Fields — Aquilia Documentation
Comprehensive guide and documentation for Structured & JSON Fields in the Aquilia framework. View API reference, examples, and implementation patterns.
Docs / Models / Structured Fields Structured & JSON Fields JSON storage, native array lists, range bounds, and key-value mapping (HStore) fields. JSONField Supported across all database backends (SQLite, PostgreSQL, MySQL). Handles serialization and deserialization of nested Python structures (lists, dicts) automatically. from aquilia.models.fields_module import JSONField class Product(Model): metadata = JSONField(default_factory=dict) PostgreSQL Native Fields ArrayField Declared with a child field type. Compiles to native SQL array. from aquilia.models.fields_module import ArrayField, CharField tags = ArrayField(CharField(max_length=50), default_factory=list) HStoreField Stores key-value pairs where both keys and values are strings. from aquilia.models.fields_module import HStoreField attributes = HStoreField(default_factory=dict) RangeField Represents numeric or temporal intervals. Supported variants: IntegerRangeField, BigIntegerRangeField, DecimalRangeField, DateRangeField, DateTimeRangeField. from aquilia.models.fields_module import IntegerRangeField age_range = IntegerRangeField() Date & Time Fields QuerySet API )
Go to Homepage