AntonTerekhov / OrientDB-PHP

Binary protocol for OrientDB for PHP applications (Beta)
http://code.google.com/p/orient/wiki/NetworkBinaryProtocol
BSD 3-Clause "New" or "Revised" License
108 stars 23 forks source link

'graph' type database support #34

Closed tomjnsn closed 10 years ago

tomjnsn commented 11 years ago

I'm brand new to OrientDB so I'm just starting to understand graph databases along with your driver. I noticed down at the very bottom of issues that it only supports databases with a type of 'document' currently. I'm assuming that's still true, but what would need to be done to support graph type databases? I did a quick look through the documentation for the binary protocol and couldn't see any special requirements to use a graph instead of a document type database. Is it that you want to implement helper classes to support that?

andreyvk commented 10 years ago

That'd be a nice to have...

tomjnsn commented 10 years ago

I'd be interested in helping with something like that if you wouldn't mind pointing me to what I'm missing about adding in graph type databases. I'm still fairly new to it (it is just on a side project I'm playing around with it at this point) so I don't know what in the protocol needs to be implemented to enable graph type databases.

AntonTerekhov commented 10 years ago

Hello.

There were some issues with this lib and graph type db in encoding query and decoding its results. Only simple ones, like g.v1.outE worked ok, something more complex resulted in errors, see #22, gremlin.php for example. This remains unresolved and gremlin remains experimental.

I have no idea, what should be fixed, and on which side: php or SQL itself.