• Initialize the shared PostgreSQL DAL, optionally honoring a configuration override. Runs migrations exactly once and registers models after a successful connection.

    Parameters

    • customConfig: Partial<PostgresConfig> & JsonObject = null

      Optional configuration overrides, typically used for tests.

    Returns Promise<DataAccessLayer>

    Resolves with the shared data access layer instance.