This commit touches quite a few things, but the main changes that need to be taken into account are: - An update command has been added to the CLI. This could be further extended in the future to update more than just Database retention periods. The API call for that has been written in such a way as to allow other qualities of the database to be updated at runtime from one API call. For now it only allows the retention period to be updated, but it could in theory allow us to rename a database without needing to wipe things, especially with a stable ID underlying everything. - The create database command has been extended to allow its creation with a retention period. In tandem with the update command users can now assign or delete retention periods at will - The ability to query catalog data about both databases and tables has been added as well. This has been used in tests added in this commit, but is also a fairly useful query when wanting to look at things such as the series key. This could be extended to a CLI command as well if we want to allow users to look at this data, but for now it's in the _internal table. With these changes a nice UX has been created to allow our customers to work with retention periods. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |