Repository URL to install this package:
Version:
4.0.114 ▾
|
contego
/
home
/
tvault
/
.virtenv
/
lib
/
python2.7
/
site-packages
/
sqlalchemy
/
engine
/
url.pyc
|
---|
ó EYc @ s d Z d d l Z d d l m Z 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 exct utili ( t Dialect( 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 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 passwordt hostt Nonet intt portt databaset query( t selfR R R R R R R ( ( sJ /home/tvault/.virtenv/lib/python2.7/site-packages/sqlalchemy/engine/url.pyt __init__5 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&