We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

How to Use Rethinkdb with Phalconphp

Hello, please i was wondering if its possible to use rethinkdb with Phalconphp. I found this tool https://danielmewes.github.io/php-rql/ but i don't know how i can integrate that into Phalcon. I'm knew to Phalcon.

Please is there a way forward with this?

Thank you.

edited Sep '16

What you mean by integrate ? Phalcon is PHP framework so anything which can be done in php can be used in phalcon too, no problem at all.

edited Sep '16

What you mean by integrate ? Phalcon is PHP framework so anything which can be done in php can be used in phalcon too, no problem at all.

Thanks immense @Wojciech for your response. However my thought is to be able to use rethinkdb as model adapater with Phalconphp. Is it this possible and can you possibly link me to any guide that can help achieve this? Thank you.

edited Sep '16

Don't know what rethinkdb is. Is it sql type database ? Can pdo be used with it ? If yes then just implement this interface https://docs.phalcon.io/uk/latest/api/Phalcon_Db_AdapterInterface.html

Also what's a problem with sql Why you can't jsut use mysql/postgresql ?

Don't know what rethinkdb is. Is it sql type database ? Can pdo be used with it ? If yes then just implement this interface https://docs.phalcon.io/uk/latest/api/Phalcon_Db_AdapterInterface.html

RethinkDB is the an open-source, scalable JSON database (https://www.rethinkdb.com/) PDO cannot be used with it. Rethinkdb is similar to mongodb

edited Sep '16

Then there is no way currently. Just use mongodb i guess.

I think you can try to extend Phalcon\Mvc\Collection and Phalcon\Mvc\Collection\* classes but this is a guess.