1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//! Athena router data access.
//!
//! This module provides functions for accessing Athena router entries stored in the
//! Suitsbooks Supabase project. Router entries define routing configurations used by
//! the Athena system.
use Value;
use SupabaseClient;
// use tracing::error;
use cratesuitsbooks_supabase;
/// Fetch all Athena router entries from Supabase.
///
/// Retrieves all router entries from the `pm_athena_router` table in the Suitsbooks
/// Supabase project.
///
/// # Returns
///
/// Returns `Result<Vec<Value>, String>` where:
/// - `Ok(Vec<Value>)` contains the list of router entries on success
/// - `Err(String)` contains a formatted error message on failure
///
/// # Example
///
/// ```ignore
/// match list_athena_router_entries().await {
/// Ok(entries) => println!("Found {} entries", entries.len()),
/// Err(e) => eprintln!("Error: {}", e),
/// }
/// ```
pub async