add postgresql specific data for examples #172

This commit is contained in:
evalette 2016-06-21 15:23:55 +02:00
parent b6c5ed5eae
commit e67a3c953a

View File

@ -34,5 +34,12 @@ def init_db():
roy = Employee(name='Roy', department=engineering, role=engineer)
db_session.add(roy)
tracy = Employee(name='Tracy', department=hr, role=manager)
# postgresql specific dialects tests
# tracy.articles = [1, 2, 3, 4]
# tracy.json_data = {"test_json": "test_json"}
# tracy.jsonb_data = {"test_jsonb": "test_jsonb"}
# tracy.hstore_data = {"test_hstore": "test_hstore"}
db_session.add(tracy)
db_session.commit()