예제 #1
0
        class TestDBObject(orm.DBObject):
            _collection = base.BaseGraphDB.COLLECTIONS.resource
            __metaclass__ = orm.DBObjectMeta

            id = orm.db_field(schema='str', is_primary=True)
            schema = orm.db_field()
            value = orm.db_field(schema_in_field='schema')
예제 #2
0
        class TestDBObject(orm.DBObject):
            _collection = base.BaseGraphDB.COLLECTIONS.resource
            __metaclass__ = orm.DBObjectMeta

            test1 = orm.db_field(schema='str',
                                 is_primary=True,
                                 default_value='1')
예제 #3
0
        class TestDBObject(orm.DBObject):
            _collection = base.BaseGraphDB.COLLECTIONS.input
            __metaclass__ = orm.DBObjectMeta

            id = orm.db_field(schema='str', is_primary=True)
            related = orm.db_related_field(
                base.BaseGraphDB.RELATION_TYPES.input_to_input,
                'TestDBObject'
            )
예제 #4
0
            class TestDBObject(orm.DBObject):
                _collection = base.BaseGraphDB.COLLECTIONS.resource
                __metaclass__ = orm.DBObjectMeta

                test1 = orm.db_field(schema='str')
예제 #5
0
        class TestDBRelatedObject(orm.DBObject):
            _collection = base.BaseGraphDB.COLLECTIONS.input
            __metaclass__ = orm.DBObjectMeta

            id = orm.db_field(schema='str', is_primary=True)