aplbrain / aplbrain/grand-cypher

Feature request: grammar / `WHERE` namespace extensions

Aperta
#58 8 commenti 0 reazioni 1 assegnatario Rivendicata da @j6k4m8 Vedi su GitHub
Lingua principale
Python
Stelle
129
Fork
17
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

Use case: Cypher supports a robust library for [datetime analysis](https://neo4j-contrib.github.io/neo4j-apoc-procedures/3.4/utilities/datetime-conversions/), among other extensions. While it is unrealistic to expect their integration here, it would be nice to allow python equivalents during queries. I envision something like this:

```python
import pandas as pd
GrandCypher(g, namespace={"datetime": pd.to_datetime, ...}).run("""
MATCH (a) --> (b)
WHERE a.date < datetime("2024-01-01")
RETURN a.name
""")
```

Would love to hear your thoughts.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.