simonw/datasette-app

Handle CSV columns with square braces

simonw opened this issue · 3 comments

https://twitter.com/victorianoi/status/1438073122817810435

kudos the desktop app! Unfortunately, I have plenty of CSVs with columns using [] brackets for serializing arrays :/

58FA0B5B-98FC-4748-87DA-8AD71EC3270E

This is actually an error from sqlite-utils due to this issue:

Oh wow, the bug I filed in Python about this has since been fixed! https://bugs.python.org/issue39652

I think it's best to still keep [ and ] out of column names though. Transforming them into ( and ) seems reasonable - but should that happen here or in sqlite-utils? I think in sqlite-utils.