Skip to content

VisualSource/RustSqliteClone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rust sqlite clone

A simple clone of sqlite.

How to use

TCP

TCP is the default mode, the host and port are configured with --port and --host flags

make POST request that contain SQL query to the server with Content-Type of text/plain

POST /
Content-Type: text/plain

CREATE TABLE info (id uint);

Repl

To run in repl mode run with the --repel flag.

exe --repel

Supported queries

  1. INSERT INTO table VALUES (value,value,...);
  2. INSERT INTO table (column,column,...) VALUES (value,value,...);
  3. CREATE TABLE table (column data_type);
  4. SELECT * FROM table;
  5. SELECT (column, column,...) FROM table;
  6. DELETE FROM table WHERE expr;
  7. DROP TABLE table;
  8. UPDATE table SET column=expr WHERE expr;

Supported Data types

  1. string
  2. uint
  3. u64
  4. null

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages