CakePHP with OrientDB datasource model

This is my repo for cakephp with orientdb driver:

To use this driver, you have to use orientdb driver orientdb by AntonTerekhov:

In this project i place it in Vendor folder. It can be placed in Plugin folder.

The datasource file OrientSource is to store all the basic function CRUD of a datasource. Since my project involved vertex, most of functions interact with vertex instead of a specific table in orientdb. Remind that you have to run orientdb daemon beforehand.

When calling a find/query function in model or controller, it will based on these Create, Read, Write, Delete function in datasource. For a customize query, please use command_query function as follows: $this->Orient->command_query($query)

You can pass any orientdb query by using this function.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s