You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					35 lines
				
				939 B
			
		
		
			
		
	
	
					35 lines
				
				939 B
			| 
								 
											3 years ago
										 
									 | 
							
								# sybase/mxodbc.py
							 | 
						||
| 
								 | 
							
								# Copyright (C) 2005-2022 the SQLAlchemy authors and contributors
							 | 
						||
| 
								 | 
							
								# <see AUTHORS file>
							 | 
						||
| 
								 | 
							
								#
							 | 
						||
| 
								 | 
							
								# This module is part of SQLAlchemy and is released under
							 | 
						||
| 
								 | 
							
								# the MIT License: https://www.opensource.org/licenses/mit-license.php
							 | 
						||
| 
								 | 
							
								"""
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.. dialect:: sybase+mxodbc
							 | 
						||
| 
								 | 
							
								    :name: mxODBC
							 | 
						||
| 
								 | 
							
								    :dbapi: mxodbc
							 | 
						||
| 
								 | 
							
								    :connectstring: sybase+mxodbc://<username>:<password>@<dsnname>
							 | 
						||
| 
								 | 
							
								    :url: https://www.egenix.com/
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								.. note::
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    This dialect is a stub only and is likely non functional at this time.
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								"""
							 | 
						||
| 
								 | 
							
								from sqlalchemy.connectors.mxodbc import MxODBCConnector
							 | 
						||
| 
								 | 
							
								from sqlalchemy.dialects.sybase.base import SybaseDialect
							 | 
						||
| 
								 | 
							
								from sqlalchemy.dialects.sybase.base import SybaseExecutionContext
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class SybaseExecutionContext_mxodbc(SybaseExecutionContext):
							 | 
						||
| 
								 | 
							
								    pass
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								class SybaseDialect_mxodbc(MxODBCConnector, SybaseDialect):
							 | 
						||
| 
								 | 
							
								    execution_ctx_cls = SybaseExecutionContext_mxodbc
							 | 
						||
| 
								 | 
							
								    supports_statement_cache = True
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								dialect = SybaseDialect_mxodbc
							 |