~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to lib/sqlalchemy/dialects/sybase/mxodbc.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski, Jakub Wilk, Piotr Ożarowski
  • Date: 2013-07-06 20:53:52 UTC
  • mfrom: (1.4.23) (16.1.17 experimental)
  • Revision ID: package-import@ubuntu.com-20130706205352-ryppl1eto3illd79
Tags: 0.8.2-1
[ Jakub Wilk ]
* Use canonical URIs for Vcs-* fields.

[ Piotr Ożarowski ]
* New upstream release
* Upload to unstable
* Build depend on python3-all instead of -dev, extensions are not built for
  Python 3.X 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# sybase/mxodbc.py
2
 
# Copyright (C) 2005-2012 the SQLAlchemy authors and contributors <see AUTHORS file>
 
2
# Copyright (C) 2005-2013 the SQLAlchemy authors and contributors <see AUTHORS file>
3
3
#
4
4
# This module is part of SQLAlchemy and is released under
5
5
# the MIT License: http://www.opensource.org/licenses/mit-license.php
6
 
 
7
 
"""
8
 
Support for Sybase via mxodbc.
9
 
 
10
 
This dialect is a stub only and is likely non functional at this time.
11
 
 
12
 
 
13
 
"""
14
 
from sqlalchemy.dialects.sybase.base import SybaseDialect, SybaseExecutionContext
 
6
"""
 
7
 
 
8
.. dialect:: sybase+mxodbc
 
9
    :name: mxODBC
 
10
    :dbapi: mxodbc
 
11
    :connectstring: sybase+mxodbc://<username>:<password>@<dsnname>
 
12
    :url: http://www.egenix.com/
 
13
 
 
14
.. note::
 
15
 
 
16
    This dialect is a stub only and is likely non functional at this time.
 
17
 
 
18
 
 
19
"""
 
20
from sqlalchemy.dialects.sybase.base import SybaseDialect
 
21
from sqlalchemy.dialects.sybase.base import SybaseExecutionContext
15
22
from sqlalchemy.connectors.mxodbc import MxODBCConnector
16
23
 
 
24
 
17
25
class SybaseExecutionContext_mxodbc(SybaseExecutionContext):
18
26
    pass
19
27
 
 
28
 
20
29
class SybaseDialect_mxodbc(MxODBCConnector, SybaseDialect):
21
30
    execution_ctx_cls = SybaseExecutionContext_mxodbc
22
31