1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2024-12-03 02:15:41 +00:00
Commit graph

120 commits

Author SHA1 Message Date
106b72bf0e Skip mime errors if user passed --ignore-errors. 2017-08-12 21:33:57 +01:00
ccf13d7dfe Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off 2016-07-15 17:45:48 +01:00
7a3438def6 Fix namespaces.
Build works, except for incredis which I'm going to move out anyways.
2016-07-14 16:02:15 +01:00
a5477c99cf Import duckhandy as a submodule and fix includes. 2016-07-14 15:52:03 +01:00
a5d9d6b716 Remove helpers from this repo.
They have been pulled out into a separate git repository.
Adding that as a submodule in an upcoming commit.
2016-07-14 15:27:11 +01:00
dc814b4d09 Move flatinsertin2dlist to postgresql backend.
It's the only place using that header and its use is so
specialized I struggle to even remember what it does.
2016-07-14 11:24:41 +01:00
12c062b939 Prevent values being stolen accidentally and provide proper overloads. 2016-07-13 12:17:54 +01:00
01be1a94e5 Bugfix - files where not being stored reliably.
Some crashes were also happening.
2016-07-12 13:40:12 +01:00
417e7105d3 Import Sprout. This is to fix the build on clang.
Sprout is needed because pow, log2 and log10 are constexpr on gcc,
but that's nonstandard. Sprout provides the constexpr version of
those functions.

Also fix warnings. I still get plenty of warnings about some suggested
paretheses, but it seems to be a bug from clang. See
https://llvm.org/bugs/show_bug.cgi?id=21629 for the bug report.
2016-07-11 19:30:21 +01:00
62727d6831 Make sequence_bt more generic by taking the index type as well. 2016-07-11 16:45:46 +01:00
e70b137002 Fix sporadic failure in lexical_cast. 2016-07-11 16:45:24 +01:00
f12d498e40 Move split_tags to core. 2016-07-10 17:12:19 +01:00
5f5b2b5770 New core library. 2016-07-08 14:49:40 +01:00
0df8c5875c Buildfix on gcc 5.4 2016-06-30 12:41:01 +01:00
2e68e639bf Support conversion to lower case hex. 2016-06-29 22:48:50 +01:00
7957a94980 Move cmake_on_off.h to helpers dir. 2016-06-20 19:04:24 +01:00
53a42fa7c0 Add bin tag to lexical_cast.
This also fixes a subtle bug: the size passed to MaxSizedArray in
int_to_string() was calculated on the max value of type F, but when
F was a signed type the max would only be for example 31 bits.
Conversion of negative numbers would then fail with an assertion.
2016-06-15 23:04:46 +01:00
f9387114bf Implement handling of signed types and fix some build errors. 2016-06-15 20:48:05 +01:00
2c5030f929 Add dedicated tests for lexical_cast and fix failures I found. 2016-06-15 17:27:32 +01:00
7ae8b95599 Rename casts.hpp to lexical_cast.hpp 2016-06-15 15:05:25 +01:00
4b30fabbe4 New string_to_tiger function.
Comes with unit test that indirectly also tests the
previously added lexical_cast.
2016-06-15 14:57:52 +01:00
7db82f83d9 Add custom lexical_cast function that can handle hex values and string_ref.
Negative values are not supported.
2016-06-15 14:54:24 +01:00
9491f2eb47 Move sequence_bt and string_bt into helpers.
They are useful in the Redis backend and in helpers itself.
People wanting to use pq alone from this project will have to cope and
search for all the needed files.
2016-06-15 14:53:07 +01:00
c1e79c435b New ScanIterator class.
Not yet tested and only supporting the SCAN command for now, more to
come.
Also includes some refactoring that was needed to make everything work.
2016-06-10 20:33:11 +02:00
a1490c3096 Make split_tags a bit more generic so I can reuse it
I need it in an upcoming commit where I want to split on ':'
2016-06-06 19:52:42 +02:00
2057c797cb SetRecordData is not really needed anymore so get rid of it
Always use SetRecordDataFull now.
2016-06-04 01:13:26 +02:00
7117ff7be2 Save and read label and uuid to the database 2016-06-04 01:03:20 +02:00
61b0b586cf Clean up code to handle failed attempts at loading backend plugins. 2016-06-02 21:16:19 +02:00
e2275ce5db Add a backend interface version number for eventual future changes.
Note that the interface is still a work in progress and might change
while still keeping the same interface version. This is going to be true
until the first stable release of this project (non beta).
2016-06-02 10:01:19 +02:00
dfe3655296 Re-enable navigate in the postgre plugin. 2016-06-02 09:35:33 +02:00
780cd9b0ca Re-enable locate in the postgre plugin. 2016-06-01 10:29:23 +02:00
470738fc1b Fix typo - correct type is 16 bit int, not 64 2016-06-01 10:08:56 +02:00
3608d7b76c Re-enable scan in the postgre plugin.
This also adds a public dependency to machinery in the header-only
backend project. This is because the backend does need functionality
from machinery, such as FileRecordData and TigerHash.
2016-05-31 20:03:31 +02:00
8f51f82abc Re-enable delete subcommand 2016-05-31 10:30:16 +02:00
df2e04a029 Fix tagging.
Tag functions are now fully available through the new plugin.
2016-05-27 21:51:15 +02:00
3927f945ca Move postgresql header files to the src directory
They are private, and anyways no client needs to include anything at all
from the various backends.
2016-05-27 21:49:50 +02:00
20b2a8695e Load postgresql plugin and use that in tag.
Only partially implemented.
2016-05-27 20:31:07 +02:00
064fc0cf1a Create intermediate backend lib to help loading backend plugins. 2016-05-27 20:28:26 +02:00
1fd51f75ba Rename namespace dinbpostgres to dindb.
It's so much better!
2016-05-24 09:57:04 +02:00
8f98495049 Make dindexer-common depend on postgre backend and fix build 2016-05-24 09:57:03 +02:00
fb722719b2 Move postgresql backend's include files to a new db subdir.
Fix build and remove unneeded include in tag.cpp
2016-05-24 09:57:03 +02:00
70caa9e26c Move db dbsource files to the postgresql backend lib and rename namespace. 2016-05-24 09:57:02 +02:00
baa67138eb Move MaxSizedArray to helpers include dir. 2016-05-24 09:57:02 +02:00
b6d45eee3c Move db scan functions to the postgresql backend lib. 2016-05-22 03:17:26 +01:00
641261306f Move db locate functions to the postgresql backend lib. 2016-05-22 03:05:58 +01:00
45ecdb9a2b Move db delete to the postgresql backend lib. 2016-05-22 03:02:39 +01:00
5203fbece2 Move db tagging functions to a new postgresql backend lib. 2016-05-22 02:54:49 +01:00
42acc42d8f Fix wrong assertions. 2016-05-18 22:25:41 +02: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