/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine
Edit: /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyo (10939B)
ó
ÃÌ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<