Using SQLite in a Python program

后端 未结 8 701
逝去的感伤
逝去的感伤 2020-12-31 06:28

I have created a Python module that creates and populates several SQLite tables. Now, I want to use it in a program but I don\'t really know how to call it properly. All the

相关标签:
8条回答
  • 2020-12-31 07:18

    See this solution at SourceForge which covers your question in a tutorial manner, with instructive source code :

    y_serial.py module :: warehouse Python objects with SQLite

    "Serialization + persistance :: in a few lines of code, compress and annotate Python objects into SQLite; then later retrieve them chronologically by keywords without any SQL. Most useful "standard" module for a database to store schema-less data."

    http://yserial.sourceforge.net

    0 讨论(0)
  • 2020-12-31 07:18

    Yes, I was nuking out the problem. All I needed to do was check for the file and catch the IOError if it didn't exist.

    Thanks for all the other answers. They may come in handy in the future.

    0 讨论(0)
提交回复
热议问题