age icon indicating copy to clipboard operation
age copied to clipboard

Rust AGE driver

Open Dzordzu opened this issue 3 years ago • 4 comments

I've recently implemented a simple driver for rust, that allows to easily map types and execute cypher queries. Hope you'll enjoy my work.

https://github.com/Dzordzu/rust-apache-age https://crates.io/crates/apache_age

I'm open to any kind of suggestions and contributions!

Dzordzu avatar Apr 24 '22 00:04 Dzordzu

It seems to be parsed to a general Json library, is there any problem with this? And, if you want you can contribute in drviers/rust directory.

emotionbug avatar Apr 25 '22 14:04 emotionbug

@Dzordzu this is awesome. Please consider making this a pull request. In the meantime, have you thought about situations where the user needs more than one field returned?

JoshInnis avatar Apr 29 '22 08:04 JoshInnis

@JoshInnis user can get more than one field from the query, BUT, he has to use map to gather results. I could not find any use case, where grouping within map could cause any problems.

@emotionbug There was a problem with types others than AgType. If one wants to use primitives, some kind of mapping between rust types and postgres type has to be performed. It CAN be implemented, but takes a lot of effort and time. The question is if that thing is worth it. In my opinion - no. One can just use AgType with proper generic type and get what they want. If I find some time I will create a PR, but currently I'm having (little to say) an interesting time. It may take, I think, up to month from now

Dzordzu avatar May 12 '22 09:05 Dzordzu

Also #145 should be closed?

Dzordzu avatar May 12 '22 09:05 Dzordzu

Closing in favour of #262

Dzordzu avatar Sep 16 '22 00:09 Dzordzu