
- #SQLITE IMPORT CSV SYNTAX ERROR HOW TO#
- #SQLITE IMPORT CSV SYNTAX ERROR SERIES#
Parsing CSV is annoying and filled with booby traps. The program we want to write is simple: it needs to read rows from a CSVįile, extract the fields of interest, and insert rows into the sqlite
#SQLITE IMPORT CSV SYNTAX ERROR HOW TO#
knowledge of how to use raw SQL – we won’t use Gorm for this taskĪnd we’ll do it in less than 75 lines of code.
a command that loads data from the Goodreads CSV export into. It just needs a backend administrativeĬommand to perform the import as a one-off process. I only need to do this once, so I don’t need to mess around I’ve got a CSV dump of my Goodreads books, and I want to import those intoĪklatan’s db. Administrative process like backups,ĭatabase migrations, or – the thing we’re going to do today – bulk data Sometimes there are operations that need to be done on the app that don’t #SQLITE IMPORT CSV SYNTAX ERROR SERIES#
This is the eighth in a series of articlesĪbout writing a small reading list app in Go for personal use.