Skip to content

Commit 1e86945

Browse files
Richard BaahRichard Baah
authored andcommitted
defined files that project will use.| next steps are to outline what order of operators to implement (Bottem up) and then how were going to handle documentation for project
1 parent a37fded commit 1e86945

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+371
-3
lines changed

.github/workflows/go-test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Go Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: '1.21'
20+
21+
- name: Run tests
22+
working-directory: ./src/Backend/opti-sql-go
23+
run: go test -v ./...
24+
25+
- name: Run tests with coverage
26+
working-directory: ./src/Backend/opti-sql-go
27+
run: go test -v -coverprofile=coverage.out ./...
28+
29+
- name: Display coverage
30+
working-directory: ./src/Backend/opti-sql-go
31+
run: go tool cover -func=coverage.out

.gitignore

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
# Rust
2+
target/
3+
**/*.rs.bk
4+
*.pdb
5+
Cargo.lock
6+
7+
# Go
8+
*.exe
9+
*.exe~
10+
*.dll
11+
*.so
12+
*.dylib
13+
*.test
14+
*.out
15+
go.work
16+
vendor/
17+
18+
# Python
19+
__pycache__/
20+
*.py[cod]
21+
*$py.class
22+
*.so
23+
.Python
24+
build/
25+
develop-eggs/
26+
dist/
27+
downloads/
28+
eggs/
29+
.eggs/
30+
lib/
31+
lib64/
32+
parts/
33+
sdist/
34+
var/
35+
wheels/
36+
*.egg-info/
37+
.installed.cfg
38+
*.egg
39+
venv/
40+
ENV/
41+
env/
42+
43+
# IDEs and Editors
44+
.vscode/
45+
.idea/
46+
*.swp
47+
*.swo
48+
*~
49+
.DS_Store
50+
51+
# Test coverage
52+
*.coverprofile
53+
coverage.out
54+
*.cover
55+
*.coverage
56+
.hypothesis/
57+
.pytest_cache/
58+
htmlcov/
59+
60+
# Logs and databases
61+
*.log
62+
*.sqlite
63+
*.db
64+
65+
# Redis
66+
dump.rdb
67+
appendonly.aof
68+
*.rdb
69+
*.aof
70+
71+
# OS
72+
.DS_Store
73+
Thumbs.db
74+
*.tmp
75+
76+
# Build artifacts
77+
*.o
78+
*.a
79+
*.so
80+
*.dylib
81+
*.dll
82+
*.exe
83+
84+
# Data files (if you have test data)
85+
*.csv
86+
*.json
87+
*.parquet
88+
example.csv
89+
90+
# Temporary files
91+
flycheck0/
92+
*.flycheck
93+
94+
# Cache directories
95+
.cache/
96+
node_modules/

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[workspace]
2+
members = [
3+
"src/Backend/opti-sql-rs"
4+
]

README.md

Lines changed: 2 additions & 0 deletions

src/Backend/main.rs

Lines changed: 0 additions & 3 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
mode: set
2+
opti-sql-go/main.go:5.13,7.2 1 0

src/Backend/opti-sql-go/go.mod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module opti-sql-go
2+
3+
go 1.25.0
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package Expr
2+
3+
// evaluate expressions
4+
// for example Column + Literal
5+
// Column - Column
6+
// Literal / Literal
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package Expr
2+
3+
import "testing"
4+
5+
func TestExpr(t *testing.T) {
6+
// Simple passing test
7+
}

0 commit comments

Comments
 (0)