Here are the examples of the python api sqlalchemy.JSON.NULL taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
0
Source : test_types.py
with MIT License
from analyzeDFIR
with MIT License
from analyzeDFIR
def test_round_trip_json_null_as_json_null(self):
col = self.tables.data_table.c['data']
with config.db.connect() as conn:
conn.execute(
self.tables.data_table.insert(),
{"name": "r1", "data": JSON.NULL}
)
eq_(
conn.scalar(
select([self.tables.data_table.c.name]).
where(cast(col, String) == 'null')
),
"r1"
)
eq_(
conn.scalar(
select([col])
),
None
)
def test_round_trip_none_as_json_null(self):