Commit graph

248 commits

Author SHA1 Message Date
Jovansonlee Cesar
34412f7e3d Whitespace tokens are not skipped
Differentiate single quoted string and double quoted string
2018-09-26 22:46:16 +08:00
Jovansonlee Cesar
8dbb62cddd unify parsing of sql_values 2018-09-26 15:41:57 +08:00
Jovansonlee Cesar
6aca4de658 Remove unused functions 2018-09-26 15:11:49 +08:00
Jovansonlee Cesar
096b2bf7ba Parsing timestamp and datetime alongside 2018-09-26 14:56:46 +08:00
Jovansonlee Cesar
7803063ece Add parsing of timestamp values 2018-09-25 22:33:01 +08:00
Jovansonlee Cesar
9ab5c1358d Modularize SQLValue into an enum
Add capability of parsing dates
2018-09-25 15:54:29 +08:00
Jovansonlee Cesar
199ec67da7 Add implementation for parsing SQL COPY 2018-09-25 01:31:54 +08:00
Jovansonlee Cesar
719df789e4 Merging parse_inser and improve-create-table branch into these 2018-09-24 19:14:26 +08:00
Jovansonlee Cesar
78c054ea19 Add Boolean value data type
remove unecessary consume of LParen and RParen in default value
2018-09-24 05:53:58 +08:00
Jovansonlee Cesar
2007995938 Improve the create statement parser that uses create statements from pg database dump
Added PostgreSQL style casting
2018-09-24 03:34:40 +08:00
Jovansonlee Cesar
46274c536b Remove println debugging 2018-09-21 15:37:28 +08:00
Jovansonlee Cesar
5adce6a013 Implement parsing insert statement 2018-09-21 15:19:59 +08:00
Jovansonlee Cesar
7d27abdfb4 Correction on prev_token, the index should decremented 2018-09-21 02:34:44 +08:00
Andy Grove
3fe6fa4041 Reduce duplicate code in tokenizer 2018-09-08 14:55:03 -06:00
Andy Grove
810cd8e6cf tokenizer delegates to dialect now 2018-09-08 14:49:25 -06:00
Andy Grove
06a8870bd7 Introduce concept of dialects 2018-09-08 08:39:32 -06:00
Andy Grove
cc725791de cargo fmt 2018-09-08 08:10:05 -06:00
Andy Grove
d58e59324b Add SQLOrderBy struct to replace ASTNode::OrderByExpr 2018-09-08 08:09:32 -06:00
Andy Grove
e19d559073 Add SQLAssignment struct for use in INSERT 2018-09-08 08:06:10 -06:00
Andy Grove
9cc4bc3423 Adding rustdoc comments 2018-09-08 07:24:00 -06:00
crw5996
900c56ff29 Fixed column values to reflect length of tokens 2018-09-07 20:23:23 -04:00
crw5996
82d1f36366 Added line number errors in the tokenizer 2018-09-07 18:34:22 -04:00
crw5996
549ed6e83a Implemented DELETE keyword. Not much to do, all of the subexpressions were already handled 2018-09-06 16:00:46 -04:00
Andy Grove
cfe7ee5613 make precision on FLOAT optional for now 2018-09-03 14:56:26 -06:00
Andy Grove
a10482c353 cargo fmt 2018-09-03 13:51:52 -06:00
Andy Grove
80cb9b13ce Remove FileType, fix compiler warning 2018-09-03 13:51:43 -06:00
Andy Grove
7bea9a8648 cargo fmt 2018-09-03 11:45:03 -06:00
Andy Grove
5bac9fd131 Remove some non ANSI SQL support 2018-09-03 10:25:05 -06:00
Andy Grove
751a6f0880 Start adding ANSI SQL types 2018-09-03 10:04:29 -06:00
Andy Grove
0c23392adb replace with code from datafusion 2018-09-03 09:56:39 -06:00
Andy Grove
a86bd30515 Refactoring 2018-09-03 09:13:43 -06:00
Andy Grove
375671e208 Refactoring 2018-09-03 08:04:20 -06:00
Andy Grove
a1696ccdb8 Refactoring 2018-09-03 07:59:05 -06:00
Andy Grove
fa2ef528b7 Refactoring 2018-09-03 07:45:48 -06:00
Andy Grove
037ebb0f73 Refactoring 2018-09-02 19:15:07 -06:00
Andy Grove
2e20b15c2e Refactoring 2018-09-02 19:08:44 -06:00
Andy Grove
69a140a820 create Chars struct instead of using Peekable 2018-09-02 18:59:30 -06:00
Andy Grove
7ff4133327 Refactoring 2018-09-01 12:59:18 -06:00
Andy Grove
2ddc9f7a49 Refactoring 2018-09-01 08:58:00 -06:00
Andy Grove
72cff632c1 Roughing out pratt parser logic 2018-09-01 08:39:27 -06:00
Andy Grove
e6e9c8d2cc Refactoring use of generics, added peek_token 2018-09-01 08:11:26 -06:00
Andy Grove
eed0261297 create module for ansi tokenizer/parser 2018-09-01 07:34:41 -06:00
Andy Grove
0339558d4e Add most of the SQL:2011 data types 2018-09-01 06:51:00 -06:00
Andy Grove
f56846098e simple example of custom tokenizer 2018-02-09 06:53:49 -07:00
Andy Grove
fcf6b1150e save 2018-02-09 05:58:14 -07:00
Andy Grove
b16396aef3 roughing out classic pratt parser 2018-02-08 07:49:24 -07:00
Andy Grove
1e5686c793 Save 2018-02-07 08:53:09 -07:00
Andy Grove
3caeb58d22 roughing out new version 2018-02-07 08:48:49 -07:00