Search code examples
godriversrethinkdb

OnChange on a table is available in golang driver - rethinkDB?


I am working on RethinkDB and Golang and completely new to these two Technologies/Database.

Note

GOLang driver - I am using this driver for connecting rethinkDB.

Problem

There is no onChange on a table functionality in this driver.

Note - OnChange functionality is available in rethinkDB.

Any suggestion of golang driver which supports rethinkDB onChange.

Thanks in advance


Solution

  • Sorry for the delayed reply I dont check StackOverflow as often as I should.

    GoRethink actually does offer support for Changefeeds. Unfortunately the documentation is currently a bit lacking and I hope to work soon, until then I recommend having a look at the tests. Hopefully that should give you an idea on how to use them.

    https://github.com/dancannon/gorethink/blob/master/query_table_test.go#L215

    If you have any further questions regarding change feeds or any other issues with the driver let me know.