/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine
NameSizeModeActions
base.py841260644editdlrm
base.pyc793090644editdlrm
base.pyo788820644editdlrm
default.py514010644editdlrm
default.pyc436080644editdlrm
default.pyo435560644editdlrm
interfaces.py423970644editdlrm
interfaces.pyc468070644editdlrm
interfaces.pyo468070644editdlrm
reflection.py333430644editdlrm
reflection.pyc298220644editdlrm
reflection.pyo298220644editdlrm
result.py526150644editdlrm
result.pyc505880644editdlrm
result.pyo505880644editdlrm
strategies.py97500644editdlrm
strategies.pyc111460644editdlrm
strategies.pyo111460644editdlrm
threadlocal.py47460644editdlrm
threadlocal.pyc68340644editdlrm
threadlocal.pyo68340644editdlrm
url.py94110644editdlrm
url.pyc109390644editdlrm
url.pyo109390644editdlrm
util.py24210644editdlrm
util.pyc21640644editdlrm
util.pyo21640644editdlrm
__init__.py216710644editdlrm
__init__.pyc221670644editdlrm
__init__.pyo221670644editdlrm
Edit: /opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyo (10939B)
ó ÃÌ4]c@s©dZddlZddlmZddlmZddlmZddlmZdd lm Z d e fd „ƒYZ d „Z d „Z d„Zd„Zd„ZdS(sProvides 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(tDialecti(texc(tutil(tplugins(tregistrytURLcBs¼eZdZddddddd„Zed„Zd„Zd„Zd„Z d„Z d„Z e d„ƒZ e jd „ƒZ d „Zd „Zd „Zd „Zd„Zgd„ZRS(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. cCsg||_||_||_||_|dk rBt|ƒ|_n d|_||_|p]i|_dS(N( t drivernametusernametpassword_originalthosttNonetinttporttdatabasetquery(tselfRRtpasswordR R R R((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt__init__8s       csOˆjd}ˆjdk rq|tˆjƒ7}ˆjdk rd|d|rPdn tˆjƒ7}n|d7}nˆjdk r³dˆjkr£|dˆj7}q³|ˆj7}nˆjdk rÜ|dtˆjƒ7}nˆjdk rÿ|dˆj7}nˆj rKt ˆj ƒ}|j ƒ|ddj ‡fd †|Dƒƒ7}n|S( Ns://t:s***t@s[%s]t/t?t&c3s<|]2}tjˆj|ƒD]}d||fVqqdS(s%s=%sN(Rtto_listR(t.0tktelement(R(sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pys cs( RRR t_rfc_1738_quoteRR R tstrR Rtlisttsorttjoin(Rt hide_passwordtstkeys((RsH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt __to_string__Ms,       cCs|jdtƒS(NR (R#tFalse(R((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt__str__iscCs |jƒS(N(R#(R((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt__repr__lscCstt|ƒƒS(N(thashR(R((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt__hash__oscCs‹t|tƒoŠ|j|jkoŠ|j|jkoŠ|j|jkoŠ|j|jkoŠ|j|jkoŠ|j|jkoŠ|j|jkS(N( t isinstanceRRRRR R RR (Rtother((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt__eq__rscCs ||k S(N((RR*((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt__ne__~scCs'|jdkrdStj|jƒSdS(N(RR Rt text_type(R((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyRscCs ||_dS(N(R(RR((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyRˆscCs.d|jkr|jS|jjdƒdSdS(Nt+i(Rtsplit(R((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pytget_backend_nameŒscCs4d|jkr|jƒjS|jjdƒdSdS(NR.i(Rt get_dialecttdriverR/(R((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pytget_driver_name’s cCs]tj|jjddƒƒ}||jdgƒ7}g|D]}tj|ƒ||ƒ^q;S(NtpluginR((RRRtgetRtload(Rtkwargst plugin_namest plugin_name((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt_instantiate_plugins˜scCsd|jkr|j}n|jjddƒ}tj|ƒ}t|dƒryt|jtƒryt|jt ƒry|jS|SdS(sºReturn the "entry point" dialect class. This is normally the dialect itself except in the case when the returned class implements the get_dialect_cls() method. R.t.tdialectN( RtreplaceRR6thasattrR)R<ttypet issubclassR(Rtnametcls((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt_get_entrypoint¡s cCs|jƒ}|j|ƒ}|S(sfReturn the SQLAlchemy database dialect class corresponding to this URL's driver name. (RCtget_dialect_cls(Rt entrypointt dialect_cls((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyR1¹s cKs›i}dddddg}xy|D]q}|r@|jdƒ}n||krY||}n|}|dk r"t||tƒr"t||ƒ||[\w\+]+):// (?: (?P[^:/]*) (?::(?P.*))? @)? (?: (?: \[(?P[^/]+)\] | (?P[^/:]+) )? (?::(?P[^/]*))? )? (?:/(?P.*))? R RiiitasciiRRRtipv4hosttipv6hostR RAs,Could not parse rfc1738 URL from string '%s'(tretcompiletXtmatchR t groupdictR/tlenRt parse_qsltpy2ktencodeRtappendt_rfc_1738_unquoteRGRRt ArgumentError( RAtpatterntmt componentsttokensRtkeytvalueRZR[((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyRVês@         cCstjdd„|ƒS(Ns[:@/]cSsdt|jdƒƒS(Ns%%%Xi(tordtgroup(Ri((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt(t(R\tsub(ttext((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyR'scCs tj|ƒS(N(Rtunquote(Rs((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyRf+scCs`tjd|ƒ}|dk rX|jddƒ\}}ttj|ƒƒ}t||ŒSdSdS(Ns (\w+)://(.*)ii(R\R_R RotdictRRbR(RARitargstopts((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyt_parse_keyvalue_args/s   (RQR\t interfacesRRqRRtdialectsRRtobjectRRXRVRRfRx(((sH/opt/alt/python27/lib64/python2.7/site-packages/sqlalchemy/engine/url.pyts à =