%PDF- %PDF-
Direktori : /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/ |
Current File : //opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyc |
� ��4]c @ s� d Z d d l Z d d l m Z d d l m Z d d l m Z d d l m Z d d l m Z d e f d � � YZ d � Z d � Z d � Z d � Z d � Z d S( s Provides the :class:`~sqlalchemy.engine.url.URL` class which encapsulates information about a database connection specification. The URL object is created automatically when :func:`~sqlalchemy.engine.create_engine` is called with a string argument; alternatively, the URL is a public-facing construct which can be used directly and is also accepted directly by ``create_engine()``. i����Ni ( t Dialecti ( t exc( t util( t plugins( t registryt URLc B s� e Z d Z d d d d d d d � Z e d � Z d � Z d � Z d � Z d � Z d � Z e d � � Z e j d � � Z d � Z d � Z d � Z d � Z d � Z g d � Z RS( sX Represent the components of a URL used to connect to a database. This object is suitable to be passed directly to a :func:`~sqlalchemy.create_engine` call. The fields of the URL are parsed from a string by the :func:`.make_url` function. the string format of the URL is an RFC-1738-style string. All initialization parameters are available as public attributes. :param drivername: the name of the database backend. This name will correspond to a module in sqlalchemy/databases or a third party plug-in. :param username: The user name. :param password: database password. :param host: The name of the host. :param port: The port number. :param database: The database name. :param query: A dictionary of options to be passed to the dialect and/or the DBAPI upon connect. c C sg | | _ | | _ | | _ | | _ | d k rB t | � | _ n d | _ | | _ | p] i | _ d S( N( t drivernamet usernamet password_originalt hostt Nonet intt portt databaset query( t selfR R t passwordR R R R ( ( sH /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt __init__8 s c sO � j d } � j d k rq | t � j � 7} � j d k rd | d | rP d n t � j � 7} n | d 7} n � j d k r� d � j k r� | d � j 7} q� | � j 7} n � j d k r� | d t � j � 7} n � j d k r� | d � j 7} n � j rKt � j � } | j � | d d j � f d � | D� � 7} n | S( Ns ://t :s ***t @s [%s]t /t ?t &c 3 s<