-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How record_create for Edge should look like? #12
Comments
Hi,
|
Is there a way to all in one transaction? It look like only record_create is supported by tx
|
Seems not to be possible, TX_COMMIT support only record update/create/delete I can ask to orientdb creators if there is a workaround or what is the right way to do that. |
Thanks for the quick answer!!! The problem I am trying to solve is Persisting Vertices and Edges in one transaction (tx). It looks like there is a solution for Vertices but note for Edges. I am new to pyorientdb and maybe there is a better solution ... ran On Oct 5, 2014 12:13 AM, "Ostico" notifications@github.com wrote:
|
Now you can use batch command |
cmd_str = create edge eats_at from mogui#12:7343 to mogui#17:27746 set created_at ="2014-10-24" cl.command(cmd_str) File "/Library/Python/2.7/site-packages/pyorient-1.1.1-py2.7.egg/pyorient/orient.py", line 204, in command .prepare(( QUERY_CMD, ) + args).send().fetch_response() File "/Library/Python/2.7/site-packages/pyorient-1.1.1-py2.7.egg/pyorient/messages/commands.py", line 145, in fetch_response return self._read_sync() File "/Library/Python/2.7/site-packages/pyorient-1.1.1-py2.7.egg/pyorient/messages/commands.py", line 193, in _read_sync res.append( self._read_record() ) File "/Library/Python/2.7/site-packages/pyorient-1.1.1-py2.7.egg/pyorient/messages/base.py", line 335, in _read_record _res = ORecordDecoder( __res['content'].rstrip() ) File "/Library/Python/2.7/site-packages/pyorient-1.1.1-py2.7.egg/pyorient/serialization.py", line 156, in __init__ self.__decode() File "/Library/Python/2.7/site-packages/pyorient-1.1.1-py2.7.egg/pyorient/serialization.py", line 189, in __decode self._stateCase[self._state](char, c_class) File "/Library/Python/2.7/site-packages/pyorient-1.1.1-py2.7.egg/pyorient/serialization.py", line 475, in __state_number token_value = datetime.fromtimestamp(float(self._buffer)) ValueError: year is out of range
I tried and failed :
The text was updated successfully, but these errors were encountered: