PGUuid (postgresql/types.py)

sqlalchemy · lib/sqlalchemy/dialects/postgresql/types.py · python · MIT
database

Defines PostgreSQL-specific SQLAlchemy types like PGUuid, BYTEA, INET, etc., for ORM usage.

# Source: https://github.com/sqlalchemy/sqlalchemy | License: MIT | Copyright 2005-2026 SQLAlchemy authors and contributors <see AUTHORS file>
# Provided via justclaw.it.com; keep this notice with the code.
# dialects/postgresql/types.py
# Copyright (C) 2013-2026 the SQLAlchemy authors and contributors
# <see AUTHORS file>
#
# This module is part of SQLAlchemy and is released under
# the MIT License: https://www.opensource.org/licenses/mit-license.php
from __future__ import annotations

import datetime as dt
from typing import Any
from typing import Literal
from typing import Optional
from typing import overload
from typing import Type
from typing import TYPE_CHECKING
from uuid import UUID as _python_UUID

from .bitstring import BitString
from ...sql import sqltypes
from ...sql import type

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key