| Home | Trees | Indices | Help |
|
|---|
|
|
1 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
2 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
3 #
4 # This file is part of logilab-common.
5 #
6 # logilab-common is free software: you can redistribute it and/or modify it under
7 # the terms of the GNU Lesser General Public License as published by the Free
8 # Software Foundation, either version 2.1 of the License, or (at your option) any
9 # later version.
10 #
11 # logilab-common is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
13 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
14 # details.
15 #
16 # You should have received a copy of the GNU Lesser General Public License along
17 # with logilab-common. If not, see <http://www.gnu.org/licenses/>.
18 """Helpers for DBMS specific (advanced or non standard) functionalities.
19 """
20 __docformat__ = "restructuredtext en"
21
22 from warnings import warn
23 warn('this module is deprecated, use logilab.database instead',
24 DeprecationWarning, stacklevel=1)
25
26 from logilab.database import (FunctionDescr, get_db_helper as get_adv_func_helper,
27 _GenericAdvFuncHelper,
28 _ADV_FUNC_HELPER_DIRECTORY as ADV_FUNC_HELPER_DIRECTORY)
29 from logilab.common.decorators import monkeypatch
30
31 @monkeypatch(_GenericAdvFuncHelper, 'func_sqlname')
32 @classmethod
33 -def func_sqlname(cls, funcname):
34 funcdef = cls.function_description(funcname)
35 return funcdef.name_mapping.get(cls.backend_name, funcname)
36
| Home | Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Fri Jun 11 21:52:21 2010 | http://epydoc.sourceforge.net |