slingdata-io / sling-cli

Sling is a CLI tool that extracts data from a source storage/database and loads it in a target storage/database.
https://docs.slingdata.io
GNU General Public License v3.0
301 stars 16 forks source link

DuckDB sling conns test on a file that doesn't exist #217

Closed alberttwong closed 3 months ago

alberttwong commented 3 months ago
sling conns set DUCKDB type=duckdb instance=/Users/atwong/file.db
atwong@Albert-CelerData ~ % sling conns test DUCKDB
9:19AM INF success!

It's success on a file that doesn't exist (file.db)

flarco commented 3 months ago

Yea, I'll update that. It's cause duckdb creates the file if it's doesn't exists...

flarco commented 3 months ago

Changed behavior to this:

$ ./sling conns test duckdb
2024-03-13 09:43:54 WRN The file /tmp/duck.temp.db does not exist, however it will be created if needed.
2024-03-13 09:43:54 INF success!