def connect_database(url):
 db = _connect_database(url)
 db.copy = (lambda : _connect_database(url))
 return db

def connect_database ( url ) : db = _connect_database ( url ) db . copy = ( lambda : _connect_database ( url ) ) return db
create database object by url mysql: mysql+type://user:passwd@host:port/database sqlite: # relative path sqlite+type:///path/to/database .