astarte-platform/astarte

Port astarte_pairing to Xandra

Open

#268 opened on Mar 5, 2020

 (0 comments) (0 reactions) (0 assignees)Elixir (59 forks)auto 404
app:pairingdatabasegood first issueinternals

Repository metrics

Stars
 (271 stars)
PR merge metrics
 (Avg merge 4d) (38 merged PRs in 30d)

Description

In light of the gradual demise of CQEx in favor of Xandra, astarte_pairing should be adapted to use Xandra instead of CQEx.

This mainly translates to:

  • Add Xandra as a dependency
  • Start the Xandra connection
  • Translate all queries from CQEx to Xandra, both in lib and in test.

To see an example of a service already using Xandra, have a look at astarte_housekeeping (and this PR https://github.com/astarte-platform/astarte/commit/8a5fbd52aecd where the replacement of CQEx with Xandra happened)

Contributor guide