dyedgreen / deno-sqlite

Deno SQLite module
https://deno.land/x/sqlite
MIT License
409 stars 36 forks source link

Support dumping and recovering #248

Closed fabiospampinato closed 1 year ago

fabiospampinato commented 1 year ago

SQLite's shell has two pretty cool commands:

I don't know if it would be practical to add support for these functions to deno-sqlite, but it sure would be nice, imo.

dyedgreen commented 1 year ago

We currently have serialize and deserialize. Do these do what you want?

fabiospampinato commented 1 year ago

No. Neither of them return me a SQL string. And serialize doesn't allow me to extract data from corrupted databases.

dyedgreen commented 1 year ago

I don't think those functions exist directly in the SQLite API. I'd be curios to see how the CLI implements those commands; but I'd prefer to only expose things that are possible with the SQL C API directly (transliterated to a more JS friendly API where possible).

fabiospampinato commented 1 year ago

Sure, no problem 👍