tbls icon indicating copy to clipboard operation
tbls copied to clipboard

Support *.sql dumps as datasources

Open hamin opened this issue 10 months ago • 1 comments

Hello, first off what an amazing tool! Thank you!

I was wondering if you have any plans or thoughts on supporting native .sql schema dump files as s source? Currently only direct connections and the schema.json are supported which is great.

Would be great to support schema dump sql files. Comes in handy using migration tools where .sql versions of the schema is tracked and we can rely on that instead of connections to databases (specifically I'm thinking of dbmate)

totally fine if you feel like this is out of scope for what your vision for this library is.

Thanks again :)

hamin avatar May 06 '25 16:05 hamin

@hamin Thank you for your request.

tbls does not provide a feature to dump DDL from two perspectives.

  1. Existing RDBs often have official DDL dump tools (such as mysqldump).
  2. It would be costly to make tbls support DDL dump for all data sources it supports.

k1LoW avatar May 18 '25 05:05 k1LoW