Skip to content

feat: add metadatadb registry and wire into config#237

Merged
alecthomas merged 1 commit intomainfrom
aat/metadatadb-registry
Mar 30, 2026
Merged

feat: add metadatadb registry and wire into config#237
alecthomas merged 1 commit intomainfrom
aat/metadatadb-registry

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

Add a Registry for metadatadb backends modelled on cache.Registry,
with memory and S3 backends registered. config.Load now accepts the
metadatadb registry, handles a single "metadata" block, and returns
the Backend.

Also refactors S3Backend to extract the logger from context instead
of accepting it via config, and takes s3client.ClientProvider instead
of *minio.Client directly.

Marks cache and strategy schema blocks as repeated.

Co-Authored-By: Claude Opus 4.6 (1M context) noreply@anthropic.com

Add a Registry for metadatadb backends modelled on cache.Registry,
with memory and S3 backends registered. config.Load now accepts the
metadatadb registry, handles a single "metadata" block, and returns
the Backend.

Also refactors S3Backend to extract the logger from context instead
of accepting it via config, and takes s3client.ClientProvider instead
of *minio.Client directly.

Marks cache and strategy schema blocks as repeated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner March 30, 2026 08:09
@alecthomas alecthomas requested review from inez and removed request for a team March 30, 2026 08:09
@alecthomas alecthomas enabled auto-merge (squash) March 30, 2026 08:09
@alecthomas alecthomas merged commit 1e1d4c7 into main Mar 30, 2026
7 checks passed
@alecthomas alecthomas deleted the aat/metadatadb-registry branch March 30, 2026 08:11
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