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')
class TestDBObject(orm.DBObject): _collection = base.BaseGraphDB.COLLECTIONS.resource __metaclass__ = orm.DBObjectMeta test1 = orm.db_field(schema='str', is_primary=True, default_value='1')
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' )
class TestDBObject(orm.DBObject): _collection = base.BaseGraphDB.COLLECTIONS.resource __metaclass__ = orm.DBObjectMeta test1 = orm.db_field(schema='str')
class TestDBRelatedObject(orm.DBObject): _collection = base.BaseGraphDB.COLLECTIONS.input __metaclass__ = orm.DBObjectMeta id = orm.db_field(schema='str', is_primary=True)