Skip to main content

uuid_from_storage

Function uuid_from_storage 

Source
pub const fn uuid_from_storage(storage: i128) -> u128
Expand description

Converts DuckDB’s vector storage for a UUID into the UUID’s textual 128 bits.

§Example

use quack_rs::vector::uuid::{uuid_from_storage, uuid_to_storage};

let textual = 0x1111_1111_2222_3333_4444_5555_5555_5555_u128;
assert_eq!(uuid_from_storage(uuid_to_storage(textual)), textual);