databases icon indicating copy to clipboard operation
databases copied to clipboard

How to get 'engine' from databases?

Open zillionare opened this issue 5 years ago • 0 comments

I want to autoload metadata from database, but I don't know how to get the engine from databases: ` database = DataBase() await database.connect()

meta = MetaData() users = Table('user', meta, autoload=True, autoload_with=database) ` it will complain that 'Database' object has no attribute 'run_callable''

How should I do?

zillionare avatar Oct 28 '20 03:10 zillionare