zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
U
¸ý°d§ã@s€ddlmZddlmZddlmZddlmZddlmZerLddlm    Z    dd    d
œd d „Z
dd d
œdd„Z ddd
œdd„Z dS)é)Ú annotations)Ú TYPE_CHECKINGé©ÚDelete©ÚInsert©ÚUpdate)Ú_DMLTableArgumentr r)ÚtableÚreturncCst|ƒS)a9Construct 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`
 
    r©r ©rúWd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\sqlalchemy/sql/_dml_constructors.pyÚinserts>rr
cCst|ƒS)a?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`
 
 
    r    rrrrÚupdateUsrrcCst|ƒS)aÝ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`
 
 
    rrrrrÚdeletetsrN) Ú
__future__rÚtypingrZdmlrrr
Ú_typingr rrrrrrrÚ<module>s      A