Skip to content

Add time_dl timestamp to cache table - #31

Merged
jspijker merged 2 commits into
developfrom
copilot-cache-table-time-dl
Sep 1, 2026
Merged

jspijker merged 2 commits into
developfrom
copilot-cache-table-time-dl

Conversation

@jspijker

@jspijker jspijker commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Summary

Implements #29. The cache table now records when each time range was inserted.

Changes

  • R/create_database_tables.R: added a non-nullable time_dl INTEGER NOT NULL field to the cache table.
  • R/fun-timeranges.R: insert_time_range now fills time_dl with the current time as a UTC unix timestamp (as.numeric(as.POSIXct(Sys.time(), tz = "UTC"))).
  • tests/testthat/test-fun-timeranges.R: asserts time_dl is populated on insert.

Closes #29

The cache table now stores a non-nullable time_dl field recording when
a time range was inserted. insert_time_range fills it with the current
time as a UTC unix timestamp.

Closes #29

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@jspijker
jspijker changed the base branch from main to develop September 1, 2026 10:01
@jspijker
jspijker merged commit 4a6eb83 into develop Sep 1, 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.

function insert_time_range must add timestamp to cache table

1 participant