Welcome to the platform team. The in-memory database in database/ handles records, scans and values that expire (levels 1 to 3), and its tests pass. Billing needs to ask what a field held at an earlier moment. The method…
Welcome to the platform team. The in-memory database in database/ handles records, scans and values that expire (levels 1 to 3), and its tests pass. Billing needs to ask what a field held at an earlier moment. The method is stubbed in database/database.py, and the rules for level 4 are in README.md.
Build level 4 in 40 minutes. The checks are graded one by one, so each part you get working counts even if the rest is not done.
get_when(timestamp, key, field, at_timestamp) returns the value left by every call made at or before at_timestamp, including calls made at exactly at_timestamp.at_timestamp reads as None.at_timestamp: a value set with a TTL is seen before it expired, even if get_when is called much later.False changes nothing, so get_when does not see it.pytest tests/visible. tests/visible/test_level4.py fails until level 4 works.Visible test command
pytest tests/visibleThe repository’s own tests. Run all tests includes them, and so does every submission.
Repository
in-memory-database-point-in-time-reads
Changes under src/ are evaluated.