GithubHelp home page GithubHelp logo

laowantong / sqlab_island Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 1.36 MB

An SQLab adaptation of SQL Island

Home Page: https://github.com/laowantong/sqlab

License: Creative Commons Attribution Share Alike 4.0 International

Python 0.52% Jupyter Notebook 87.28% PLpgSQL 12.20%

sqlab_island's Introduction

๐Ÿ SQLab Island

Credits

This is an adaptation of SQL Island, a simple game designed to teach SQL, distributed under the MIT License on GitHub by its main author, Johannes Schildgen (Regensburg University of Applied Sciences, Germany).

The original game was adapted by Aristide Grange (University of Lorraine, France) to demonstrate the use of SQL Adventure Builder, or SQLab, a system enabling teachers to create standalone educational games for learning SQL. This system lives in a separate repository with the explanation of its principles.

Versions

To play SQLab Island, you just need to download a dump of the self-contained database and import it into your favorite SQL database management system (DBMS). There are currently three versions, all of them in English:

MySQL

  1. Download dump.sql (right-click and "Save link as...").
  2. On the command line, create a new database called sqlab_island, populate it and connect to it:
    mysql -u username -p < dump.sql
    mysql -u username -p sqlab_island
  3. On the MySQL prompt, access the first episode of the adventure:
    SELECT decrypt(42)

PostgreSQL

  1. Download dump.sql (right-click and "Save link as...").
  2. On the command line, create a new database called sqlab_island, populate it and connect to it:
    psql -U username -f dump.sql
    psql -U username sqlab_island
  3. On the PostgreSQL prompt, access the first episode of the adventure:
    SELECT decrypt(42)

SQLite

  1. Install sqlpkg.
  2. On the command line, install the required SQLite extensions:
    sqlpkg install nalgeon/crypto
    sqlpkg install nalgeon/define
    sqlpkg install nalgeon/regexp
    sqlpkg install nyurik/compressions
  3. Download dump.sql (right-click and "Save link as...").
  4. On the command line, launch SQLite:
    sqlite3
  5. On the SQLite prompt, load the required extensions, read the dump and access the first episode of the adventure:
    .load /path/to/.sqlpkg/nalgeon/crypto/crypto
    .load /path/to/.sqlpkg/nalgeon/define/define
    .load /path/to/.sqlpkg/nalgeon/regexp/regexp
    .load /path/to/.sqlpkg/nyurik/compressions/libsqlite_compressions
    .read dump.sql
    SELECT * FROM decrypt(42)

Disclaimer and potential issues

The present adaptation of SQL Island includes a few changes in the game's content to be compatible with SQLab. Any bug or problem is the sole responsibility of the adapter, and should be reported in the issues of SQLab itself.

sqlab_island's People

Contributors

laowantong avatar

Stargazers

Nima HeydariNasab avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.