csv-to-sql-insert icon indicating copy to clipboard operation
csv-to-sql-insert copied to clipboard

Creating the associated Table before inserting into it

Open itsoluwatobby opened this issue 1 year ago • 2 comments

itsoluwatobby avatar Dec 22 '23 19:12 itsoluwatobby

Hello Dave! i was thinking a Table should be created before inserting into the table

And also, we could add a flag to print out a preview of the sql statement after file creation.

I already opened a pull request on this two issues provided it'll be useful.

itsoluwatobby avatar Dec 22 '23 20:12 itsoluwatobby

Hi and thanks for the suggestion! This would not fit my use case, but others might want it. I want to keep this lightweight if possible as well. I used the output file as a statement I could quickly paste into my SQL console.

Let's leave it open for discussion here. Your idea may get some others to bump it. And thanks!! 🎉

gitdagray avatar Dec 22 '23 22:12 gitdagray