Open avinassh opened 10 months ago
I am trying to write a bash script to extract some data from the database in csv format and typically I would do this as
sqlite3 my.db ".mode csv" ".headers on" "$sql_query"
Unfortunately, this doesn't work using the turso CLI (Error: accepts between 1 and 2 arg(s), received 3)
turso db shell my-db ".mode csv" "$sql_query"
reported here: https://discord.com/channels/933071162680958986/1193507982076547082/1193507982076547082
Could this be done by adding a new flag? Example like a --query-cmds flag followed by a list of strings/commands
--query-cmds
turso db shell my-db --query-cmds ".mode csv" ".head on" "$sql_query"
I am trying to write a bash script to extract some data from the database in csv format and typically I would do this as
Unfortunately, this doesn't work using the turso CLI (Error: accepts between 1 and 2 arg(s), received 3)
reported here: https://discord.com/channels/933071162680958986/1193507982076547082/1193507982076547082