File: orm_helpers.rst

package info (click to toggle)
python-sqlalchemy-utils 0.41.2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 1,252 kB
  • sloc: python: 13,566; makefile: 141
file content (124 lines) | stat: -rw-r--r-- 1,330 bytes parent folder | download | duplicates (5)
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
118
119
120
121
122
123
124
ORM helpers
===========

.. module:: sqlalchemy_utils.functions


cast_if
-------

.. autofunction:: cast_if


escape_like
-----------

.. autofunction:: escape_like


get_bind
--------

.. autofunction:: get_bind


get_class_by_table
------------------

.. autofunction:: get_class_by_table


get_column_key
--------------

.. autofunction:: get_column_key


get_columns
-----------

.. autofunction:: get_columns


get_declarative_base
--------------------

.. autofunction:: get_declarative_base


get_hybrid_properties
---------------------

.. autofunction:: get_hybrid_properties


get_mapper
----------

.. autofunction:: get_mapper


get_query_entities
------------------

.. autofunction:: get_query_entities


get_primary_keys
----------------

.. autofunction:: get_primary_keys


get_tables
----------

.. autofunction:: get_tables


get_type
--------

.. autofunction:: get_type


has_changes
-----------

.. autofunction:: has_changes


identity
--------

.. autofunction:: identity


is_loaded
---------

.. autofunction:: is_loaded


make_order_by_deterministic
---------------------------

.. autofunction:: make_order_by_deterministic


naturally_equivalent
--------------------

.. autofunction:: naturally_equivalent


quote
-----

.. autofunction:: quote


sort_query
----------

.. autofunction:: sort_query