Module db_utils

Module db_utils 

Source
Expand description

Database utility functions

Common database operations and type conversions used across store modules.

Functionsยง

bool_to_int
Convert boolean to integer for database storage (PostgreSQL compatible)
i64_to_u64_safe
Safe conversion from i64 to u64 with validation
int_to_bool
Convert integer to boolean from database
opt_i64_to_u64
Safe conversion from Option<i64> to Option<u64>
parse_uuid_array
Parse a vector of UUID strings to UUIDs, filtering out invalid ones
uuids_to_strings
Convert Vec<Uuid> to Vec<String> for database storage