How to connect to existing SQLite DB using tortoise ORM?

Viewed 473

I have existing SQLite DB with large data in it. I want to query the data asynchronously using tortoise ORM. How do I connect the database and query the data?

1 Answers

There is not magical tool. The inspectdb option in Aerich works for mysql. You can create your models and read data from old sqlite db by driver and insert into new database.

The bulk_create method can improve the process time.

Related