carlasanches opened a new pull request, #909:
URL: https://github.com/apache/age/pull/909

   * This commit creates variables for constructing the Cypher query and prints 
those variables.
   * It adds lexical definitions for strings, the space character, and tabs.
   * Enables WHERE, WITH, and RETURN clauses.
   * Enables alias, ORDER BY, SKIP, and LIMIT options.
   * Formats the code according to Apache AGE standards.
   
   To compile the code:
   
   ```
   flex -b -Cfe -p -p -o ‘cypher.c’ cypher.l
   bison -d cypher.y
   make
   ```
   
   To run the code:
   
   ```
   createdb ageslqldb // create database
   pg_ctl -D agesqldb -l logfile start // start database process 
   ./agesql agesqldb // run agesql
   ```
   
   Query example:
   
   ```
   agesqldb=# \
   MATCH (p:Person) RETURN p
   
   match = : 1
   label1 = : p
   label2 = : Person
   property = : NULL
   expression_int = : -1
   expression_str = : NULL
   expression_id = : p
   str_val = : p
   directed = : 0
   direction = : NULL
   where = : 0
   with = : 0
   return = : 1
   with_alias = : 0
   order_by = : 0
   order_clause_direction = : 1
   skip_value = : 0
   limit_value = : 0
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to