Skip to content

Add list_doc() to list meta document references by type - #28

Merged
jspijker merged 2 commits into
developfrom
issue25
Aug 27, 2026
Merged

jspijker merged 2 commits into
developfrom
issue25

Conversation

@jspijker

Copy link
Copy Markdown
Collaborator

Summary

Implements list_doc() as requested in #25. The function lists all references (ref) of meta documents in the meta table for a given type.

Changes

  • R/list_doc.R — new exported list_doc(type, conn):
    • validates that type is a character string
    • queries with parameterized glue::glue_sql
    • uses namespace-prefixed pool::dbGetQuery
    • returns a character vector of ref, or NA when no documents of that type exist
  • tests/testthat/test-list_doc.R — input validation + output tests (multiple refs for a type, single ref, and NA for a nonexistent type)
  • man/list_doc.Rd, NAMESPACE — roxygen documentation/export
  • NEWS.md — changelog entry

Closes #25

Note: R is not installed in this environment, so devtools::check()/tests were not executed here. The doc/NAMESPACE were updated by hand to match roxygen2 output.

jspijker and others added 2 commits August 27, 2026 11:04
Closes #25

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jspijker
jspijker merged commit 87b9909 into develop Aug 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant