A type for large binary byte data. The :class:`.LargeBinary` type corresponds to a large and/or unlengthed binary type for the target platform, such as BLOB on MySQL and BYTEA for PostgreSQL. It also handles the necessary conversions for the DBAPI.
| 1036 | |
| 1037 | |
| 1038 | class LargeBinary(_Binary): |
| 1039 | """A type for large binary byte data. |
| 1040 | |
| 1041 | The :class:`.LargeBinary` type corresponds to a large and/or unlengthed |
| 1042 | binary type for the target platform, such as BLOB on MySQL and BYTEA for |
| 1043 | PostgreSQL. It also handles the necessary conversions for the DBAPI. |
| 1044 | |
| 1045 | """ |
| 1046 | |
| 1047 | __visit_name__ = "large_binary" |
| 1048 | |
| 1049 | def __init__(self, length: Optional[int] = None): |
| 1050 | """ |
| 1051 | Construct a LargeBinary type. |
| 1052 | |
| 1053 | :param length: optional, a length for the column for use in |
| 1054 | DDL statements, for those binary types that accept a length, |
| 1055 | such as the MySQL BLOB type. |
| 1056 | |
| 1057 | """ |
| 1058 | _Binary.__init__(self, length=length) |
| 1059 | |
| 1060 | |
| 1061 | class SchemaType(SchemaEventTarget, TypeEngineMixin): |
no outgoing calls