Skip to main content

uuid_to_storage

Function uuid_to_storage 

Source
pub const fn uuid_to_storage(bits: u128) -> i128
Expand description

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

§Example

use quack_rs::vector::uuid::uuid_to_storage;

// The nil UUID sits at the very bottom of DuckDB's signed ordering.
assert_eq!(uuid_to_storage(0), i128::MIN);