mirror of
https://github.com/graphql-python/graphene.git
synced 2025-02-23 15:10:48 +03:00
add postgresql specific data for examples #172
This commit is contained in:
parent
b6c5ed5eae
commit
e67a3c953a
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user