Major version update. Refactor sql generator function. Add core select directives like SUM, MIN, MAX, etc

This commit is contained in:
2026-04-18 07:24:01 +01:00
parent 0a3320ff83
commit f3f1c42699
23 changed files with 1275 additions and 662 deletions
@@ -0,0 +1,14 @@
type Param = {
field: string;
alias: string;
separator?: string;
};
export default function sqlGenGrabConcatStr({
alias,
field,
separator = ",",
}: Param) {
let gc = `GROUP_CONCAT(${field}, '${separator}') AS ${alias}`;
return gc;
}