GRAYBYTE WORDPRESS FILE MANAGER7224

Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /opt/hc_python/lib/python3.12/site-packages/sqlalchemy/sql/
Upload Files :
Current_dir [ Not Writeable ] Document_root [ Writeable ]

Command :


Current File : /opt/hc_python/lib/python3.12/site-packages/sqlalchemy/sql//_dml_constructors.py
# sql/_dml_constructors.py
# Copyright (C) 2005-2025 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

from typing import TYPE_CHECKING

from .dml import Delete
from .dml import Insert
from .dml import Update

if TYPE_CHECKING:
    from ._typing import _DMLTableArgument


def insert(table: _DMLTableArgument) -> Insert:
    """Construct an :class:`_expression.Insert` object.

    E.g.::

        from sqlalchemy import insert

        stmt = insert(user_table).values(name="username", fullname="Full Username")

    Similar functionality is available via the
    :meth:`_expression.TableClause.insert` method on
    :class:`_schema.Table`.

    .. seealso::

        :ref:`tutorial_core_insert` - in the :ref:`unified_tutorial`


    :param table: :class:`_expression.TableClause`
     which is the subject of the
     insert.

    :param values: collection of values to be inserted; see
     :meth:`_expression.Insert.values`
     for a description of allowed formats here.
     Can be omitted entirely; a :class:`_expression.Insert` construct
     will also dynamically render the VALUES clause at execution time
     based on the parameters passed to :meth:`_engine.Connection.execute`.

    :param inline: if True, no attempt will be made to retrieve the
     SQL-generated default values to be provided within the statement;
     in particular,
     this allows SQL expressions to be rendered 'inline' within the
     statement without the need to pre-execute them beforehand; for
     backends that support "returning", this turns off the "implicit
     returning" feature for the statement.

    If both :paramref:`_expression.insert.values` and compile-time bind
    parameters are present, the compile-time bind parameters override the
    information specified within :paramref:`_expression.insert.values` on a
    per-key basis.

    The keys within :paramref:`_expression.Insert.values` can be either
    :class:`~sqlalchemy.schema.Column` objects or their string
    identifiers. Each key may reference one of:

    * a literal data value (i.e. string, number, etc.);
    * a Column object;
    * a SELECT statement.

    If a ``SELECT`` statement is specified which references this
    ``INSERT`` statement's table, the statement will be correlated
    against the ``INSERT`` statement.

    .. seealso::

        :ref:`tutorial_core_insert` - in the :ref:`unified_tutorial`

    """  # noqa: E501
    return Insert(table)


def update(table: _DMLTableArgument) -> Update:
    r"""Construct an :class:`_expression.Update` object.

    E.g.::

        from sqlalchemy import update

        stmt = (
            update(user_table).where(user_table.c.id == 5).values(name="user #5")
        )

    Similar functionality is available via the
    :meth:`_expression.TableClause.update` method on
    :class:`_schema.Table`.

    :param table: A :class:`_schema.Table`
     object representing the database
     table to be updated.


    .. seealso::

        :ref:`tutorial_core_update_delete` - in the :ref:`unified_tutorial`


    """  # noqa: E501
    return Update(table)


def delete(table: _DMLTableArgument) -> Delete:
    r"""Construct :class:`_expression.Delete` object.

    E.g.::

        from sqlalchemy import delete

        stmt = delete(user_table).where(user_table.c.id == 5)

    Similar functionality is available via the
    :meth:`_expression.TableClause.delete` method on
    :class:`_schema.Table`.

    :param table: The table to delete rows from.

    .. seealso::

        :ref:`tutorial_core_update_delete` - in the :ref:`unified_tutorial`


    """
    return Delete(table)

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
January 01 1970 00:00:00
root / root
0
__pycache__
--
April 04 2025 08:00:25
root / root
0755
__init__.py
5.684 KB
April 04 2025 08:00:23
root / root
0644
_dml_constructors.py
3.706 KB
April 04 2025 08:00:23
root / root
0644
_elements_constructors.py
61.162 KB
April 04 2025 08:00:23
root / root
0644
_orm_types.py
0.61 KB
April 04 2025 08:00:23
root / root
0644
_py_util.py
2.122 KB
April 04 2025 08:00:23
root / root
0644
_selectable_constructors.py
19.896 KB
April 04 2025 08:00:23
root / root
0644
_typing.py
12.546 KB
April 04 2025 08:00:23
root / root
0644
annotation.py
17.817 KB
April 04 2025 08:00:23
root / root
0644
base.py
72.213 KB
April 04 2025 08:00:23
root / root
0644
cache_key.py
32.879 KB
April 04 2025 08:00:23
root / root
0644
coercions.py
39.7 KB
April 04 2025 08:00:23
root / root
0644
compiler.py
269.122 KB
April 04 2025 08:00:23
root / root
0644
crud.py
55.189 KB
April 04 2025 08:00:23
root / root
0644
ddl.py
46.318 KB
April 04 2025 08:00:23
root / root
0644
default_comparator.py
16.315 KB
April 04 2025 08:00:23
root / root
0644
dml.py
64.68 KB
April 04 2025 08:00:23
root / root
0644
elements.py
173.157 KB
April 04 2025 08:00:23
root / root
0644
events.py
17.883 KB
April 04 2025 08:00:23
root / root
0644
expression.py
7.408 KB
April 04 2025 08:00:23
root / root
0644
functions.py
62.361 KB
April 04 2025 08:00:23
root / root
0644
lambdas.py
48.043 KB
April 04 2025 08:00:23
root / root
0644
naming.py
6.697 KB
April 04 2025 08:00:23
root / root
0644
operators.py
74.992 KB
April 04 2025 08:00:23
root / root
0644
roles.py
7.482 KB
April 04 2025 08:00:23
root / root
0644
schema.py
224.635 KB
April 04 2025 08:00:23
root / root
0644
selectable.py
235.405 KB
April 04 2025 08:00:23
root / root
0644
sqltypes.py
125.935 KB
April 04 2025 08:00:23
root / root
0644
traversals.py
32.875 KB
April 04 2025 08:00:23
root / root
0644
type_api.py
82.849 KB
April 04 2025 08:00:23
root / root
0644
util.py
46.959 KB
April 04 2025 08:00:23
root / root
0644
visitors.py
35.468 KB
April 04 2025 08:00:23
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF