UEA-Prodem

This commit is contained in:
2026-06-10 12:38:42 -03:00
parent 3f33154e16
commit c41625e542
9352 changed files with 1128292 additions and 14752 deletions
+26
View File
@@ -0,0 +1,26 @@
import { bindIfParam } from "../sql/expressions/index.js";
import { sql } from "../sql/sql.js";
export * from "../sql/expressions/index.js";
function concat(column, value) {
return sql`${column} || ${bindIfParam(value, column)}`;
}
function substring(column, { from, for: _for }) {
const chunks = [sql`substring(`, column];
if (from !== void 0) {
chunks.push(sql` from `, bindIfParam(from, column));
}
if (_for !== void 0) {
chunks.push(sql` for `, bindIfParam(_for, column));
}
chunks.push(sql`)`);
return sql.join(chunks);
}
function rowId() {
return sql`rowid`;
}
export {
concat,
rowId,
substring
};
//# sourceMappingURL=expressions.js.map