File: README.md

package info (click to toggle)
postgresql-16-age 1.6.0~rc0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 14,016 kB
  • sloc: ansic: 33,556; sql: 13,270; python: 2,530; yacc: 2,518; java: 1,418; lex: 1,325; perl: 294; sh: 286; makefile: 123; javascript: 24
file content (23 lines) | stat: -rw-r--r-- 624 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# ANTLR4 Python3 Agtype parser generation rules for apache-age 
Python driver for Apache AGE, graph extension for PostgreSQL.


### Build
#### 1) Generate Agtype parser with ANTLR4
```
# prerequisites : 
#    - java over 8
#    - download ANTLR4 from https://www.antlr.org/download/antlr-4.11.1-complete.jar
#    - java -cp antlr-4.11.1-complete.jar org.antlr.v4.Tool  -Dlanguage=Python3 -visitor -o ../age/gen ../../Agtype.g4 
```


#### 2) Remove the *.interp & *.tokens files

#### 3) Proceed to unit testing
```
python -m unittest -v test_age_py.py
```
```
python -m unittest -v test_agtypes.py
`