lana-k / sqliteviz

Instant offline SQL-powered data visualisation in your browser
https://sqliteviz.com
Apache License 2.0
2.15k stars 117 forks source link

Pre-defined databases #108

Closed benyn closed 1 year ago

benyn commented 1 year ago

Hi Lana,

I just discovered sqliteviz and I'm loving it. But is there a way to programmatically load a predefined SQLite database file instead of having to manually drag and drop a .sqlite file each time?

I'm running sqliteviz locally via a static HTTP server, and I'm looking for a config option similar to predefined inquiries. If such an option doesn't exist, could there be a JavaScript function I could call to load a database file?

lana-k commented 1 year ago

Hi,

I'm glad that you like it. Currently this RFE is in progress. When it's finished you will be able to set the database file url in the query parameters and it will be loaded automatically.

lana-k commented 1 year ago

Generating a share link is ready. See https://sqliteviz.com/docs/sharing/