OwlCyberSecurity - MANAGER
Edit File: _selectable_constructors.cpython-312.pyc
� _��g�O � �x � d dl mZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ d dlmZ dd l m Z dd l mZ ddlm Z ddlmZ dd lmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ erxddlmZ ddlmZ ddlm Z ddlm!Z! ddlm"Z" ddlm#Z# dd lm$Z$ dd!lm%Z% dd"lm&Z& dd#lm'Z' dd$lm(Z( dd%lm)Z) dd&lm*Z* dd'lm+Z+ dd(lm,Z- dd)l.m/Z/ dd*lm0Z0 dd+lm1Z1 dd,lm2Z2 dd-lm3Z3 dY dZd0�Z4 dY d[d1�Z5ed2 Z6e d\d3�� Z7e d]d4�� Z7 d]d5�Z7e d\d6�� Z8e d]d7�� Z8 d]d8�Z8 d^ d_d9�Z9e d\d:�� Z:e d]d;�� Z: d]d<�Z:e d\d=�� Z;e d]d>�� Z; d]d?�Z; d` dad@�Z< d^ dbdA�Z= dY dcdB�Z>edddC�� Z?e dedD�� Z?e dfdE�� Z?e dgdF�� Z?e dhdG�� Z?e didH�� Z?e djdI�� Z?e dkdJ�� Z?e dldK�� Z?e dmdL�� Z?e dndM�� Z?dndN�Z?dodO�Z@ dp dqdP�ZAe d\dQ�� ZBe d]dR�� ZB d]dS�ZBe d\dT�� ZCe d]dU�� ZC d]dV�ZCd.d/dW� drdX�ZDy.)s� )�annotations)�Any)�Optional)�overload)�Tuple)� TYPE_CHECKING)�Union� )� coercions)�roles)�_ColumnsClauseArgument)�_no_kw)�ColumnClause)�Alias)�CompoundSelect��Exists)� FromClause��Join)�Lateral)�LateralFromClause)�NamedFromClause)�Select��TableClause)�TableSample��Values)�_FromClauseArgument)�_OnClauseArgument)�#_SelectStatementForCompoundArgument)�_T0)�_T1)�_T2)�_T3)�_T4)�_T5)�_T6)�_T7)�_T8)�_T9)�_TP)�_TypedColumnClauseArgument)�Function)�CTE)�HasCTE)�ScalarSelect)� SelectBaseNFc �2 � t j | ||�� S )a, Return a named alias of the given :class:`.FromClause`. For :class:`.Table` and :class:`.Join` objects, the return type is the :class:`_expression.Alias` object. Other kinds of :class:`.NamedFromClause` objects may be returned for other kinds of :class:`.FromClause` objects. The named alias represents any :class:`_expression.FromClause` with an alternate name assigned within SQL, typically using the ``AS`` clause when generated, e.g. ``SELECT * FROM table AS aliasname``. Equivalent functionality is available via the :meth:`_expression.FromClause.alias` method available on all :class:`_expression.FromClause` objects. :param selectable: any :class:`_expression.FromClause` subclass, such as a table, select statement, etc. :param name: string name to be assigned as the alias. If ``None``, a name will be deterministically generated at compile time. Deterministic means the name is guaranteed to be unique against other constructs used in the same statement, and will also be the same name for each successive compilation of the same statement object. :param flat: Will be passed through to if the given selectable is an instance of :class:`_expression.Join` - see :meth:`_expression.Join.alias` for details. )�name�flat)r �_factory)� selectabler5 r6 s �X/opt/hc_python/lib64/python3.12/site-packages/sqlalchemy/sql/_selectable_constructors.py�aliasr: : s � �>