Files
2026-04-28 10:23:20 +02:00

17 lines
312 B
R
Executable File

read_accounts <- function(conn){
tbl(conn, "accounts")
}
get_account_choices <- function(conn) {
choices <- tbl(conn, "accounts") |>
select(id, account_name) |>
collect() |>
arrange(account_name) |>
(\(df) setNames(df$id, df$account_name))()
return(c("Kein Konto" = 0, choices))
}