Uploaded image for project: 'Nuxeo Drive '
  1. Nuxeo Drive
  2. NXDRIVE-2548

Databases refactoring

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: NoFixVersionApplicable
    • Fix Version/s: 5.2.2
    • Component/s: Framework

      Description

      Before reviewing database migrations, we need to refactor the while database code. It will be easy and I do not expect compatibility breaking.

      After that ticket will be done, it will be easier to add new specific files like engine/dao/migration.py, for instance.

      Reorganising

      Split the big engine/dao/sqlite.py into smaller files with specific meaning:

      • engine/dao/__init__.py: will import and register SQLite adapters.
      • engine/dao/adapters.py: SQLite adapters.
      • engine/dao/base.py: ConfigurationDAO and shared objects.
      • engine/dao/engine.py: EngineDAO and constants.
      • engine/dao/manager.py: ManagerDAO

      Cleaning Up

      Rename ConfigurationDAO to BaseDAO.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d