ldo/ShaderTools — comment on commit 2438d8ac3ee32ba48207e4b37132a925875d48ec
File:  line 0
By ldo:

Also the previous code went to all the trouble of prepending and appending quotation marks to field values. This is all gone, instead the InsertRecord function takes care of converting all field values to the appropriate string literal form required for SQLite3, by using the SQLString function. It is best to do this sort of thing as close to the lower-level interface as possible (as here), so that the rest of the Python code can treat Python values as Python values, without having to worry about the appropriate syntax for another language.