Skip to content

v1.0.0.dev14: DB Revamp

Choose a tag to compare

@MatrixEditor MatrixEditor released this 02 Nov 11:54
· 175 commits to master since this release
8009bc3

This release introduces breaking changes to the database model and adds some type hints to the code base.

Caution

This version is incompatible with previous Dementor releases when using an existing old database file.

There are also two new CLI flags to declare a blacklist and whitelist on-the-fly:

Whitelist:

$ Dementor -I <IFACE> --target="SHARE,127.0.0.1"

Same can be done to set a blacklist with (--ignore/-i)

Changes

  • Database: New tables hosts and extras as well as a refined credentials table
  • Database connection configuration can be changed to use other dbms like mysql or postgres. New configuration attributes are:
    # specify custom dialect to use
    Dialect = "sqlite"
    Driver = "pysqlite"
    # either specify the complete URL or the path (relative, 
    # absolute or relative to workspace dir)
    # Url = "sqlite:///:memory:"
    Path = "Dementor.db"
  • QA: added type hints to all configuration classes
  • The logger now emits all log messages to the file if file logging is enabled even if --verbose is not set

Fixes

  • Global filter configuration renamed from AnswerTo to Target
  • Filter configuration import fixed

What's Changed

Full Changelog: v1.0.0.dev13...v1.0.0.dev14