Jan Steemann
8e090e642e
removed "createCollection" attribute from APIs
2016-05-12 15:17:45 +02:00
jsteemann
0ce8599598
fixes for MSVC
2016-05-10 19:01:21 +02:00
jsteemann
f90a9fce18
handle "Connection" and "Content-Type" headers separately
2016-05-10 15:24:55 +02:00
jsteemann
3a92773685
use StaticStrings
2016-04-29 15:18:20 +02:00
jsteemann
b796e4cc7d
use some static strings here and there
2016-04-29 01:37:44 +02:00
jsteemann
b9ef307bf1
micro optimizations
2016-04-28 12:04:14 +02:00
Jan Steemann
bbfaee3bfe
allow specifying collection name prefixes for `_from` and `_to` in arangoimp:
2016-04-15 16:18:23 +02:00
Jan Steemann
9f8c24b1cd
Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk
2016-04-06 15:43:27 +02:00
Frank Celler
068f9defd7
splitted HttpResponse.h
2016-04-01 10:39:38 +02:00
Frank Celler
486011d399
Merge branch 'devel' of github.com:arangodb/arangodb into spdvpk
2016-03-31 13:41:09 +02:00
Frank Celler
494bdca847
splitted HttpRequest into GeneralRequest/HttpRequest
2016-03-31 11:45:21 +02:00
Max Neunhoeffer
e77159b008
New returnNew option for insert.
2016-03-11 12:44:36 +01:00
Jan Steemann
b393c3d9bb
Merge branch 'devel' of https://github.com/arangodb/arangodb into spdvpk
2016-03-09 09:42:10 +01:00
Frank Celler
dfa9047484
switch arangosh to new ApplicationFeatures and ProgramOptions
2016-03-08 23:32:43 +01:00
Jan Steemann
0c2fdb9fb9
less dependency on document-collection.h
2016-03-04 20:53:17 +01:00
Jan Steemann
6eea757c01
simplifications
2016-03-04 19:40:24 +01:00
Jan Steemann
1c150d4d6e
Merge branch 'spdvpk' of https://github.com/arangodb/arangodb into spdvpk
2016-03-04 18:35:40 +01:00
Jan Steemann
ad4a9542ea
removed file
2016-03-04 18:32:54 +01:00
Max Neunhoeffer
4cb42662f3
Merge branch 'spdvpk' of ssh://github.com/ArangoDB/ArangoDB into spdvpk
2016-03-04 15:19:26 +01:00
Max Neunhoeffer
2654e654db
Compiles again, document API not yet sorted out.
2016-03-04 10:32:34 +01:00
Jan Steemann
78f07c6a31
less json
2016-03-03 14:23:39 +01:00
Jan Steemann
ebf2d1520b
removed TRI_doc_mptr_copy_t
2016-02-26 11:46:33 +01:00
Jan Steemann
3c6391279e
cleanup
2016-02-25 12:24:04 +01:00
Jan Steemann
63d1d5339f
cppcheck
2016-02-24 17:55:36 +01:00
Jan Steemann
eb202f528c
pass vocbase in TransactionContext
2016-02-23 13:03:30 +01:00
Jan Steemann
f468cd00ad
create transaction context as shared ptr
2016-02-23 12:18:39 +01:00
Jan Steemann
0a969caf23
removed SingleCollectionReadOnlyTransaction and SingleCollectionWriteTransaction
2016-02-23 11:05:44 +01:00
Michael Hackstein
ed72993cd6
Rest Import Handler now uses new transaction API for truncate as well
2016-02-19 12:51:06 +01:00
Michael Hackstein
2b10ec64d3
Adapted RestImportHandler to new Transaction API
2016-02-17 13:49:10 +01:00
Jan Steemann
0c4ab9054a
API cleanup
2016-02-16 15:13:30 +01:00
Jan Steemann
313f27deed
renamed methods
2016-02-15 18:18:03 +01:00
Jan Steemann
b7abf5a40d
attempt to fix Windows build
2016-02-01 12:04:28 +01:00
jsteemann
4e94803ad7
honor results of clang-test, clang-tidy and clang-modernize
2016-01-31 15:56:18 +01:00
jsteemann
13481bbebc
fix or annotate problems identified by clang-check
2016-01-31 03:32:31 +01:00
jsteemann
ff21453255
logger transition: all files in arangod exception transactions.cpp
2016-01-29 23:28:44 +01:00
Jan Steemann
9046e1831b
clang-format
2016-01-27 13:43:46 +01:00
jsteemann
842384016d
namespace cleanup
2016-01-21 00:20:22 +01:00
jsteemann
431900f17a
changed namespace from triagens to arangodb
2016-01-17 00:44:53 +01:00
jsteemann
1b959c827d
more const unification
2016-01-15 00:09:52 +01:00
jsteemann
9f0576c65f
don't rely so much on namespace std being present
2016-01-08 01:05:06 +01:00
jsteemann
50c0e18d53
removed useless con|destructor comments
2016-01-07 21:19:53 +01:00
Jan Steemann
8b4b6a1943
moved docu blocks into their own files
2016-01-07 16:03:17 +01:00
Wilfried Goesgens
7fc4b356e4
Revert formattings that break documentation parts.
2016-01-07 15:12:04 +01:00
Wilfried Goesgens
8a0f635dca
Wrap examples properly - this was broken during the auto format.
2016-01-07 13:08:50 +01:00
Jan Steemann
3ad20c0cae
auto-generated headers
2016-01-06 18:41:51 +01:00
Jan Steemann
a3b026d9d1
removed useless sections from code, unified include guards
2016-01-06 14:15:22 +01:00
Jan Steemann
f422576ee0
clang-format
2016-01-05 17:43:24 +01:00
Jan Steemann
edb4d2dc4c
fix some VS compile errors
2016-01-05 14:10:10 +01:00
jsteemann
a6cb463e06
Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack
2016-01-05 00:25:10 +01:00
Frank Celler
1065a1bd2c
added work monitor
2016-01-04 15:33:06 +01:00
Max Neunhoeffer
225c8cd843
Work on TODOs.
2015-12-22 16:50:09 +01:00
Jan Steemann
e2e483e06a
potential fix
2015-12-22 12:34:48 +01:00
jsteemann
a058699312
use std::make_shared
2015-12-18 23:34:18 +01:00
jsteemann
19782a45a6
Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack
2015-12-18 23:33:44 +01:00
jsteemann
20ed092d11
added `--create-collection-type` option for arangoimp
2015-12-18 22:26:32 +01:00
Michael Hackstein
b543680cca
Adapted resthandler to class version of TRI_col_info_t
2015-12-16 11:42:59 +01:00
Michael Hackstein
757577de42
Updated VPack addObject to openObject
2015-12-09 11:28:54 +01:00
Michael Hackstein
f63535c142
Further reduced usage of TRI_json_t in RestImportHandler
2015-12-06 13:36:59 +01:00
Michael Hackstein
8317982983
Fixed imports. Moved from .h to .cpp
2015-12-06 12:56:11 +01:00
Michael Hackstein
13a8f6871f
Fixes in RestImport handler. It failed in some malformed input formats
2015-12-06 01:04:38 +01:00
Michael Hackstein
e32b2e2d6f
Largely removed references to TRI_json_t in RestImportHandler. Only needs temporary TRI_json_t's to interact with transactions
2015-12-05 13:01:55 +01:00
Jan Steemann
b6752faf0b
Merge branch 'devel' of https://github.com/arangodb/arangodb into vpack
2015-11-25 11:44:32 +01:00
Alan Plum
7538d71333
URL parameter -> {query,path} parameter
2015-11-24 18:09:43 +01:00
Michael Hackstein
bedb61ea49
Removed cast for size_t in VPack. It is different in Mac and Linux but now VPack supports both natively
2015-11-07 18:51:31 +01:00
Michael Hackstein
0b2d40ef1d
RestImportHandler now uses VelocyPack instead of TRI_json_t*
2015-11-06 15:28:21 +01:00
Wilfried Goesgens
70a2c74c1b
Update RESTAPI documentation handling to work with the swagger 2 api
...
- use the structures from the swagger for post / reply structures
- add missing documentation snippets to their respective places
- fix syntax of documentation blocks
2015-09-16 16:35:13 +02:00
Willi Goesgens
ac2acabd5d
Work on formatting and grammer
2015-09-11 11:25:34 +02:00
Willi Goesgens
eb9e03f3f0
Upgrade the REST-API documentation to to swagger V2.0
...
Wrap lines in examples.
2015-09-09 15:21:18 +02:00
Jan Steemann
6d7ccd7699
move shaper to cxx
2015-07-28 17:38:31 +02:00
Frank Celler
27f9af2808
added more info about expect and received value
2015-07-09 16:17:40 +02:00
Michael Hackstein
86c7f87dd3
Merge branch 'cppTrav2' into devel
2015-05-19 16:17:27 -07:00
Jan Steemann
a007a867ee
"privatized" TRI_vector_t internals.
...
This allows changing the internals of TRI_vector_t structs in order to make the struct smaller.
On 64 bits, the size of TRI_vector_t is reduced from 48 bytes to 28 bytes.
TRI_json_t does benefit from this, as its biggest component is a TRI_vector_t.
2015-05-05 10:31:02 +02:00
Max Neunhoeffer
1dd7802450
Fix error reporting at import.
2015-04-26 12:53:02 -07:00
Jan Steemann
6e23c5330f
added restrictions for export API
2015-04-17 00:24:43 +02:00
Jan Steemann
92fcdd3e56
issue #1298 : Bulk import if data already exists
...
This change extends the HTTP REST API for bulk imports as follows:
When documents are imported and the `_key` attribute is specified for them, the import can be
used for inserting and updating/replacing documents. Previously, the import could be used for
inserting new documents only, and re-inserting a document with an existing would have failed
with a *unique key constraint violated* error.
The above behavior is still the default. However, the API now allows controlling the behavior
in case of a unique key constraint error via the optional URL parameter `onDuplicate`.
This parameter can have one of the following values:
- `error`: when a unique key constraint error occurs, do not import or update the document but
report an error. This is the default.
- `update`: when a unique key constraint error occurs, try to (partially) update the existing
document with the data specified in the import. This may still fail if the document would
violate secondary unique indexes. Only the attributes present in the import data will be
updated and other attributes already present will be preserved. The number of updated documents
will be reported in the `updated` attribute of the HTTP API result.
- `replace`: when a unique key constraint error occurs, try to fully replace the existing
document with the data specified in the import. This may still fail if the document would
violate secondary unique indexes. The number of replaced documents will be reported in the
`updated` attribute of the HTTP API result.
- `ignore`: when a unique key constraint error occurs, ignore this error. There will be no
insert, update or replace for the particular document. Ignored documents will be reported
separately in the `ignored` attribute of the HTTP API result.
The result of the HTTP import API will now contain the attributes `ignored` and `updated`, which
contain the number of ignored and updated documents respectively. These attributes will contain a
value of zero unless the `onDuplicate` URL parameter is set to either `update` or `replace`
(in this case the `updated` attribute may contain non-zero values) or `ignore` (in this case the
`ignored` attribute may contain a non-zero value).
2015-04-14 11:44:33 +02:00
Jan Steemann
2299d2916d
initial commit to satisfy #1298
2015-04-13 18:26:33 +02:00
Jan Steemann
e672d791b5
refactored cursor API, added export API
2015-03-30 18:03:42 +02:00
Jan Steemann
957fa189d2
better diagnostics for arangoimp
2015-01-15 13:42:31 +01:00
Jan Steemann
b54dfae96f
removed several JSON functions
2015-01-13 01:31:04 +01:00
Jan Steemann
20e7fe7a7a
the great rename: array => object, list => array
2014-12-18 21:07:06 +01:00
Jan Steemann
dcb9427b6f
rewrote transaction contexts
2014-10-16 15:53:28 +02:00
Jan Steemann
8294e54f32
faster import
2014-10-08 17:01:45 +02:00
Jan Steemann
87afcf5e8d
the great rename
2014-09-13 00:10:11 +02:00
Jan Steemann
97e36a7eb0
fixed examples
2014-06-24 11:26:51 +02:00
Frank Celler
4dcf5dc817
updated disclaimer
2014-06-20 16:40:35 +02:00
Jan Steemann
fabc51f889
fixed wrong ASSERT usage
2014-06-13 12:10:35 +02:00
Max Neunhoeffer
c2bddb1c19
Let TRI_document_collection_t inherit from TRI_collection_t.
2014-06-11 10:51:47 +02:00
Jan Steemann
da9f8247fb
barriers are now created automatically by transactions
2014-06-10 11:56:40 +02:00
Jan Steemann
72a102e794
major internal changes
2014-06-08 00:12:53 +02:00
Jan Steemann
368091d7c3
function cleanup
2014-06-06 21:35:34 +02:00
Max Neunhoeffer
fd2c99443f
Introduce TRI_doc_mptr_copy_t for copies of master pointers.
...
Did not yet run through all occurrences of TRI_doc_mptr_t to see
whether they have to be TRI_doc_mptr_copy_t.
2014-06-06 16:59:32 +02:00
Jan Steemann
362838ae69
TRI_ASSERT
2014-06-06 11:25:19 +02:00
Jan Steemann
d4dd58b264
merged primary-collection.cpp with document-collection.cpp
2014-05-31 00:22:32 +02:00
Jan Steemann
b811d21fad
issue #862 : added `--overwrite` option for arangoimp
2014-05-16 21:29:20 +02:00
Jan Steemann
42465ce876
properly return collection status
2014-02-26 14:23:06 +01:00
Frank Celler
42fb8244e1
added requeue
2014-02-25 12:07:16 +01:00
Jan Steemann
e9c5af7895
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into sharding
...
Conflicts:
CHANGELOG
js/apps/system/aardvark/frontend/css/collectionsView.css
js/apps/system/aardvark/frontend/css/layout.css
js/apps/system/aardvark/frontend/js/routers/router.js
2014-01-30 19:40:21 +01:00
Max Neunhoeffer
3a5a085bc5
Sort out mess with collection name/id lookup in cluster.
2014-01-30 17:27:06 +01:00
Jan Steemann
7f240a1625
fixed segfault in import API
2014-01-27 16:12:39 +01:00
Jan Steemann
12dbcc535d
updated import manual
2014-01-21 09:16:42 +01:00