v1.0.0.dev14: DB Revamp
·
175 commits
to master
since this release
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
hostsandextrasas well as a refinedcredentialstable - 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
--verboseis not set
Fixes
- Global filter configuration renamed from
AnswerTotoTarget - Filter configuration import fixed
What's Changed
- [PATCH] Filter Rules by @MatrixEditor in #14
- [DEV] Database model revamp by @MatrixEditor in #15
Full Changelog: v1.0.0.dev13...v1.0.0.dev14