Skip to content

[Store] Add lifecycle management for storesΒ #285

@chr-hertel

Description

@chr-hertel

Currently there is the InitializableStoreInterface which was originally introduced with MongoDB, but was adopted quite well while rolling out more stores.

This interface is not used by the library itself, but its examples and could provide another feature for managing the lifecycle of a store. Similar to doctrine schema management or messenger setup.

To level this up, we would need to add the counterpart method, e.g. drop or tearDown or destroy or killItWithFire, which could be combined with corresponding commands like ai:store:initialize and ai:store:destory.

We should aling:

  • Do we want to have that feature?
    • If not, that brings in the question about dropping the interface
  • How should we name the methods - and is it only the two of them?

I'm def in favor of having that in the lib + commands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew featureRFCRFC = Request For Comments (proposals about features that you want to be discussed)StoreIssues & PRs about the AI Store component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions