Giter Site home page Giter Site logo

collegeproj-database's Introduction

database_course_project

This is my solution for PA3 in Database Management System course

The file you are interested in is litedb.cpp.

How to compile/run

CLion

I'd recommend CLion as your IDE for this repo.

Open folder litedb_c with CLion and it should automatically pick up the CMakeLists.txt and config the project. Then you can select one of the executables to run.

Unfortunately, it requires a specific collection of data (csv files) to run.

g++

The program can be compiled like g++ -std=c++11 main.cpp.

What does it do?

It is a very limited database management system. The specification is in PA3.pdf.

For short, It can read data from csv files which represent tables in a traditional DBMS, convert them into more computer-friendly format and store to disks. Then it can execute a subset of SQL, and output result to stdout.

What exactly does it do?

  1. Load CSV files

  2. Read SQL from stdin (column store, no indexing)

  3. Execute SQL

    1. Execute select/filter (things like A.c0 < 10) (push-down predicates)
    2. Optimize joins (Selinger's Algorithm, but no exactly correct)
    3. Execute joins (sorted nested loop join)
    4. Execute sums

Is it good?

NO, don't use it anywhere else. This repo is for educational purpose only.

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.