How to connect to existing SQLite DB using tortoise ORM?

806 Views Asked by At

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

There are 1 best solutions below

0
On

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.