Rewrite of the Have A Nice Pickem Appplication Database in PostgreSQL
-
PostgreSQL was chosen to get experience with another RDBMS other than MSSQL, Oracle SQL and MySQL.
-
Built upon then existing database schema to update and recreate the entity relationship diagram, using the dbdiagram.io VSCode extension.
-
Developed the
create_tablesprocedure with the DDL to define a table for each entity from the ERD above, including primary and foreign key constraints. -
Developed the
create_constraintsprocedure and copied over the foreign key constraints originally defined increate_tables. -
Developed the
drop_constraints,drop_tablesanddrop_dbprocedures to remove all constraints or tables with one procedure call. This approach was a requirement in my database management graduate courses and has just remained a habit since. -
Developed
/scripts/load/procedures to improve efficiency of data loading compared to the single row INSERTS in loops used in the past. -
Developed the
/scripts/viewsprocedures to instantiate common queries that were executed against the database in last year's implementation -
Installed Postgres using homebrew
brew install postgresql -
Instantiate local development instance of the database with the command
createdb pickem_dev -
Ran the initial setup scripts with pgAdmin