Register a function to adapt Python objects to SQLite values.
sqlite3/register_adapter
register_adapter