Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/sqlalchemy_cratedb/type/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@
self.operator = operator


# TODO: Should this be inherited from PostgreSQL's
# `ARRAY`, in order to improve type checking?
class _ObjectArray(sqltypes.UserDefinedType):
cache_ok = True

Expand Down Expand Up @@ -139,5 +141,8 @@
def get_col_spec(self, **kws):
return "ARRAY(OBJECT)"

def as_generic(self, **kwargs):
return sqltypes.ARRAY

Check warning on line 145 in src/sqlalchemy_cratedb/type/array.py

View check run for this annotation

Codecov / codecov/patch

src/sqlalchemy_cratedb/type/array.py#L145

Added line #L145 was not covered by tests


ObjectArray = MutableList.as_mutable(_ObjectArray)