Skip to content

Remove MongoDB leftovers - #63

Merged
stremovsky merged 4 commits into
masterfrom
remove-bson
Dec 3, 2026
Merged

stremovsky merged 4 commits into
masterfrom
remove-bson

Conversation

@stremovsky

@stremovsky stremovsky commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

MongoDB support was removed earlier, but its bson.M map type and the mongo-driver dependency stayed. They are replaced with map[string]interface{}, and the dependency is dropped from src and src/storage.

Storage functions now take record maps by value instead of a pointer: a map is already a reference, and no function replaced it. CreateRecord takes a typed map, so the compiler catches callers that still pass a pointer.

🤖 Generated with Claude Code

stremovsky and others added 4 commits December 3, 2026 14:11
bson.M and primitive.M become map[string]interface{}. The storage
switches handled both types the same way, so their primitive.M cases
are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bson.M becomes map[string]interface{}, commented-out MongoDB code is
removed, and storage is pinned to the commit without MongoDB types.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A map is already a reference and no storage function replaces the map,
so the pointer adds nothing. CreateRecord now takes a typed map, so the
compiler rejects any caller still passing &bdoc instead of the insert
silently writing nothing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stremovsky
stremovsky merged commit ccafac4 into master Dec 3, 2026
8 checks passed
@stremovsky
stremovsky deleted the remove-bson branch December 3, 2026 12:20
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