Neil O'Toole
7c56377b40
Struct alignment ( #369 )
...
* Field alignment
2024-01-27 00:11:24 -07:00
Neil O'Toole
880c817958
Added aliases for cmd inspect flags; added aliases for order_by and group_by ( #340 )
2023-11-22 11:36:34 -07:00
Neil O'Toole
f0d83cda86
Implement SLQ having() ( #339 )
...
* Implemented SLQ having()
2023-11-22 10:56:19 -07:00
Neil O'Toole
79e1afd64f
SQL rownum() func ( #332 )
...
* Implemented SLQ rownum() func
2023-11-19 23:44:36 -07:00
Neil O'Toole
f07edef14d
Add flag --src.schema ( #326 )
...
* Support for --src.schema in commands "slq", "sql", and "inspect"
2023-11-18 17:05:48 -07:00
Neil O'Toole
9ec1b85d37
Misc dep updates; switch to newer antlr version ( #300 )
2023-08-12 13:26:25 -06:00
Neil O'Toole
7396aadb9e
#12 : multiple joins ( #280 )
...
* The query language now supports multiple joins.
2023-07-03 09:34:19 -06:00
Neil O'Toole
e93f462fff
#254 : explicit where() clause ( #255 )
...
Implement explicit `where()` clause.
2023-06-16 22:54:25 -06:00
Neil O'Toole
24b5fafd78
Proprietary functions now require leading underscore ( #241 )
2023-05-26 21:11:38 -06:00
Neil O'Toole
958d509088
Source groups ( #198 )
...
* Implemented source groups mechanism.
2023-04-15 16:28:51 -06:00
Neil O'Toole
9a1c6a7d09
Feature/173 args ( #183 )
...
- Implement --arg feature
- Refactor sqlbuilder package (now called "render").
- Bug fixes, especially around expressions.
2023-04-07 02:00:49 -06:00
Neil O'Toole
8d47ef806d
go1.20 upgrade; lots of linting ( #172 )
2023-04-01 02:38:32 -06:00
Neil O'Toole
29e33ed2b1
Implement unique / DISTINCT ( #165 )
...
- Implemented "unique" function
- Implemented "count_unique" function
2023-03-28 00:48:24 -06:00
Neil O'Toole
fac3a27d7b
group_by() function ( #163 )
...
- `group_by()` now accepts function as argument.
- Refactored grammar.
- Broad improvements to function implementation.
2023-03-26 20:03:40 -06:00
Neil O'Toole
d9b56eea8a
Implement groupby() ( #161 )
...
* test: slq2sql more test cases; now executes the generated query
* groupby: first test case working against all DBs
* sakila: added sqlserver 2019 source
* groupby: tests for groupby synonyms
* groupby: final touches
2023-03-26 02:01:41 -06:00
Neil O'Toole
9746f4c1a2
orderby() ( #159 )
...
* wip: orderby impl
* Tests passing (note: ast.checkASTIntegrity is disabled)
* ExprNode now rendered via renderSelectorNode
* linting
* CHAGELOG for v0.27.0
2023-03-25 19:20:53 -06:00
Neil O'Toole
a1a89ee9dd
Support table and column names with spaces. ( #156 )
...
* sakila: initial test data
* sakila: more test data
* sakila: yet more test data setup
* whitespace cols: now working for sqlite
* grammar cleanup
* whitespace cols: now working inside count() func for sqlite
* whitespace cols: tests mostly passing; begining refactoring
* grammar: refactor handle
* grammar: more refactoring
* grammar: rename selElement to selector
* wip
* all tests passing
* all tests passing
* linting
* driver: implement CurrentSchema for all driver.SQLDriver impls
* driver: tests for AlterTableRename and AlterTableRenameColumn
* undo reformat of SQL
* undo reformat of SQL
* undo reformat of SQL
* undo reformat of SQL
2023-03-22 00:17:34 -06:00
Neil O'Toole
62f067f633
Chore/upgrade to antlr 4.12.0 ( #149 )
...
* Antlr update
* README update
* parser: regenerated with antlr 4.12.0
2023-03-15 20:53:40 -06:00
Neil O'Toole
0a627a7b6f
Chore/antlr 4.11.1 upgrade ( #130 )
...
* baseline seems to be working
* Updated to antlr4
* few more module upgrades
2022-12-23 21:43:20 -07:00
Neil O'Toole
e4cc68b714
Slq move ( #67 )
...
* moved it
* what used to be libsq/slq in now libsq/ast/internal/slq
2020-08-23 05:16:16 -06:00