1
0
Fork 0
Commit Graph

1255 Commits

Author SHA1 Message Date
Jan Steemann 0769f311e7 issue #444: make colors portable 2013-03-08 15:25:18 +01:00
Jan Steemann 69fc6e1662 added test case 2013-03-08 14:38:08 +01:00
Jan Steemann 0a883f4076 merged some changes from trx branch into devel 2013-03-08 14:22:25 +01:00
Jan Steemann 2b97f97765 issue #212 2013-03-08 12:18:32 +01:00
Jan Steemann 5631314bc7 issue #212: added auto-increment support for collections
the feature can be used by creating a collection with the extra `keyOptions`
attribute as follows:

    db._create("mycollection", { keyOptions: { type: "autoincrement", offset: 1, increment: 10, allowUserKeys: true } });

The `type` attribute will make sure the keys will be auto-generated if no `_key` attribute is specified for a document.
The `allowUserKeys` attribute determines whether users might still supply own `_key` values with documents or if this
is considered an error.
The `increment` value determines the actual increment value, whereas the `offset` value can be used to seed to value
sequence with a specific starting value. This will be useful later in a multi-master setup, when multiple servers can use
different auto-increment seed values and thus generate non-conflicting auto-increment values.

The default values currently are:

- `allowUserKeys`: `true`
- `offset`: `0`
- `increment`: `1`

The only other available key generator type currently is `traditional`. The `traditional` key generator
will auto-generate keys in a fashion as ArangoDB always did (some increasing integer value, with a more or less unpredictable
increment value).

Note that for the `traditional` key generator there is no the option to disallow user-supplied keys and give the
server the sole responsibility for key generation.
2013-03-08 11:54:03 +01:00
Jan Steemann b307e4cd6d completed auto-increment key generator 2013-03-08 10:51:50 +01:00
Jan Steemann b83952c94e added test cases 2013-03-08 10:24:53 +01:00
Jan Steemann 0879cf8d15 added auto-increment key generator (not yet ready) 2013-03-07 18:17:35 +01:00
Jan Steemann e2c0d9544a fixed jslint errors 2013-03-07 17:35:12 +01:00
Jan Steemann 4e41e0def6 fixed arangosh printing "undefined" 2013-03-07 17:34:31 +01:00
Jan Steemann a4708f806b issue #441 2013-03-07 17:34:16 +01:00
Jan Steemann d93c0693d0 Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel 2013-03-06 14:33:40 +01:00
Jan Steemann bdf906ef89 fixed a memleak for barriers 2013-03-06 14:33:23 +01:00
a-brandt 82bf2bca17 Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-03-06 14:06:07 +01:00
a-brandt 18c05bdac6 added session errors 2013-03-06 14:05:42 +01:00
Frank Celler eedbd6e770 renamed to callback 2013-03-06 10:11:16 +01:00
a-brandt d4875c8afb Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-03-05 16:20:37 +01:00
Frank Celler dd15025c1c fixed tests, add missing prefix = false to statistics call 2013-03-05 13:32:58 +01:00
a-brandt e41847c336 moved random generators and nonce functions to internal and crypto module 2013-03-04 16:18:00 +01:00
Jan Steemann dca899101f fixed version number assertion 2013-03-04 09:06:08 +01:00
Frank Celler 4c5785187e Merge branch 'feature/statistics' into devel 2013-03-03 22:53:25 +01:00
Frank Celler d186c1ff45 fixed documentation 2013-03-03 22:50:35 +01:00
Frank Celler dd96bb4abd Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-03-03 22:40:55 +01:00
Frank Celler 60037971dc rewrote statistics 2013-03-03 22:39:41 +01:00
Frank Celler f78dc0f5a6 added _admin/statistics and _admin/statistics-description 2013-03-01 13:40:49 +01:00
Jan Steemann 46a7f3e1a2 added AQL test case 2013-03-01 11:09:36 +01:00
Jan Steemann 6eaf3333de added tests 2013-02-28 11:05:02 +01:00
Jan Steemann 8ec5735418 added tests for SUM(), MEDIAN() etc. 2013-02-28 10:56:52 +01:00
Jan Steemann 14c3863a17 added tests for LEFT(), RIGHT() 2013-02-28 09:38:03 +01:00
Frank Celler 1e200d361a Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-02-27 14:40:37 +01:00
Frank Celler 1834f288ca Merge branch 'feature/npm-modules' into devel 2013-02-27 14:40:22 +01:00
Frank Celler eb8eafa4ef fixed global modules in packages 2013-02-27 14:39:07 +01:00
Jan Steemann 16586c6ee1 make AQL REVERSE() work on strings, too 2013-02-27 14:16:40 +01:00
Frank Celler a79279445a Merge branch 'devel' of github.com:triAGENS/ArangoDB into devel 2013-02-26 18:20:27 +01:00
Frank Celler c9226054fc added tests, fixed unloadAll 2013-02-26 18:12:28 +01:00
Frank Celler 85d2e87154 added new package option 2013-02-25 18:15:32 +01:00
Jan Steemann bed09cbbe2 fixed deleting indexes by numeric id 2013-02-25 13:52:50 +01:00
Jan Steemann 3ef2ee9758 shut up jslint 2013-02-23 00:09:31 +01:00
Jan Steemann 4b1de6fa36 fixed typo in test name 2013-02-23 00:03:36 +01:00
Jan Steemann 13d1ff0057 issue #425 2013-02-22 23:43:52 +01:00
Jan Steemann 71459b680f issue #426 2013-02-22 23:26:52 +01:00
Frank Celler 3af1f5c2e8 new documentation format for REST calls, hopefully allowing swagger.it like output 2013-02-22 21:36:11 +01:00
Jan Steemann f2e3ac9528 fixed doxygen errors 2013-02-22 08:56:52 +01:00
Jan Steemann 71e5014792 test for a simple route 2013-02-21 18:44:06 +01:00
Jan Steemann 3e095ab0d0 split users module in client- and server-specific parts 2013-02-21 17:41:38 +01:00
Jan Steemann 35f6b3f054 fix cloning 2013-02-21 15:12:50 +01:00
Frank Celler fe9f10af8d Merge branch 'devel' of github.com:triAGENS/ArangoDB into 1.2
Conflicts:
	CHANGELOG
	Documentation/Manual/arangodb_1.2_shell_reference_card.pdf
	Makefile.in
	aclocal.m4
	config/compile
	config/config.guess
	config/config.sub
	config/depcomp
	config/missing
	configure
	lib/JsonParser/json-parser.c
2013-02-21 14:21:59 +01:00
Frank Celler 9246faf9db issue #370: add documentation for reloadRouting and flushServerModules 2013-02-21 13:33:03 +01:00
Frank Celler aec2fd2b86 added flush server module documentation 2013-02-21 13:09:04 +01:00
Jan Steemann 73505b0bf9 clone routes so the underlying collection can be unloaded 2013-02-20 18:55:25 +01:00