From eb59714648bbba66e77955c8bda1c99caf1cede6 Mon Sep 17 00:00:00 2001 From: rtkay123 Date: Sat, 16 Aug 2025 10:08:51 +0200 Subject: feat(config): typologies --- crates/configuration/src/state/typology.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 crates/configuration/src/state/typology.rs (limited to 'crates/configuration/src/state/typology.rs') diff --git a/crates/configuration/src/state/typology.rs b/crates/configuration/src/state/typology.rs new file mode 100644 index 0000000..1c7090a --- /dev/null +++ b/crates/configuration/src/state/typology.rs @@ -0,0 +1,19 @@ +use warden_core::configuration::typology::{TypologyConfiguration, TypologyConfigurationRequest}; + +use crate::state::cache_key::CacheKey; + +pub mod mutate_typology; +pub mod query_typology; + +pub struct TypologyRow { + pub configuration: sqlx::types::Json, +} + +impl<'a> From<&'a TypologyConfigurationRequest> for CacheKey<'a> { + fn from(value: &'a TypologyConfigurationRequest) -> Self { + Self::Typology { + id: &value.id, + version: &value.version, + } + } +} -- cgit v1.2.3