: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
+ :versions: 2.0.0b5
+
+ 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 .base import INTEGER
from .base import INTERVAL
from .base import MACADDR
+from .base import MACADDR8
from .base import MONEY
from .base import NUMERIC
from .base import OID
"UUID",
"BIT",
"MACADDR",
+ "MACADDR8",
"MONEY",
"OID",
"REGCLASS",
PGMacAddr = MACADDR
+class MACADDR8(sqltypes.TypeEngine):
+ __visit_name__ = "MACADDR8"
+
+
+PGMacAddr8 = MACADDR8
+
+
class MONEY(sqltypes.TypeEngine):
r"""Provide the PostgreSQL MONEY type.
sqltypes.JSON: _json.JSON,
}
+
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"
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),