MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / Json

Class Json

test/ext/test_indexable.py:274–286  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272 return expr.astext.cast(self.cast_type)
273
274 class Json(ComparableEntity, Base):
275 __tablename__ = "json"
276
277 id = Column(
278 sa.Integer, primary_key=True, test_needs_autoincrement=True
279 )
280 json = Column(JSON, default={})
281 field = index_property("json", "field")
282 json_field = index_property("json", "field")
283 int_field = json_property("json", "field", Integer)
284 text_field = json_property("json", "field", Text)
285 other = index_property("json", "other")
286 subfield = json_property("other", "field", Text)
287
288 def test_query(self):
289 Json = self.classes.Json

Callers 7

test_queryMethod · 0.85
test_mutableMethod · 0.85
test_modifiedMethod · 0.85
test_cast_typeMethod · 0.85
test_multi_dimensionMethod · 0.85

Calls 3

ColumnClass · 0.90
index_propertyClass · 0.90
json_propertyClass · 0.85

Tested by 7

test_queryMethod · 0.68
test_mutableMethod · 0.68
test_modifiedMethod · 0.68
test_cast_typeMethod · 0.68
test_multi_dimensionMethod · 0.68