b6d45eee3c
Move db scan functions to the postgresql backend lib.
2016-05-22 03:17:26 +01:00
6b5fe85571
Make mime_type and mime_charset on the fly
...
For the same motivation explained in the parent commit, make string_refs
on the fly instead of storing them.
2016-05-17 21:12:44 +02:00
8c03ba15bc
Crash fix - make path on the fly
...
Newer versions of gcc have a small string optimizations that makes
moving FileRecordData objects behave incorrectly. When a small string is
moved, string_refs into it become invalid. Making a path on the fly
using the path() method also has the side effect of making
FileRecordData smaller in size.
2016-05-17 20:21:44 +02:00
22614432a9
Detect content type after scanning and save to DB.
2016-02-22 19:44:48 +01:00
f20d73bdab
Update year on copyright notice.
2016-02-05 21:02:40 +01:00
588d735593
Add missing $3 for the new app_name parameter.
...
Fixes crash after scanning a disk.
2016-01-22 15:54:39 +00:00
913cdbd59d
Add app_name column to sets.
2016-01-21 20:30:38 +00:00
e2438f77fd
Fix inserting new files into db.
2016-01-11 14:20:05 +00:00
7e737f56a2
Tell libpqtypes to not make copies of strings it receives.
...
The wrapper now copies boost::string_ref into std::string so
it's always safe to pass a string ref, even when it's not
null-terminated.
2016-01-11 12:53:37 +00:00
fa12bb2d74
Bugfix - don't store absolute paths to files in the DB.
...
This was introduced in a previous commit.
2016-01-11 12:53:37 +00:00
6edfb08383
Store mime type and charset in the db.
2016-01-06 02:18:42 +00:00
c7b44f6368
Use parametric queries.
2016-01-05 13:30:17 +00:00
f5356e0c29
Change namespace in machinery to mchlib.
2016-01-05 12:49:27 +00:00
4e29200b47
Move scan's core code into new machinery lib.
2016-01-05 12:35:46 +00:00
1532d3c083
Fix reading values from ResultSet/Row.
...
Send correct group_id to the db in a safer way.
2015-12-31 00:38:44 +00:00
9bb5689d48
Remove query_void() methods. query() is just fine.
2015-12-30 10:20:52 +00:00
a3f44bce8d
Use new parametric query_void() instead of manual insert into sets.
2015-12-29 18:11:15 +00:00
390b69e150
Use parametric sql functions to insert new files.
...
Refactoring so that there are no extra copies of data being inserted.
2015-12-29 17:32:22 +00:00
74afa9f502
Rename settings stuff as it got moved to commonlib.
2015-12-12 17:41:34 +00:00
6e7176be10
Move DBSettings to common lib.
2015-12-12 17:23:50 +00:00
a0b87e6a2d
Manage read errors.
...
If instructed to continue on errors, store info correctly in the db.
2015-12-10 12:13:16 +00:00
87bc031e65
Rename update action to scan.
2015-12-04 19:40:02 +00:00