#56 Database improvements

已合并
carlos.garcia 6 年之前 将 3 次代码提交从 stefan.schmidt/db_versioning合并至 SPIN/master

This adds two improvements to the statistics database.

  • Code was added to use SQLite's user_version field to specify database versions. When the database is outdated, ID2T automatically regenerates the database. This depends on the developers manually changing DB_VERSION in statistics_db.h whenever the structure of the database or the meaning of fields in the database changes.
  • I added a byteCount field to ip_protocol and ip_ports. I implemented it like issue #7 suggested, so the fields contain the number of bytes instead of kbytes like ip_statistics. Let me know if you'd prefer kbytes.
This adds two improvements to the statistics database. * Code was added to use SQLite's user_version field to specify database versions. When the database is outdated, ID2T automatically regenerates the database. This depends on the developers manually changing **DB_VERSION** in statistics_db.h whenever the structure of the database or the meaning of fields in the database changes. * I added a byteCount field to ip_protocol and ip_ports. I implemented it like issue #7 suggested, so the fields contain the number of bytes instead of kbytes like ip_statistics. Let me know if you'd prefer kbytes.
Carlos Garcia 评论于 6 年之前
所有者

This is a great change. Could you please add this information to the WIKI as well?

This is a great change. Could you please add this information to the WIKI as well?
该合并请求已经成功合并!
登录 并参与到对话中。
未选择标签
Bug
未选择里程碑
未指派成员
2 名参与者
正在加载...
取消
保存
这个人很懒,什么都没留下。