I teach an introduction to SQL class, using Jupyter. I’m looking for an approach for two things:
- Browsing SQL Database and Tables
- Creating Databases/Tables/Columns.
Currently I teach SELECT before I teach CREATE and INSERT, my intention is to minimize cognitive distraction and give some payoff before setup. In the past I’ve used phpmyadmin (together with MariaDB) but I’m switching over to postgres (for various reasons). pgadmin4 is even more complex visually and with options than phpmyadmin is (not to mention my lack of desire to discuss Servers/Databases/Schemas/Tablespaces).
I’ve checked out which was promising for browsing databases/tables. But it seems to be out of date and not active in responding to issues: https://github.com/pbugnion/jupyterlab-sql/issues/147
We’ve also explored http://www.adminer.org but had some difficulties there with installation along with JupyterHub. Anyone got those working together?
Reason I’d like browsing is two-fold: First, I think it helps students orient themselves when they can see what databases/tables/columns exist (and SHOW TABLES or \dt are pretty unfriendly; also \dt and \d don’t appear to work in SQL magic or xeus-sql modes). Second, I think being able to see the data in the tables helps scaffold from their understanding of Excel.
But perhaps these aren’t needed. Any ideas on ordering?