I'd suggest you look at Data Transformer (disclaimer - I'm its developer). It can convert CSV (and others) to SQL. The generated SQL contains "insert" statements for each line and a "create table" statement.
The app works offline, and your data never leaves your computer.
You can get it from the Mac App Store or the Microsoft Store.