PageRenderTime 39ms CodeModel.GetById 12ms RepoModel.GetById 0ms app.codeStats 0ms

/SQLAlchemy-0.7.8/doc/_sources/core/expression_api.txt

#
Plain Text | 256 lines | 171 code | 85 blank | 0 comment | 0 complexity | fc91113361ec048235b17a08ef6e1b05 MD5 | raw file
  1. .. _expression_api_toplevel:
  2. SQL Statements and Expressions API
  3. ==================================
  4. .. module:: sqlalchemy.sql.expression
  5. This section presents the API reference for the SQL Expression Language. For a full introduction to its usage,
  6. see :ref:`sqlexpression_toplevel`.
  7. Functions
  8. ---------
  9. The expression package uses functions to construct SQL expressions. The return value of each function is an object instance which is a subclass of :class:`~sqlalchemy.sql.expression.ClauseElement`.
  10. .. autofunction:: alias
  11. .. autofunction:: and_
  12. .. autofunction:: asc
  13. .. autofunction:: between
  14. .. autofunction:: bindparam
  15. .. autofunction:: case
  16. .. autofunction:: cast
  17. .. autofunction:: sqlalchemy.sql.expression.column
  18. .. autofunction:: collate
  19. .. autofunction:: delete
  20. .. autofunction:: desc
  21. .. autofunction:: distinct
  22. .. autofunction:: except_
  23. .. autofunction:: except_all
  24. .. autofunction:: exists
  25. .. autofunction:: extract
  26. .. autofunction:: false
  27. .. autodata:: func
  28. .. autofunction:: insert
  29. .. autofunction:: intersect
  30. .. autofunction:: intersect_all
  31. .. autofunction:: join
  32. .. autofunction:: label
  33. .. autofunction:: literal
  34. .. autofunction:: literal_column
  35. .. autofunction:: not_
  36. .. autofunction:: null
  37. .. autofunction:: nullsfirst
  38. .. autofunction:: nullslast
  39. .. autofunction:: or_
  40. .. autofunction:: outparam
  41. .. autofunction:: outerjoin
  42. .. autofunction:: over
  43. .. autofunction:: select
  44. .. autofunction:: subquery
  45. .. autofunction:: sqlalchemy.sql.expression.table
  46. .. autofunction:: text
  47. .. autofunction:: true
  48. .. autofunction:: tuple_
  49. .. autofunction:: type_coerce
  50. .. autofunction:: union
  51. .. autofunction:: union_all
  52. .. autofunction:: update
  53. Classes
  54. -------
  55. .. autoclass:: Alias
  56. :members:
  57. :show-inheritance:
  58. .. autoclass:: _BindParamClause
  59. :members:
  60. :show-inheritance:
  61. .. autoclass:: ClauseElement
  62. :members:
  63. :show-inheritance:
  64. .. autoclass:: ClauseList
  65. :members:
  66. :show-inheritance:
  67. .. autoclass:: ColumnClause
  68. :members:
  69. :show-inheritance:
  70. .. autoclass:: ColumnCollection
  71. :members:
  72. :show-inheritance:
  73. .. autoclass:: ColumnElement
  74. :members:
  75. :show-inheritance:
  76. .. autoclass:: _CompareMixin
  77. :members:
  78. :show-inheritance:
  79. .. autoclass:: sqlalchemy.sql.operators.ColumnOperators
  80. :members:
  81. :undoc-members:
  82. :inherited-members:
  83. :show-inheritance:
  84. .. automethod:: __eq__
  85. .. automethod:: __ne__
  86. .. automethod:: __gt__
  87. .. automethod:: __ge__
  88. .. automethod:: __lt__
  89. .. automethod:: __le__
  90. .. automethod:: __neg__
  91. .. automethod:: __add__
  92. .. automethod:: __mul__
  93. .. automethod:: __div__
  94. .. automethod:: __truediv__
  95. .. automethod:: __sub__
  96. .. automethod:: __radd__
  97. .. automethod:: __rsub__
  98. .. automethod:: __rtruediv__
  99. .. automethod:: __rdiv__
  100. .. automethod:: __rmul__
  101. .. automethod:: __mod__
  102. .. autoclass:: CompoundSelect
  103. :members:
  104. :show-inheritance:
  105. .. autoclass:: CTE
  106. :members:
  107. :show-inheritance:
  108. .. autoclass:: Delete
  109. :members: where
  110. :show-inheritance:
  111. .. autoclass:: Executable
  112. :members:
  113. :show-inheritance:
  114. .. autoclass:: FunctionElement
  115. :members:
  116. :show-inheritance:
  117. .. autoclass:: Function
  118. :members:
  119. :show-inheritance:
  120. .. autoclass:: FromClause
  121. :members:
  122. :show-inheritance:
  123. .. autoclass:: Insert
  124. :members: prefix_with, values, returning
  125. :show-inheritance:
  126. .. autoclass:: Join
  127. :members:
  128. :show-inheritance:
  129. .. autoclass:: sqlalchemy.sql.expression.Operators
  130. :members:
  131. :undoc-members:
  132. .. automethod:: __and__
  133. .. automethod:: __or__
  134. .. automethod:: __invert__
  135. .. autoclass:: Select
  136. :members:
  137. :show-inheritance:
  138. .. autoclass:: Selectable
  139. :members:
  140. :show-inheritance:
  141. .. autoclass:: _SelectBase
  142. :members:
  143. :show-inheritance:
  144. .. autoclass:: TableClause
  145. :members:
  146. :show-inheritance:
  147. .. autoclass:: Update
  148. :members:
  149. :show-inheritance:
  150. .. autoclass:: UpdateBase
  151. :members:
  152. :show-inheritance:
  153. .. autoclass:: ValuesBase
  154. :members:
  155. :show-inheritance:
  156. .. _generic_functions:
  157. Generic Functions
  158. -----------------
  159. SQL functions which are known to SQLAlchemy with regards to database-specific
  160. rendering, return types and argument behavior. Generic functions are invoked
  161. like all SQL functions, using the :attr:`func` attribute::
  162. select([func.count()]).select_from(sometable)
  163. Note that any name not known to :attr:`func` generates the function name as is
  164. - there is no restriction on what SQL functions can be called, known or
  165. unknown to SQLAlchemy, built-in or user defined. The section here only
  166. describes those functions where SQLAlchemy already knows what argument and
  167. return types are in use.
  168. .. automodule:: sqlalchemy.sql.functions
  169. :members:
  170. :undoc-members:
  171. :show-inheritance: