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

Add support for MySQL database #306

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ node_modules
npm-debug.log
.vscode
exercises.json
exercises-psql.sql
exercises-psql.sql
data.sql
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Contributions are wanted, as l know this will be too much to undertake by any on

1. `npm run build:json` - creates a JSON file with all exercises
2. `npm run build:psql` - creates a SQL file for PostgreSQL to load all exercises in
3. `npm run build:mysql` - creates a SQL file for MySQL to load all exercises in

## Public JSON API Service

Expand All @@ -42,6 +43,14 @@ $ npm run build:psql -- <table name>

This builds an `exercises-psql.sql` file which creates and inserts all exercises into a PostgreSQL database.

## Generate `data.sql`

```shell
$ npm run build:mysql
```

This builds a `data.sql` file which creates and inserts all exercises into a MySQL database.

## Maintainers

[@olliejennings](https://github.com/OllieJennings)
Loading