A modernized codebase of sciore's simpledb project, powered by Kotlin and gradle
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
gradle/wrapper
src
studentClient
.gitignore
CONTRIBUTIONS.md
README-OLD.txt
README.md
build.gradle
gradle.properties
gradlew
gradlew.bat

README.md

SimpleDB-Kotlin

status-wip

A modernized codebase of SimpleDB in Kotlin with Gradle, JUnit, etc..

Currently based on SimpleDB-2.10. The original author is Edward Sciore (sciore@bc.edu).

This project is still in WIP state. To-dos include:

  • Migrate StudentClient into tests
    • createTable
    • Findmajors
    • ChangeMajor
    • add new tests
  • Fix nullability & synchronization issues.
  • Introduce continous integration

Usage

Read Original README first!

Run server

## Linux
./gradlew run

## Windows
./gradlew.bat run

The server will create database under studentdb/ directory. Built sources could be found at build/distributions

Generate docs

Doc system has been migrated to Dokka. Run

## Linux
./gradlew dokka

## Windows
./gradlew.bat dokka

to generate docs at build/javadoc.

Generate IDEA project

gradle idea has been deprecated

The recommended way to load this project in IDEA is to click Open - select this directory - Click OK.

After that, IDEA will prompt you to Import Gradle project. Click that link, run with default configuration. Now this project is opened in IDEA.

To run tests in IDEA, right click src/test, choose Run All tests.

To launch the server, right click src/main/kotlin/simpledb/server/Startup, choose Run 'simpledb.server.Startup'.

Run tests

## Linux
./gradlew test

## Windows
./gradlew.bat test

If anything proceeds without error, you should see:

> Task :junitPlatformTest
new transaction: 1
recovering existing database
...
Test run finished after 8254 ms
[         2 containers found      ]
[         0 containers skipped    ]
[         2 containers started    ]
[         0 containers aborted    ]
[         2 containers successful ]
[         0 containers failed     ]
[         1 tests found           ]
[         0 tests skipped         ]
[         1 tests started         ]
[         0 tests aborted         ]
[         1 tests successful      ]
[         0 tests failed          ]