Coder Social home page Coder Social logo

iiiuwioajdks / bullfrogsql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from talent-plan/tinysql

1.0 0.0 0.0 2.99 MB

A course to build the SQL layer of a distributed database.

License: Apache License 2.0

Shell 0.09% Go 97.35% Assembly 0.01% Makefile 0.19% Yacc 2.34% Dockerfile 0.02%

bullfrogsql's Introduction

TinySQL

TinySQL is a course designed to teach you how to implement a distributed relational database in Go. TinySQL is also the name of the simplifed version of TiDB.

Prerequisites

Experience with Go is required. If not, it is recommended to learn A Tour of Go first.

Course Architecture

The entire course is designed based on TiDB.

The course is organized into six parts:

Material List

There's a material list. It lists plenty of materials for you to study how a database system works. We pick some topics in it and prepare homework for you to have a better understand about it.

This course will take you from idea to implementation, with the essential topics of distributed relational database covered.

The course is organized into three parts:

  1. Gives a simple interpretation of SQL and relational algebra in preparation for the following course.

  2. Explains the life of a read-only SQL, which includes parsing, execution, and the optimization of SQL plans.

  3. Focuses on SQLs (including DML and DDL) that change the state of the database: how they get implemented and how to deal with the interaction of them and read-only statements.

Other courses in this series

This course only focuses on the SQL layer of a distributed database system. If you are also interested in KV layer, see TinyKV.

Deploy

Once you finish the project. You can deploy the binary and use MySQL client to connect the server.

Build

make

Run & Play

Use ./bin/tidb-server to deploy the server and use mysql -h127.0.0.1 -P4000 -uroot to connect the server.

Also you can deploy the cluster together with the tinykv project.

Use make command in tinykv project to build binary tinyscheduler-server, tinykv-server.

Then put the binaries into a single dir and run the following commands:

mkdir -p data
./tinyscheduler-server
./tinykv-server -path=data
./tidb-server --store=tikv --path="127.0.0.1:2379"

Autograding

Since Jun 2022, we start use classroom to accept labs and provide autograding timely. Once the classroom invitation is not provided, please try the traditional way to submit labs through email.

Contributing

Contributions are welcomed and greatly appreciated. See Contribution Guide for details on submitting patches and the contribution workflow.

License

TinySQL is under the Apache 2.0 license. See the LICENSE file for details.

bullfrogsql's People

Contributors

iiiuwioajdks avatar tsinghuaroger avatar winoros avatar pupillord avatar callmepicacho avatar rebelice avatar enochack avatar hidehalo avatar yanguwan avatar fzhedu avatar huganghui avatar yamamel avatar likzn avatar cnissnzg avatar tisonkun avatar you06 avatar xffxff avatar zstone12 avatar tennyzhuang avatar bowenxiao1999 avatar zhangysh1995 avatar divanodestiny avatar thliang01 avatar zyctree avatar pansonpanson avatar swanspouse avatar howie59 avatar defined2014 avatar ekalinin avatar connor1996 avatar

Stargazers

Eason Wang 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.