-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor detected spam storage to support multiple database types
- Replace single query string with a query map for different DB engines - Use `engine.PickQuery` to select appropriate queries based on DB type - Refactor schema and index creation logic for better error handling - Use `ds.db.Adopt` for query adoption, enhancing flexibility - Add a check for nil DB connection during DetectedSpam initialization
- Loading branch information
Showing
2 changed files
with
72 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters