:tickets: 8196
Fixed a crash of the mypy plugin when using a lambda as a Column
- default. Pull request curtesy of tchapi.
+ default. Pull request courtesy of tchapi.
.. change::
--- /dev/null
+.. change::
+ :tags: usecase, postgresql
+ :tickets: 8393
+
+ Added the PostgreSQL type ``MACADDR8``.
+ Pull request courtesy of Asim Farooq.
JSON,
JSONB,
MACADDR,
+ MACADDR8,
MONEY,
NUMERIC,
OID,
.. autoclass:: MACADDR
+.. autoclass:: MACADDR8
+
.. autoclass:: MONEY
.. autoclass:: OID
from .types import INET
from .types import INTERVAL
from .types import MACADDR
+from .types import MACADDR8
from .types import MONEY
from .types import OID
from .types import REGCLASS
"UUID",
"BIT",
"MACADDR",
+ "MACADDR8",
"MONEY",
"OID",
"REGCLASS",
from .types import INET as INET
from .types import INTERVAL as INTERVAL
from .types import MACADDR as MACADDR
+from .types import MACADDR8 as MACADDR8
from .types import MONEY as MONEY
from .types import OID as OID
from .types import PGBit as PGBit # noqa: F401
from .types import PGInet as PGInet # noqa: F401
from .types import PGInterval as PGInterval # noqa: F401
from .types import PGMacAddr as PGMacAddr # noqa: F401
+from .types import PGMacAddr8 as PGMacAddr8 # noqa: F401
from .types import PGUuid as PGUuid
from .types import REGCLASS as REGCLASS
from .types import TIME as TIME
UUID: PGUuid,
}
+
ischema_names = {
"_array": _array.ARRAY,
"hstore": _hstore.HSTORE,
"bit": BIT,
"bit varying": BIT,
"macaddr": MACADDR,
+ "macaddr8": MACADDR8,
"money": MONEY,
"oid": OID,
"regclass": REGCLASS,
def visit_MACADDR(self, type_, **kw):
return "MACADDR"
+ def visit_MACADDR8(self, type_, **kw):
+ return "MACADDR8"
+
def visit_MONEY(self, type_, **kw):
return "MONEY"
PGMacAddr = MACADDR
+class MACADDR8(sqltypes.TypeEngine[str]):
+ __visit_name__ = "MACADDR8"
+
+
+PGMacAddr8 = MACADDR8
+
+
class MONEY(sqltypes.TypeEngine[str]):
r"""Provide the PostgreSQL MONEY type.
Column("bitstring", postgresql.BIT(4)),
Column("addr", postgresql.INET),
Column("addr2", postgresql.MACADDR),
+ Column("addr4", postgresql.MACADDR8),
Column("price", postgresql.MONEY),
Column("addr3", postgresql.CIDR),
Column("doubleprec", postgresql.DOUBLE_PRECISION),