stellarsql / StellarSQL

🚧 (Archived) StellarSQL: a minimal SQL DBMS written in Rust
https://stellarsql.github.io/StellarSQL/stellar_sql/
MIT License
86 stars 16 forks source link

combine connection(request) with parser/worker #6

Closed Dong513 closed 5 years ago

Dong513 commented 5 years ago

connection protocol: user||dbname||cmd; request procedure:

  1. check user (verification)
  2. check dbname 2-1. if dbname is null, check cmd if it is create database dbname; 2-2. if dbname is not null, call worker loading dbname, call parser parsing cmd