Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mustafaDurmus-db-w1-assignment #5

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mustafadurmusNl
Copy link

No description provided.

Copy link

@rafaelhdr rafaelhdr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job. It is working very well. I just added some comments about typos, but you got the idea.

@@ -0,0 +1,18 @@
const mysql = require('mysql2');
const createDatabaseAndTables = require('./createTablesAndData'); // Import the SQL queries

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a typo here. You are importing createTablesAndData (Tables in plural), but the file name is Week1/createTableAndData.js (Table in singular)

This is something small that would be nice to fix.

host: 'localhost',
user: 'hyfuser',
password: 'hyfpassword',
database: 'new_world',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering why renaming to new_world because world.sql is using the DATABASE world.

DROP SCHEMA IF EXISTS world;
CREATE SCHEMA world;
USE world;

@rafaelhdr rafaelhdr self-assigned this Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants