im-aditya30 opened a new pull request, #930:
URL: https://github.com/apache/age/pull/930

   **Instructions**
   - Requires PG15
   - Create following variables: 
   ```
    export PATH={location of pgsql-15}/bin:$PATH
    export PGDATA={location of pgsql-15}/bin/data
   ```
   - Create a database and start the pgsql server
   - Clone the repo and run the following command: 
   ```
   flex -b -Cfe -p -p -o 'cypher.c' cypher.l
   bison -d cypher.y
   make
   ```
   - Run `./agesql`
   - Type `/` and then type the query to view the result
   
   **Example**
   On running `MATCH (n:Person {gender: 'M'}) RETURN n;`
   The output is as follows: 
   ```
   Match clause parsed successfully.
    Match = true
   Labels: n
   Node label parsed: Person.
   Node pattern parsed successfully.
   String expression parsed: M.
   Map entry parsed successfully.
   Property gender
   Map literal entry parsed successfully.
   Nonempty map literal.
   Node properties parsed successfully.
   No WHERE clause.
   No WITH clause.
   Identifier expression parsed: n
   Return item parsed successfully.
   Return item parsed successfully.
   No ORDER BY clause.
   No SKIP clause.
   No LIMIT clause.
   Return clause parsed successfully.
   Return = true
   ```
   
   


-- 
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