sqlite3.register_converter()

sqlite3.register_converter(typename, callable)

Registers a callable to convert a bytestring from the database into a custom Python type. The callable will be invoked for all database values that are of the type typename. Confer the parameter detect_types of the connect() function for how the type detection works. Note that the case of typename and the name of the type in your query must match!

doc_python
2016-10-07 17:42:41
Comments
Leave a Comment

Please login to continue.