1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-02-21 12:34:56 +00:00
Commit graph

126 commits

Author SHA1 Message Date
King_DuckZ
f179d1fac5 Give more details when plugin discovery fails for a legit reason.
Skip files the whose mime type is not application/x-sharedlib,
which would be the ones allowed to fail loading. All errors on
failed dlopen() attempts now cause the code to throw.
2017-08-23 20:52:49 +01:00
King_DuckZ
d4d3566421 Move SingleFileTask into a file of its own so it can be used elsewhere. 2017-08-23 11:00:13 +01:00
King_DuckZ
42d6ad0eac Accept c-string queries. 2017-08-19 15:15:43 +01:00
King_DuckZ
6047045982 Add missing header file 2017-08-18 00:34:47 +01:00
King_DuckZ
93fe091303 Put the generic split() in its own file. 2017-08-18 00:24:54 +01:00
King_DuckZ
527f8cedea Add a generic split() function. 2017-08-18 00:24:54 +01:00
King_DuckZ
106b72bf0e Skip mime errors if user passed --ignore-errors. 2017-08-12 21:33:57 +01:00
King_DuckZ
ccf13d7dfe Buildfix when DINDEXER_WITH_MEDIA_AUTODETECT=off 2016-07-15 17:45:48 +01:00
King_DuckZ
7a3438def6 Fix namespaces.
Build works, except for incredis which I'm going to move out anyways.
2016-07-14 16:02:15 +01:00
King_DuckZ
a5477c99cf Import duckhandy as a submodule and fix includes. 2016-07-14 15:52:03 +01:00
King_DuckZ
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
King_DuckZ
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
King_DuckZ
12c062b939 Prevent values being stolen accidentally and provide proper overloads. 2016-07-13 12:17:54 +01:00
King_DuckZ
01be1a94e5 Bugfix - files where not being stored reliably.
Some crashes were also happening.
2016-07-12 13:40:12 +01:00
King_DuckZ
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
King_DuckZ
62727d6831 Make sequence_bt more generic by taking the index type as well. 2016-07-11 16:45:46 +01:00
King_DuckZ
e70b137002 Fix sporadic failure in lexical_cast. 2016-07-11 16:45:24 +01:00
King_DuckZ
f12d498e40 Move split_tags to core. 2016-07-10 17:12:19 +01:00
King_DuckZ
5f5b2b5770 New core library. 2016-07-08 14:49:40 +01:00
King_DuckZ
0df8c5875c Buildfix on gcc 5.4 2016-06-30 12:41:01 +01:00
King_DuckZ
2e68e639bf Support conversion to lower case hex. 2016-06-29 22:48:50 +01:00
King_DuckZ
7957a94980 Move cmake_on_off.h to helpers dir. 2016-06-20 19:04:24 +01:00
King_DuckZ
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
King_DuckZ
f9387114bf Implement handling of signed types and fix some build errors. 2016-06-15 20:48:05 +01:00
King_DuckZ
2c5030f929 Add dedicated tests for lexical_cast and fix failures I found. 2016-06-15 17:27:32 +01:00
King_DuckZ
7ae8b95599 Rename casts.hpp to lexical_cast.hpp 2016-06-15 15:05:25 +01:00
King_DuckZ
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
King_DuckZ
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
King_DuckZ
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
King_DuckZ
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
King_DuckZ
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
King_DuckZ
2057c797cb SetRecordData is not really needed anymore so get rid of it
Always use SetRecordDataFull now.
2016-06-04 01:13:26 +02:00
King_DuckZ
7117ff7be2 Save and read label and uuid to the database 2016-06-04 01:03:20 +02:00
King_DuckZ
61b0b586cf Clean up code to handle failed attempts at loading backend plugins. 2016-06-02 21:16:19 +02:00
King_DuckZ
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
King_DuckZ
dfe3655296 Re-enable navigate in the postgre plugin. 2016-06-02 09:35:33 +02:00
King_DuckZ
780cd9b0ca Re-enable locate in the postgre plugin. 2016-06-01 10:29:23 +02:00
King_DuckZ
470738fc1b Fix typo - correct type is 16 bit int, not 64 2016-06-01 10:08:56 +02:00
King_DuckZ
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
King_DuckZ
8f51f82abc Re-enable delete subcommand 2016-05-31 10:30:16 +02:00
King_DuckZ
df2e04a029 Fix tagging.
Tag functions are now fully available through the new plugin.
2016-05-27 21:51:15 +02:00
King_DuckZ
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
King_DuckZ
20b2a8695e Load postgresql plugin and use that in tag.
Only partially implemented.
2016-05-27 20:31:07 +02:00
King_DuckZ
064fc0cf1a Create intermediate backend lib to help loading backend plugins. 2016-05-27 20:28:26 +02:00
King_DuckZ
1fd51f75ba Rename namespace dinbpostgres to dindb.
It's so much better!
2016-05-24 09:57:04 +02:00
King_DuckZ
8f98495049 Make dindexer-common depend on postgre backend and fix build 2016-05-24 09:57:03 +02:00
King_DuckZ
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
King_DuckZ
70caa9e26c Move db dbsource files to the postgresql backend lib and rename namespace. 2016-05-24 09:57:02 +02:00
King_DuckZ
baa67138eb Move MaxSizedArray to helpers include dir. 2016-05-24 09:57:02 +02:00
King_DuckZ
b6d45eee3c Move db scan functions to the postgresql backend lib. 2016-05-22 03:17:26 +01:00