int is long, select column can be function, some fixes..
just to get it work.. needs improvement
This commit is contained in:
9
main.cpp
9
main.cpp
@@ -3,7 +3,7 @@
|
||||
|
||||
// https://dev.to/joaoh82/what-would-sqlite-look-like-if-written-in-rust-part-1-2np4
|
||||
|
||||
// parser should get lexer as param and table executor to be able translate * or get types or so
|
||||
// parser should get m_lexer as param and table executor to be able translate * or get types or so
|
||||
// podporovat create as select
|
||||
// drop table
|
||||
|
||||
@@ -15,6 +15,8 @@ int main(int argc, char *argv[]) {
|
||||
"insert into a (i, s) values(3, 'two')",
|
||||
"insert into a (i, s) values(4, lower('FOUR'))",
|
||||
"insert into a (i, s) values(5, 'five')",
|
||||
"insert into a (i, s) values(to_date('20.12.1973', '%d.%m.%Y'), 'six')",
|
||||
"save table a into '/tmp/a.csv'",
|
||||
// "select i, s from a where i > 2",
|
||||
// "select i, s from a where i = 1",
|
||||
// "select i, s from a where s = 'two'",
|
||||
@@ -29,9 +31,10 @@ int main(int argc, char *argv[]) {
|
||||
// "create table data (ticker varchar(8), price float null)",
|
||||
// "load data from '/Users/vaclavt/Library/Mobile Documents/com~apple~CloudDocs/Development/usql/data.csv')",
|
||||
// "select ticker, price from data",
|
||||
"select i, s, f from a where i < 300",
|
||||
// "select i, s, f from a where i < 300",
|
||||
"create table x as select i, s, f from a where i < 300",
|
||||
"select i, s, f from x where i < 300"
|
||||
"select i, s, f from x where i < 300",
|
||||
"select i, to_string(i, '%d.%m.%Y'), s, f from a where i > 300"
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user