Member Junction
    Preparing search index...

    Function initializeMJProvider

    • Initialize this CLI process's MJ data provider and return it.

      The returned provider is also registered as the process-global default by setupSQLServerClient, which is the established CLI/server bootstrap pattern in MJ (see MJServer/src/index.ts, CodeGenLib, etc.). Callers that want to thread the provider explicitly through their own code can capture the return value here rather than reaching for Metadata.Provider later.

      Calling this more than once in a process is idempotent — the cached provider is returned.

      Returns Promise<IMetadataProvider>