Skip to content

andrewjhopkins/csharp_sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csharp_sql

My attempt at a simple SQL implementation from scratch in C# to better understand compilers and database development

Use Example

$ git clone https://github.com/andrewjhopkins/csharp_sql.git
$ cd csharp_sql
$ dotnet run --project csharp_sql
$ Welcome to C# sql
$ Press ctrl + c to quit
$ # CREATE TABLE users (id INT, name TEXT);
$ table: users created
$ # INSERT INTO users VALUES (1, 'andrewjhopkins');
$ Values (1, andrewjhopkins) inserted into table: users
$ # SELECT id, name FROM users;
$ | id | name |
  ====================
  | 1 |  andrewjhopkins |
  ok

TODO:

Short term

  • Support asterisks in Select
  • Memory background unit tests
  • Full scenario tests
  • More informative response for create and insert
  • On error. Return syntax error location
  • General code cleanup

Long term

  • WHERE filters
  • Indexing
  • UPDATE statements

resources

About

C# implementation of a SQL database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages