You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Bill
70f29e028d
|
2 years ago | |
---|---|---|
aquery_parser | 2 years ago | |
docs | 3 years ago | |
engine | 2 years ago | |
lib | 2 years ago | |
monetdb | 2 years ago | |
msc-plugin | 2 years ago | |
msvs-py | 3 years ago | |
reconstruct | 2 years ago | |
sdk | 2 years ago | |
server | 2 years ago | |
.gitignore | 2 years ago | |
LICENSE | 3 years ago | |
Makefile | 2 years ago | |
README.md | 3 years ago | |
aquery_config.py | 2 years ago | |
build_instructions.md | 2 years ago | |
csv.h | 3 years ago | |
dbconn.py | 3 years ago | |
funcs.a | 2 years ago | |
header.cxx | 3 years ago | |
joins.a | 2 years ago | |
mmw.cpp | 3 years ago | |
modules.a | 2 years ago | |
moving_avg.a | 2 years ago | |
moving_avg.csv | 3 years ago | |
nyctx100.csv | 3 years ago | |
out.cpp | 2 years ago | |
out_attempt1.cpp | 3 years ago | |
prompt.py | 2 years ago | |
q.sql | 3 years ago | |
q1.sql | 3 years ago | |
requirements.txt | 2 years ago | |
sample_ast.json | 2 years ago | |
server.exe | 3 years ago | |
server2.exp | 3 years ago | |
server2.lib | 3 years ago | |
stock.a | 2 years ago | |
test.csv | 3 years ago | |
udf.hpp | 2 years ago | |
udf2.a | 2 years ago | |
udf3.a | 2 years ago | |
udf4.a | 2 years ago | |
udf_style1.hpp | 2 years ago | |
udftest.cpp | 2 years ago | |
udftest_compile.cpp | 2 years ago |
README.md
AQuery++ DB
Introduction
AQuery++ Database is a cross-platform, In-Memory Column-Store Database that incorporates compiled query execution. Compiler frontend built on top of mo-sql-parsing.
Roadmap
- SQL Parser -> AQuery Parser (Front End)
- AQuery-C++ Compiler (Back End)
- Schema and Data Model
- Data acquisition/output from/to csv file
- Single table queries
- Projections and Single Table Aggregations
- Group by Aggregations
- Filters
- Order by
- Assumption
- Flatten
- Multi-table
- Join
- Subqueries
- -> Optimizing Compiler
TODO:
- C++ Meta-Programming: Elimilate template recursions as much as possible.
- IPC: Better ways to communicate between Interpreter (Python) and Executer (C++).
- Sockets? stdin/stdout capture?
Requirements
Recent version of Linux, Windows or MacOS, with recent C++ compiler that has C++17 (1z) support (e.g. gcc 6.0, MSVC 2017, clang 6.0), and python 3.6 or above.
Usage
python3 prompt.py
will launch the interactive command prompt. The server binary will be autometically rebuilt and started.
Commands:
<sql statement>
: parse sql statementf <filename>
: parse all sql statements in fileprint
: printout parsed sql statementsexec
: execute last parsed statement(s)r
: run the last generated code snippetsave <OPTIONAL: filename>
: save current code snippet. will use random filename if not specified.exit
: quit the prompt
Example:
f moving_avg.a
exec