-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timeseries schema to CockroachDB on Nexus startup
- Adds tables representing the timeseries schema. These currently track the core data about a schema that is fixed across versions; the set of fields, also across all versions; and then the mapping between the schema and their fields in each particular version. - Add database models for these - Add a build.rs to `oximeter` which sets up a const fn that returns all schema known at compile-time. Nexus uses this to determine which schema need to be loaded during population time. - Add datastore methods for loading all those schema during population, and adds a populator using it. - Adds more datatstore methods for fetching, listing, and upserting timeseries schema. There are a number of tests around these, but they are currently unused outside the datastore crate itself (other than the populator). The existing Nexus methods for those operations go through ClickHouse directly now, but they'll eventually be redirected to CockroachDB when the remainder of the switch is completed.
- Loading branch information
Showing
26 changed files
with
2,186 additions
and
49 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.