Skip to content

[store] Revork init structure; use Store interfaces instead of datastore.Store interfaces#1445

Open
the-glu wants to merge 2 commits intointeruss:masterfrom
Orbitalize:move_init_and_interfaces
Open

[store] Revork init structure; use Store interfaces instead of datastore.Store interfaces#1445
the-glu wants to merge 2 commits intointeruss:masterfrom
Orbitalize:move_init_and_interfaces

Conversation

@the-glu
Copy link
Copy Markdown
Contributor

@the-glu the-glu commented Apr 22, 2026

This is a series of PRs, aiming to fix #1418 with better organization of datastore interfaces.

PRs are chained, and composed of the following:

#1444 : Merge datastore.Store and datastore.Datastore
#1445 : Move initialization into clean datastore.Store interface and use generic stores
#1446 : Rename datastore to sqlstore
#1447 : Move 'CodeRetryable' to generic store package
#1448 : Add 'store_type' flag
#1449 : Show example of new datastore type (not to be merged, demo only).


This PR is the 'core' of the proposal.

It reworks init functions to be cleaner, with a config object, helping specific stores (rid/*) tell the generic init function what to do.

Dial functions and datastore.Store structs in specific stores have been removed. Initialization is now done in store.Store functions and uses only (rid/*).Store interfaces. Usages have been updated (but are just a type change).

@the-glu the-glu changed the title Move init and interfaces [store] Revork init structure; use Store interfaces instead of datastore.Store interfaces Apr 22, 2026
@the-glu the-glu marked this pull request as ready for review April 22, 2026 13:29
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.

[datastore] Improve store/datastore implementation

1 participant