Package logilab-common-0 :: Package 36 :: Package 1 :: Module adbh
[frames] | no frames]

Module adbh

source code

Helpers for DBMS specific (advanced or non standard) functionalities.

Helpers are provided for postgresql, mysql and sqlite.

:copyright:
  2000-2008 `LOGILAB S.A. <http://www.logilab.fr>`_ (Paris, FRANCE),
  all rights reserved.

:contact:
  http://www.logilab.org/project/logilab-common --
  mailto:python-projects@logilab.org

:license:
  `General Public License version 2
  <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>`_

Classes
  BadQuery
  UnsupportedFunction
  metafunc
  FunctionDescr
  AggrFunctionDescr
  MAX
  MIN
  SUM
  COUNT
  AVG
  UPPER
  LOWER
  IN
this is actually a 'keyword' function...
  LENGTH
  DATE
  RANDOM
Functions
 
pgdbcmd(cmd, dbhost, dbuser) source code
 
get_adv_func_helper(driver)
returns an advanced function helper for the given driver
source code
 
register_function(driver, funcdef) source code
 
auto_register_function(funcdef)
register the function `funcdef` on supported backends
source code
Variables
  ADV_FUNC_HELPER_DIRECTORY = {'postgres': _PGAdvFuncHelper(), '...
Variables Details

ADV_FUNC_HELPER_DIRECTORY

Value:
{'postgres': _PGAdvFuncHelper(), 'sqlite': _SqliteAdvFuncHelper(), 'my\
sql': _MyAdvFuncHelper(),}