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
0cb91fb9ca
Put LIMIT number into a common header.
2016-06-02 09:42:32 +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
c009c07c9d
Temporarily disable broken stuff
2016-05-27 21:50:09 +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
c97a08860f
Get rid of the DB_BACKEND build setting.
2016-05-27 20:29:32 +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
45fc758915
Print db backend name in --builtin view
2016-05-24 09:57:03 +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
62bf47d0ed
Warning fix on clang
2016-05-19 20:25:00 +02:00
6e9203faa0
Buildfix on some recent clang versions
2016-05-19 20:17:28 +02:00
7cfc25aeeb
Implement tag deletion.
2016-05-19 20:17:05 +02:00
adcdf56254
Extract some code in a separate function.
2016-05-19 09:48:22 +02:00
43cbad47cb
Fix scan progress messages not clearing up correctly
2016-05-18 22:28:00 +02:00
42acc42d8f
Fix wrong assertions.
2016-05-18 22:25:41 +02:00
b52271e2b8
Add an option to limit tagging to a given set only.
2016-05-18 21:18:46 +02:00
9d76957c7f
Allow multiple globs on the command line to tag command.
2016-05-18 10:26:34 +02:00
ad556f4be4
Use new case sensitivity option from glob2regex
...
Don't append crap manually to regular expressions.
2016-05-18 10:25:23 +02:00
5da1d41ddf
Move case sensitivity option into glob2regex.
2016-05-18 10:17:05 +02:00
bc1ff586c0
Update db schema with tags column, which I had forgotten :(
2016-05-18 00:51:23 +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
21c5b3efcb
Allow tagging files by glob
...
Tagging by ID is still possible using the --ids switch, which takes a
comma-separated list of IDs. However only one mode is allowed at time,
so either tag by glob OR tag by ID.
2016-05-17 19:54:05 +02:00
67bdabb548
Allow --tags option in locate command.
...
When a comma separated list of tags is specified, locate searches for
filenames matching the given glob that also belong to all of the
specified tags.
2016-05-16 23:45:08 +02:00
5832ca3374
Move split_tags to common lib.
2016-05-16 09:59:10 +02:00
1192ce7c18
Warning fix on gcc
2016-05-14 16:14:58 +02:00
70ec3e10d9
Update build switches.
2016-05-14 16:10:47 +02:00
354c760a07
Use the same compiler passed to cmake for libpqtypes.
...
Don't bother the user with silly messages, if the compiler doesn't
work then it just won't work. But at least try, u damn script!
2016-05-13 19:54:25 +01:00
0f308455ca
Implement tagging files by database id
2016-05-13 20:48:03 +02:00
537023dbfa
Fix build error when passing a vector<string_ref> to query()
2016-05-13 20:46:13 +02:00
61fa9628a5
Rename AstType to GlobExpression
2016-05-13 19:22:33 +02:00
94ebfbdfcb
Move git hash into a dedicated .h so less compiling happens after a commit
2016-05-13 10:21:45 +02:00
fde1355653
Enable searching by glob in locate command.
2016-05-12 20:49:11 +02:00
253af1a3ad
Throw if glob parsing fails.
...
This also fixes the warning about an unused boolean variable.
2016-05-12 20:02:33 +02:00
217b41ace2
Add new tests for glob2regex and try to fix the failing one
...
glob2regex is not 100% accurate yet, but it works at least
for the cases in the accompanying unit test.
2016-05-12 10:23:47 +02:00
05aaaebe0d
Import glob2regex
...
It's still missing ast optimization and some code cleanup is also
needed, but it should be working in the general case.
Also write a small unit test for it.
2016-05-11 20:36:23 +02:00