1
0
Fork 0

generated files

This commit is contained in:
Frank Celler 2014-07-06 13:28:02 +02:00
parent 906fe27886
commit 40edb310f2
6 changed files with 2104 additions and 1669 deletions

8
README
View File

@ -89,7 +89,7 @@ http://www.arangodb.org/community
Citing ArangoDB
Please kindly cite ArangoDB in your publications if it helps your research:
bibtex @misc{ArangoDB2013, Author = {ArangoDB}, Title = { {ArangoDB}: An Open
Source multi-purpose database supporting flexible data models for documents,
graphs, and key-values.}, Year = {2013}, Howpublished = {\url{http://
arangodb.org/} }
bibtex @misc{ArangoDB2014, Author = {ArangoDB}, Title = { {ArangoDB 2.2}: An
Open Source multi-purpose database supporting flexible data models for
documents, graphs, and key-values.}, Year = {2014}, Howpublished = {\url{http:/
/arangodb.org/} }

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,8 +1,8 @@
/* A Bison parser, made by GNU Bison 3.0.2. */
/* A Bison parser, made by GNU Bison 2.7. */
/* Bison interface for Yacc-like parsers in C
Copyright (C) 1984, 1989-1990, 2000-2013 Free Software Foundation, Inc.
Copyright (C) 1984, 1989-1990, 2000-2012 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@ -32,7 +32,7 @@
#ifndef YY_AHUACATL_ARANGOD_AHUACATL_AHUACATL_GRAMMAR_H_INCLUDED
# define YY_AHUACATL_ARANGOD_AHUACATL_AHUACATL_GRAMMAR_H_INCLUDED
/* Debug traces. */
/* Enabling traces. */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
@ -40,11 +40,12 @@
extern int Ahuacatldebug;
#endif
/* Token type. */
/* Tokens. */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
enum yytokentype
{
/* Put the tokens into the symbol table, so that GDB and other debuggers
know about them. */
enum yytokentype {
T_END = 0,
T_FOR = 258,
T_LET = 259,
@ -97,48 +98,61 @@ extern int Ahuacatldebug;
T_DOC_CLOSE = 306,
T_LIST_OPEN = 307,
T_LIST_CLOSE = 308,
UMINUS = 309,
UPLUS = 310,
UPLUS = 309,
UMINUS = 310,
FUNCCALL = 311,
REFERENCE = 312,
INDEXED = 313
};
#endif
/* Value type. */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
typedef union YYSTYPE YYSTYPE;
union YYSTYPE
typedef union YYSTYPE
{
#line 26 "arangod/Ahuacatl/ahuacatl-grammar.y" /* yacc.c:1909 */
/* Line 2058 of yacc.c */
#line 26 "arangod/Ahuacatl/ahuacatl-grammar.y"
TRI_aql_node_t* node;
char* strval;
bool boolval;
int64_t intval;
#line 121 "arangod/Ahuacatl/ahuacatl-grammar.h" /* yacc.c:1909 */
};
/* Line 2058 of yacc.c */
#line 124 "arangod/Ahuacatl/ahuacatl-grammar.h"
} YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define yystype YYSTYPE /* obsolescent; will be withdrawn */
# define YYSTYPE_IS_DECLARED 1
#endif
/* Location type. */
#if ! defined YYLTYPE && ! defined YYLTYPE_IS_DECLARED
typedef struct YYLTYPE YYLTYPE;
struct YYLTYPE
typedef struct YYLTYPE
{
int first_line;
int first_column;
int last_line;
int last_column;
};
} YYLTYPE;
# define yyltype YYLTYPE /* obsolescent; will be withdrawn */
# define YYLTYPE_IS_DECLARED 1
# define YYLTYPE_IS_TRIVIAL 1
#endif
#ifdef YYPARSE_PARAM
#if defined __STDC__ || defined __cplusplus
int Ahuacatlparse (void *YYPARSE_PARAM);
#else
int Ahuacatlparse ();
#endif
#else /* ! YYPARSE_PARAM */
#if defined __STDC__ || defined __cplusplus
int Ahuacatlparse (TRI_aql_context_t* const context);
#else
int Ahuacatlparse ();
#endif
#endif /* ! YYPARSE_PARAM */
#endif /* !YY_AHUACATL_ARANGOD_AHUACATL_AHUACATL_GRAMMAR_H_INCLUDED */

View File

@ -172,9 +172,9 @@ var stringifyFunction = function (code, name) {
///
/// @EXAMPLES
///
/// @EXAMPLE_ARANGOSH_OUTPUT{aqlFunctionUnregister}
/// ```js
/// require("org/arangodb/aql/functions").unregister("myfunctions::temperature::celsiustofahrenheit");
/// @END_EXAMPLE_ARANGOSH_OUTPUT
/// ```
/// @endDocuBlock
////////////////////////////////////////////////////////////////////////////////
@ -216,11 +216,11 @@ var unregisterFunction = function (name) {
///
/// @EXAMPLES
///
/// @EXAMPLE_ARANGOSH_OUTPUT{aqlFunctionUnregisterGroup}
/// ```js
/// require("org/arangodb/aql/functions").unregisterGroup("myfunctions::temperature");
///
/// require("org/arangodb/aql/functions").unregisterGroup("myfunctions");
/// @END_EXAMPLE_ARANGOSH_OUTPUT
/// ```
/// @endDocuBlock
////////////////////////////////////////////////////////////////////////////////
@ -267,12 +267,12 @@ var unregisterFunctionsGroup = function (group) {
///
/// @EXAMPLES
///
/// @EXAMPLE_ARANGOSH_OUTPUT{aqlFunctionRegister}
/// ```js
/// require("org/arangodb/aql/functions").register("myfunctions::temperature::celsiustofahrenheit",
/// function (celsius) {
/// return celsius * 1.8 + 32;
/// });
/// @END_EXAMPLE_ARANGOSH_OUTPUT
/// ```
/// @endDocuBlock
////////////////////////////////////////////////////////////////////////////////
@ -358,21 +358,21 @@ var registerFunction = function (name, code, isDeterministic) {
///
/// To list all available user functions:
///
/// @EXAMPLE_ARANGOSH_OUTPUT{aqlFunctionsToArray}
/// ```js
/// require("org/arangodb/aql/functions").toArray();
/// @END_EXAMPLE_ARANGOSH_OUTPUT
/// ```
///
/// To list all available user functions in the *myfunctions* namespace:
///
/// @EXAMPLE_ARANGOSH_OUTPUT{aqlFunctionsToArrayPrefix}
/// ```js
/// require("org/arangodb/aql/functions").toArray("myfunctions");
/// @END_EXAMPLE_ARANGOSH_OUTPUT
/// ```
///
/// To list all available user functions in the *myfunctions::temperature* namespace:
///
/// @EXAMPLE_ARANGOSH_OUTPUT{aqlFunctionsToArrayList}
/// ```js
/// require("org/arangodb/aql/functions").toArray("myfunctions::temperature");
/// @END_EXAMPLE_ARANGOSH_OUTPUT
/// ```
/// @endDocuBlock
////////////////////////////////////////////////////////////////////////////////

View File

@ -3859,14 +3859,11 @@ var changeEdgeDefinitionsForGraph = function(graph, edgeDefinition, newCollectio
var graphObj = _graph(graph._key);
var eDs = graph.edgeDefinitions;
var gotAHit = false;
require("internal").print("Graph: " + graph._key);
//replace edgeDefintion
eDs.forEach(
function(eD, id) {
if(eD.collection === edgeDefinition.collection) {
require("internal").print("eD.collection");
require("internal").print(eD.collection);
gotAHit = true;
oldCollections = _.union(oldCollections, eD.from);
oldCollections = _.union(oldCollections, eD.to);