Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
1. implememnted a calculator demo via flex and bison
2. init the sql parser
3. update docs
  • Loading branch information
sinkinben committed Oct 30, 2021
1 parent ab42ea5 commit 8a8fd25
Show file tree
Hide file tree
Showing 7 changed files with 484 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ bin/
test.c
test.rb
tinydb
mydb.db
mydb.db
lex.yy.c
*.tab.h
*.tab.c
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,5 @@ $ bundle exec rspec

- [1] [SQLite Database System: Design and Implementation](https://play.google.com/store/books/details/SQLite_Database_System_Design_and_Implementation_F?id=9Z6IQQnX1JEC&gl=US)
- [2] [Architecture of SQLite](https://www.sqlite.org/arch.html)
- [3] https://github.com/cstack/db_tutorial

2 changes: 1 addition & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The input to the front-end is a SQL query. the output is sqlite virtual machine
- 支持多表,即手动创建一个表
- 可以一个文件存放一个表(join 等操作之后再说)。
- 支持 where 条件
- 可以考虑[使用 YACC 实现一个简易的 SQL Compiler](https://blog.csdn.net/towerjt/article/details/2255043)
- 考虑使用 Flex and Bison 实现一个 SQL Parser,参考 `sql-parser.md`
- `where a <= key <= b` 这很简单
- 进阶:多表的情况下,每个表都有不同的 column name;多个表达式 and / or 结合。
- 支持其他索引键
Expand Down
Loading

0 comments on commit 8a8fd25

Please sign in to comment.