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
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.