Harish Vishwanath wrote: > Hello, > > Thanks for your input. I consulted PySqlite's docs : > > They have something like Connection.text_factory, which is by default set > to > Unicode. If it is set to str, that is., > > connection.text_factory = str, then it wont convert strings to Unicode. > > I glanced thru SQLA code, but I couldn't find a place where I can pass > this > option to SQLA so that it can in turn use the above option while obtaining > the connection from PySqlite. > > Please let me know if there is a way of achieving this. Thank!
use the creator argument or the listeners argument to create_engine: create_engine('sqlite://', creator=my_connect_func) or create_engine('sqlite://foo.bar', listeners=[MyListener()]) MyListener is a sqlalchemy.interfaces.PoolListener. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalchemy@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---