Commit graph

16 commits

Author SHA1 Message Date
mrepetto
ad73b09881 - Added support for Postgresql 2019-09-20 16:04:57 -03:00
mrepetto
78dfef04d3 migrated code to python 3.6.6 and refactored some code to improve it. 2019-09-18 12:39:59 -03:00
Will Drevo
254a79cdf5 Completed integration for SHA1 file hashing to avoid duplicates 2015-04-19 15:12:16 -04:00
Wessie
e071804ea5 Fixed the issue of the default database not being imported.
Fixed a bug in the SQL database pertaining to the use of grouper.
Made SQLDatabase pickleable, for better multiprocessing support.
2013-12-21 12:01:05 +01:00
Wessie
f276efdf32 Cleaned up database.py
- Moved SQLDatabase to a SQL specific file
- Database class is now an abstract base class
- Cursor moved into SQL specific file
- Allowed for multi-database support in the future
2013-12-20 18:16:35 +01:00
Wessie
3b72768f94 Fixed various small things that weren't caught before.
- Fixes SQL queries for table creations
- Table creation is now down in reverse order to accompany the foreign key
- Fixed a typo in the BaseRecognizer that caused it to not work
- Changed configuration passed to Dejavu into a (nested) dictionary
2013-12-18 00:31:57 +01:00
Wessie
1c9eddc3a2 Merged with fingerprinter and recognizer cleanup 2013-12-17 23:19:45 +01:00
Wessie
05adf3bc31 Changed default cursor type for mysql from DictCursor to Cursor. 2013-12-17 22:02:59 +01:00
Wessie
6f4cadafbb Added a foreign key relationship to the create table statements.
- MySQL will also use the InnoDB engine now.
- Added a ping call in the MySQL Cursor cache mechanism
- Added a rollback call when a MySQLError occurs
- Removed 'delete_orphans' which is not needed anymore due to foreign key constraints and delete on cascade
- Changed SQLDatabase to accept options to create a cursor factory, instead of taking a pre-created cursor factory
2013-12-17 21:55:05 +01:00
Vin
25bf97e813 Changed a method to fit the new hash tuples 2013-12-17 16:37:06 +00:00
Wessie
bed11f3de7 Switched back to MySQLdb for better support of executemany. 2013-12-17 02:00:05 +01:00
Vin
ab2cf9d58b Changed insert_hashes to fit the new data format 2013-12-17 01:57:18 +01:00
Wessie
0bd7219b87 Cleaned up the database driver.
- The SQLDatabase class now uses a context manager for mysql access.
- Most of the error handling is done by the context manager now
- Optimized several methods that returned a list into returning a generator
- Optimized return_matches to use an IN query instead.
- Other small fixes.
2013-12-17 01:39:03 +01:00
worldveil
9aa80ff87c added MIT license fixes #5, also fixes #6 2013-12-16 10:28:22 -06:00
worldveil
51680735db fixes #1 and fixes #2. also identifies issue with DELETE_ORPHANS sql command 2013-11-29 22:08:25 -05:00
worldveil
90a93bc47b moved to github 2013-11-18 21:51:27 -05:00