type

StoreFactory

type StoreFactory func(context.Context) (store.Store, error)

Lazy lifecycle-owned document-store constructor.

Source core/execute.go:35

@param ctx
The server lifecycle context, cancelled during shutdown.
@returns
One opened adapter owned by Execute, or a startup error.

Project commands resolve configuration without calling this factory. Execute closes the returned store during shutdown.

Related types

  • Store

    Starts atomic transactions for operations.