Refactor DB Handler. Use Bun native SQL adapter.
This commit is contained in:
-13
@@ -1,13 +0,0 @@
|
||||
export default function sqlGenGrabConcatStr({ alias, field, separator = ",", distinct, }) {
|
||||
let gc = `GROUP_CONCAT(`;
|
||||
if (distinct) {
|
||||
gc += `DISTINCT `;
|
||||
}
|
||||
gc += `${field}`;
|
||||
if (!distinct) {
|
||||
gc += `, '${separator}'`;
|
||||
}
|
||||
gc += `)`;
|
||||
gc += ` AS ${alias}`;
|
||||
return gc;
|
||||
}
|
||||
Reference in New Issue
Block a user