3 ms·
A very sensible implementation, but the syntax tastes clunky and exposes the SQL data type. Instead of letting the SQL leak into my code, as in texts = Array
by thanatos519 14y ago
A very sensible implementation, but the syntax tastes clunky and exposes the SQL data type.
Instead of letting the SQL leak into my code, as in
texts = ArrayField(dbtype="text", dimension=2)
I want to write
text = models.TextField()
''.Array(dimension=2)
so can't
djorm_pgarray.fields
(or any other array-supporting ORM magic)
add Array() to the Field base class?