Immutable (sql/base.py)

sqlalchemy · lib/sqlalchemy/sql/base.py · python · MIT
database

Core SQLAlchemy utilities providing immutable objects, dialect handling, and query compilation.

# 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.
# sql/base.py
# Copyright (C) 2005-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
# mypy: allow-untyped-defs, allow-untyped-calls

"""Foundational utilities common to many sql modules."""

from __future__ import annotations

import collections
from enum import Enum
import itertools
from itertools import zip_longest
import operator
import re
from typing import Any
from typing import Callable
from typing import cast
from typing import Collec

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

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

Get a free API key