def process_result_value(self, value, dialect): """Load ZlibPickled data from column.""" if value is not None: value = ZlibPickle.loads(value) return value
def process_bind_param(self, value, dialect): """Dump data to column using ZlibPickle.""" if value is not None: value = ZlibPickle.dumps(value) return value