Ñò
Š„[Jc @ s{ d Z d d k Z d d k Z d d k Z d d k Z d d k l Z d e f d „ ƒ YZ 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ÿÿÿÿN( t exct URLc B sY e Z d Z d d d d d d d „ Z d „ Z d „ Z d „ Z d „ Z g d „ Z RS( sd
Represent the components of a URL used to connect to a database.
This object is suitable to be passed directly to a
``create_engine()`` call. The fields of the URL are parsed from a
string by the ``module-level 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 sj | | _ | | _ | | _ | | _ | d j o t | ƒ | _ n
d | _ | | _ | p h | _ d S( N( t
drivernamet usernamet passwordt hostt Nonet intt portt databaset query( t selfR R R R R R R
( ( s9 /usr/lib/python2.6/site-packages/sqlalchemy/engine/url.pyt __init__+ s
c s) ˆ i d } ˆ i d j oI | ˆ i 7} ˆ i d j o | d t i ˆ i ƒ 7} n | d 7} n ˆ i d j o | ˆ i 7} n ˆ i d j o | d t ˆ i ƒ 7} n ˆ i d j o | d ˆ i 7} n ˆ i
oD ˆ i
i ƒ } | i ƒ | d d i
‡ f d † | Dƒ ƒ 7} n | S( Ns ://t :t @t /t ?t &c 3 s* x# | ] } d | ˆ i | f Vq Wd S( s %s=%sN( R
( t .0t k( R ( s9 /usr/lib/python2.6/site-packages/sqlalchemy/engine/url.pys