What is the correct way to insert the values of numpy integer objects into databases in python 3? In python 2.7 numpy numeric datatypes insert cleanly into sqlite, but they
Rather than:
sqlite3.register_adapter(np.int64, lambda val: int(val))
You can use:
sqlite3.register_adapter(np.int64, int)