pegasus-db-admin should fail on imports if mysql | postgres packages are not installed

XMLWordPrintable

      I am not sure if we should add the dependency for mysqldb and psqcopg packages in our builds. Very few of our users actually use a non sqlite database.

      What we should do is add logic to fail if an import fails in the database layer, with a clear message as to what needs to be installed. This way only if one is using mysql database and postgres database will need to install it. the import should happen probably in the database connection once the code knows it is a mysql or postgres URL

      Hi Rajiv,

      I needed to add the mysqldb and psycopg packages to be shipped with pegasus, but for compiling it, the modules need ‘libmysqlclient-dev’ and 'libpq-dev' to run ‘mysql_config’ and ‘pg_config’ respectively..
      Could you please install them on the docker container image?

      sudo apt-get install libmysqlclient-dev
      sudo apt-get install libpq-dev

      Thanks,
      Rafael

            Assignee:
            Rafael Ferreira Da Silva (Inactive)
            Reporter:
            Karan Vahi
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: