RamiAwar / dataline

Chat with your data - AI data analysis and visualization on CSV, Postgres, MySQL, Snowflake, SQLite...
https://dataline.app
GNU General Public License v3.0
129 stars 6 forks source link

S14.00 bug sample db persistence #203

Closed RamiAwar closed 3 weeks ago

RamiAwar commented 3 weeks ago

Issue #, if available: Closes #201

Description of changes: Bug happened in binaries where sample DSN was referencing a file inside the binary. This resulted in linking to var folders on different OSes, which are bound to get deleted.

With this change, we copy the SQLite file to the data folder on user's machine first, and then create the connection referencing that.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.