from sqlalchemy import TypeDecorator
from sqlalchemy import cast
from sqlalchemy.sql.sqltypes import LargeBinary
[docs]class PeekLargeBinary(TypeDecorator):
"""Peek Large Binary"""
impl = LargeBinary
[docs] def bind_expression(self, bindvalue):
return cast(bindvalue, LargeBinary)