Skip to content

First python native binary client implementation

Compare
Choose a tag to compare
@Ostico Ostico released this 22 Mar 00:09
· 332 commits to master since this release

Version 1.4

Changed the behaviour of OrientRecord object.

You can access directly the values of the oRecordData by calling them as OrientRecord properties.
You can access the values of the oRecordData by calling tham as dict keys.
OrientRecord now has defined _version, _rid, _class, _in, _out properties.

    def test_new_projection(self):
        rec = {'@Package': {'name': 'foo', 'version': '1.0.0', 'rid': 'this_is_fake'}}
        x = self.client.record_create(9, rec)
        assert x._rid == '#9:0'
        assert x._version == 1
        assert x._class == 'Package'
        assert x.name == 'foo'
        assert x.version == '1.0.0'
        assert x.rid == 'this_is_fake'
        assert x.oRecordData['name'] == 'foo'
        assert x.oRecordData['version'] == '1.0.0'
        assert x.oRecordData['rid'] == 'this_is_fake'