Commit graph

15 commits

Author SHA1 Message Date
Yuriy Dupyn
c25c6edc6a formatting 2024-02-05 23:11:38 +01:00
Jindřich Moravec
f5d45f6a1d feat: connect server to the new interpreter 2024-02-05 21:59:33 +01:00
Maxim Svistunov
a8c9c57231 Remove the ASCII-only check 2024-02-04 14:53:52 +01:00
Yuriy Dupyn
da8e2d6771 Remove some unused imports 2024-02-04 14:27:59 +01:00
Maxim Svistunov
de8c6164cf Resolve TODOs in parsing
Return error for queries containing non-ASCII characters

Allow underscores in identifiers

Add a delete statement test with spaces

Remove trailing spaces and semicolons from tests and parsers

Complete the multiple statement parser TODO
2024-02-04 14:01:47 +01:00
Yuriy Dupyn
845db102c2 cargo format 2024-01-28 22:40:41 +01:00
Yuriy Dupyn
2ba158a0d4 Clippy 2024-01-28 22:08:46 +01:00
Yuriy Dupyn
8eec9c6759 Fix some of the clippy errors 2024-01-28 21:40:43 +01:00
Yuriy Dupyn
052236d892 Add some tests for Validation 2024-01-28 15:09:27 +01:00
Yuriy Dupyn
11dc992476 Cleanup 2024-01-27 22:46:19 +01:00
Yuriy Dupyn
9771a89716 Use RawQuerySyntax for parsing 2024-01-27 21:47:33 +01:00
Yuriy Dupyn
562e732138 Validation now outputs a Validated Interpreter Operation 2024-01-27 21:22:00 +01:00
Jindřich Moravec
5ced11c40d feat: integrate thiserror 2024-01-27 16:34:44 +01:00
Yuriy Dupyn
6000b1f242 Put parsing details into one module 2024-01-26 19:45:15 +01:00
Maxim Svistunov
61c0a34253 Add parsing (incl. validation)
Ensure identifiers start with alphabetical character

Rename parse_variable_name -> parse_column_name

Add DB value parsers and condition parser placeholder

Fix number parser, basic condition parser

Move select parser to select module

Add create statement parser

Move condition parser to common; add delete statement parser

Add drop statement parser

Add insert parser

Add update parser, combine operation parsers into one

Add initial validation, fix compiler warnings

Validation WIP

Allow more spaces in create statement, update TableSchema struct

Add create index parser and validator

Add todo in parse_identifier

Rework the new structure, many other changes
2024-01-26 18:20:45 +01:00