Commit graph

95 commits

Author SHA1 Message Date
Andy Grove
035ef52696 re-instate tests for generic parser 2018-10-06 10:15:10 -06:00
Andy Grove
beb1a7a735 clean up use of modules 2018-10-06 10:04:22 -06:00
Andy Grove
661ada0664 fix compiler warnings 2018-10-06 09:58:16 -06:00
Andy Grove
4b6967ccd6 remove unused variables 2018-10-06 09:40:30 -06:00
Andy Grove
722ea7a91b ran cargo fmt 2018-10-06 09:39:26 -06:00
Andy Grove
9daba3ab49 move tests to tests dir 2018-10-06 09:39:06 -06:00
Andy Grove
486eca1f10
Merge pull request #20 from ivanceras/master
Postgres dialect + various improvements
2018-10-06 09:28:39 -06:00
Jovansonlee Cesar
439f64dfe1 Make keywords public 2018-10-01 01:28:58 +08:00
Jovansonlee Cesar
24153aee53 keywords are now generated via macro to avoid misspellings, dialects should lookup to these list of keywords to avoid mispellings 2018-10-01 00:58:20 +08:00
Jovansonlee Cesar
d66e4848bd modularize dialects into their own submodules
remove assertion in copy sql, conversion to_string is unfinished
2018-09-30 13:35:24 +08:00
Andy Grove
e6ad7ab715
Merge pull request #21 from ivanceras/parse_insert
Implement parsing insert statement
2018-09-29 15:40:05 -06:00
Jovansonlee Cesar
ba8a9bd48f NULL need to be detected in COPY 2018-09-30 04:19:15 +08:00
Jovansonlee Cesar
5abd9e7dec Modularized into separate files
Add ToString implementation on the components
2018-09-30 03:34:37 +08:00
Jovansonlee Cesar
34913c7051 Implement alter table constraint operation 2018-09-29 19:37:03 +08:00
Jovansonlee Cesar
639f01d4e7 Make Uuid a datatype in PostgreSQL dialect 2018-09-29 13:50:33 +08:00
Jovansonlee Cesar
da153bf848 Make a PostgreSQLDialect
Add is_primary and is_unique in the column definition

Initial code for testing alter table
2018-09-28 03:32:10 +08:00
Jovansonlee Cesar
74b34faaf1 Also tokenize non alphanumeric characters into some Char, since they can be tab separated values in COPY payload 2018-09-26 23:59:52 +08:00
Jovansonlee Cesar
7c7b67b0bc testing values for most common data dump 2018-09-26 22:51:50 +08:00
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
96f1f9f35e (cargo-release) start next development iteration 0.1.6-alpha.0 2018-09-08 08:52:10 -06:00
Andy Grove
70f3b78f33 (cargo-release) version 0.1.5 2018-09-08 08:52:01 -06:00
Andy Grove
d5fd4aafaf fix example 2018-09-08 08:51:52 -06:00
Andy Grove
48e78f99dd Update code sample in README 2018-09-08 08:43:15 -06:00
Andy Grove
e16b92763a Update README and description 2018-09-08 08:42:07 -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
0d36aa536a Update docs on writing custom parsers 2018-09-08 07:29:34 -06:00
Andy Grove
6374b521c9 Update documentation to point to docs.rs 2018-09-08 07:29:17 -06:00
Andy Grove
049fe9034f (cargo-release) start next development iteration 0.1.5-alpha.0 2018-09-08 07:24:40 -06:00
Andy Grove
ed40edd3b0 (cargo-release) version 0.1.4 2018-09-08 07:24:32 -06:00
Andy Grove
9cc4bc3423 Adding rustdoc comments 2018-09-08 07:24:00 -06:00
Andy Grove
ecc6b5fb38 update README 2018-09-08 06:38:16 -06:00
Andy Grove
dec70a677f fix build badge 2018-09-08 06:35:01 -06:00
Andy Grove
09f6a43fc9
Merge pull request #14 from crw5996/add-line-columns
Include row and column in tokenizer error messages
2018-09-08 06:19:24 -06:00