MCPcopy Create free account
hub / github.com/zzzeek/sqlalchemy / LargeBinary

Class LargeBinary

lib/sqlalchemy/sql/sqltypes.py:1038–1058  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

1036
1037
1038class 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
1061class SchemaType(SchemaEventTarget, TypeEngineMixin):

Callers 8

_assert_typesMethod · 0.90
define_tablesMethod · 0.90
test_char_zeroMethod · 0.90
test_binary_typesMethod · 0.90
sqltypes.pyFile · 0.85

Calls

no outgoing calls

Tested by 7

_assert_typesMethod · 0.72
define_tablesMethod · 0.72
test_char_zeroMethod · 0.72
test_binary_typesMethod · 0.72