mς ύ%άGc@s΅dZdklZlZlZlZdklZlZdkl Z hZ de fd„ƒYZ de fd„ƒYZdefd „ƒYZeƒd efd „ƒYZeƒd S( s±defines different strategies for creating new instances of sql.Engine. by default there are two, one which is the "thread-local" strategy, one which is the "plain" strategy. new strategies can be added via constructing a new EngineStrategy object which will add itself to the list of available strategies here, or replace one of the existing name. this can be accomplished via a mod; see the sqlalchemy/mods package for details.(sbasesdefaults threadlocalsurl(sutils exceptions(spooltEngineStrategycBs tZdZd„Zd„ZRS(sŸdefines a function that receives input arguments and produces an instance of sql.Engine, typically an instance sqlalchemy.engine.base.Engine or a subclass.cCs||_|t|iti|i ƒD]*}||jo|i |ƒ||^s(R R R R8R<R>(((RR s ?  tPlainEngineStrategycBs,tZd„Zd„Zd„Zd„ZRS(NcCsti|dƒdS(Ntplain(R RR(R((RRbscCstS(N(tFalse(R((RR8dscCs ti|ƒS(N(tdefaulttPoolConnectionProviderR(RR((RR<fscCstiS(N(tbasetEngine(R((RR>hs(R R RR8R<R>(((RRFas   tThreadLocalEngineStrategycBs,tZd„Zd„Zd„Zd„ZRS(NcCsti|dƒdS(Nt threadlocal(R RR(R((RRmscCstS(N(tTrue(R((RR8oscCs ti|ƒS(N(RNtTLocalConnectionProviderR(RR((RR<qscCstiS(N(RNtTLEngine(R((RR>ss(R R RR8R<R>(((RRMls   N(R tsqlalchemy.engineRKRIRNR#t sqlalchemyR)RRR3RtobjectRR RFRM( R3R RIR)R#RNRKRMRRRRF((Rt?s  G