jeudi 18 février 2016

sqlite3: Don't apply data type converter

I have a SQL database I query using sqlite3 in Python and I have created a custom data type called FOOBAR. Columns with this data type store a string which is a file path. When queried, the converter opens the file and returns some data, which works perfectly.

I was wondering if there is any way I can pull just the file path string out of the column, i.e. selectively NOT apply the converter for this custom data type from time to time.

Thanks!

Aucun commentaire:

Enregistrer un commentaire