Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit RealmManagement api :use keyspace name instead of realm in queries
Currently Astarte instances are not allowd to share the same database due to a conflict in namespaces resolution (eg. two realms with same name in different astarte instances now share the same kespace, that's not good) This commit introduce univoque mapping between the pair <Astarte instance id, realm name> and keyspace name (see also astarte-platform/astarte_core#105), this way even with the same name, realms do not share the same keyspace. Also, the env var `ASTARTE_INSTANCE_ID`, defaulting to `""` has been added to maintain backward compatibility. Trivially change all queries to the database to reflect this change, both in `lib` and `tests`. Signed-off-by: Eddy Babetto <eddy.babetto@secomind.com>
- Loading branch information