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
i64tou64with validation - int_
to_ bool - Convert integer to boolean from database
- opt_
i64_ to_ u64 - Safe conversion from
Option<i64>toOption<u64> - parse_
uuid_ array - Parse a vector of UUID strings to UUIDs, filtering out invalid ones
- uuids_
to_ strings - Convert
Vec<Uuid>toVec<String>for database storage