You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/04/26 08:51:02 UTC

[GitHub] [incubator-superset] nawazxy opened a new issue #9656: Add a database via superset_config.py script

nawazxy opened a new issue #9656:
URL: https://github.com/apache/incubator-superset/issues/9656


   I'm running superset in a docker container with my config in superset_config.py script.
   Currently, there's just one database wired to the app which contains superset's default schema.
   In order to build charts, I'd like to know if there's a way to add a new database via the superset_config.py  in a similar manner as we do with the examples database instead of doing so through the UI.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] nawazxy commented on issue #9656: Add a database via superset_config.py script

Posted by GitBox <gi...@apache.org>.
nawazxy commented on issue #9656:
URL: https://github.com/apache/incubator-superset/issues/9656#issuecomment-620791136


   After a bit of digging around I found the command **superset set_database_uri -d <db_name> -u <db_uri>** useful. I'm running it after **superset db upgrade** and **init** commands in a bash script within the Superset container and it adds a new database entry for me. Is that okay?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] dpgaspar commented on issue #9656: Add a database via superset_config.py script

Posted by GitBox <gi...@apache.org>.
dpgaspar commented on issue #9656:
URL: https://github.com/apache/incubator-superset/issues/9656#issuecomment-623234780


   Oh yes, totally forgot that one, yes it's fine


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] dpgaspar commented on issue #9656: Add a database via superset_config.py script

Posted by GitBox <gi...@apache.org>.
dpgaspar commented on issue #9656:
URL: https://github.com/apache/incubator-superset/issues/9656#issuecomment-620695051


   There's no way to add a database on the config (unless you write some code around it). Yet, we will soon implement an API endpoint to support this
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org