Assume I want to store via sqlite3 a simple list of strings:
my_list = ['a','b','c']
or a python object with properties and methods.
What I tried so far is to serialize (pickle) my_list, and the returned byte representation is b'\x80\x03]q\x00(X\x01\x00\x00\x00aq\x01X\x01\x00\x00\x00bq\x02X\x01\x00\x00\x00cq\x03e.'. However, \ cannot be stored within a BLOB variable.
Should I use a string variable instead, or should I find a way to convert the serialized object into a different format to get rid of the \ before storing?
Note that I'm learning SQL and the fundamentals of data conversion.
\are not part of the byte string; they're introduced when you print it out\; if you're having trouble, you're probably missing the use of placeholders and parameters when running your SQL statements