Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-1922

Allow database driver to be specified in a runtime property

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Non-Essential
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenMRS 1.9.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      Currently we use a DatabaseUtil.loadDatabaseDriver(String connectionUrl) method, which automatically guesses one of 6 different database drivers depending on the connection string. If we want to support a new database, we need to add code to this class.

      Add a runtime property named "connection.driver" (alongside "connection.url"). It should be optional. If unspecified, we should continue with the current behavior, but if it's specified, we should do a Class.forName on that driver class instead.

        Gliffy Diagrams

          Attachments

          1. TRUNK-1922.patch
            2 kB
          2. TRUNK-1922-API.patch
            7 kB
          3. TRUNK-1922-API.patch
            3 kB
          4. TRUNK-1922-API-latest.patch
            4 kB
          5. TRUNK-1922-WEB.patch
            4 kB
          6. TRUNK-1922-WEB.patch
            4 kB
          7. TRUNK-1922-WEB-latest.patch
            4 kB

            Issue Links

              Attachments-Category-Modification

                Activity

                  People

                  • Assignee:
                    surangak Suranga Kasthurirathne
                    Reporter:
                    darius Darius Jazayeri
                  • Votes:
                    1 Vote for this issue
                    Watchers:
                    2 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: