{ "field": "OS", "data": "VxWorks" }, { "field": "OS Version", "data": "version number" } ], "created": "2017-03-13T14:02:10.000Z", "modified": "2017-03-13T14:02:10.000Z", "labels": ["infrastructure"] } # with monkeytype.trace(): config = Config(host="127.0.0.1", user="******", db_name="test_embedded", storage="plocal", cred="OrientPW", port=2424, initial_drop=True) # graph = Graph(Config.from_url('localhost/g-test', 'root', 'root', initial_drop=True)) # graph = Graph(Config.from_url('localhost/g-test', 'root', 'root')) graph = Graph(config) graph.create_all(Node.registry) print("create_all done for nodes") # print(result) graph.create_all(Relationships.registry) print("create_all done for Relationships") # print(result) # try: # result = graph.assets.create(**asset) # print("created an asset") # print(result) # print("Querying...")
}, { "field": "OS Version", "data": "version number" }], "created": "2017-03-13T14:02:10.000Z", "modified": "2017-03-13T14:02:10.000Z", "labels": ["infrastructure"] } # with monkeytype.trace(): config = Config(host="127.0.0.1", user="******", db_name="gto", storage="plocal", cred="root", port=2424, initial_drop=True) # graph = Graph(Config.from_url('localhost/g-test', 'root', 'root', initial_drop=True)) # graph = Graph(Config.from_url('localhost/g-test', 'root', 'root')) graph = Graph(config) graph.create_all(Node.registry) print("create_all done for nodes") # print(result) graph.create_all(Relationships.registry) print("create_all done for Relationships") # print(result) # try: # result = graph.assets.create(**asset)