Implement in-memory query executor

This commit is contained in:
Pijus Kamandulis
2024-02-12 00:17:21 +02:00
parent 12510ea3fa
commit ca49228c66
3 changed files with 200 additions and 2 deletions

View File

@@ -57,7 +57,7 @@ func Test_Parse(t *testing.T) {
t,
`select c.id
FROM c
WHERE c.pk=true`,
WHERE c.isCool=true`,
parsers.SelectStmt{
Columns: []parsers.FieldPath{
{Path: []string{"c", "id"}},
@@ -65,7 +65,7 @@ func Test_Parse(t *testing.T) {
Table: parsers.Table{Value: "c"},
Filters: parsers.ComparisonExpression{
Operation: "=",
Left: parsers.FieldPath{Path: []string{"c", "pk"}},
Left: parsers.FieldPath{Path: []string{"c", "isCool"}},
Right: parsers.Constant{Type: parsers.ConstantTypeBoolean, Value: true},
},
},