File: query.rst

package info (click to toggle)
python-cassandra-driver 3.29.2-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,144 kB
  • sloc: python: 51,532; ansic: 768; makefile: 136; sh: 13
file content (59 lines) | stat: -rw-r--r-- 1,505 bytes parent folder | download | duplicates (3)
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
``cassandra.query`` - Prepared Statements, Batch Statements, Tracing, and Row Factories
=======================================================================================

.. module:: cassandra.query

.. autofunction:: tuple_factory

.. autofunction:: named_tuple_factory

.. autofunction:: dict_factory

.. autofunction:: ordered_dict_factory

.. autoclass:: SimpleStatement
   :members:

.. autoclass:: PreparedStatement ()
   :members:

.. autoclass:: BoundStatement
   :members:

.. autoclass:: Statement ()
   :members:

.. autodata:: UNSET_VALUE
   :annotation:

.. autoclass:: BatchStatement (batch_type=BatchType.LOGGED, retry_policy=None, consistency_level=None)
   :members:

.. autoclass:: BatchType ()

    .. autoattribute:: LOGGED

    .. autoattribute:: UNLOGGED

    .. autoattribute:: COUNTER

.. autoclass:: cassandra.query.ValueSequence

    A wrapper class that is used to specify that a sequence of values should
    be treated as a CQL list of values instead of a single column collection when used
    as part of the `parameters` argument for :meth:`.Session.execute()`. 

    This is typically needed when supplying a list of keys to select.
    For example::

        >>> my_user_ids = ('alice', 'bob', 'charles')
        >>> query = "SELECT * FROM users WHERE user_id IN %s"
        >>> session.execute(query, parameters=[ValueSequence(my_user_ids)])

.. autoclass:: QueryTrace ()
   :members:

.. autoclass:: TraceEvent ()
   :members:

.. autoexception:: TraceUnavailable