Custom DBAPI connect() arguments
Custom arguments used when issuing the connect()
call to the underlyingDBAPI may be issued in three distinct ways. String-based arguments can bepassed directly from the URL string as query arguments:(第一种方式URL query string:加上"?charset=utf8")
db = create_engine('postgresql://scott:tiger@localhost/test?argument1=foo&argument2=bar')
If SQLAlchemy’s database connector is aware of a particular query argument, itmay convert its type from string to its proper type.