✅ Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
This commit is contained in:
38
dealplustech-astro/node_modules/drizzle-orm/sql/functions/aggregate.js
generated
vendored
Normal file
38
dealplustech-astro/node_modules/drizzle-orm/sql/functions/aggregate.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import { Column } from "../../column.js";
|
||||
import { is } from "../../entity.js";
|
||||
import { sql } from "../sql.js";
|
||||
function count(expression) {
|
||||
return sql`count(${expression || sql.raw("*")})`.mapWith(Number);
|
||||
}
|
||||
function countDistinct(expression) {
|
||||
return sql`count(distinct ${expression})`.mapWith(Number);
|
||||
}
|
||||
function avg(expression) {
|
||||
return sql`avg(${expression})`.mapWith(String);
|
||||
}
|
||||
function avgDistinct(expression) {
|
||||
return sql`avg(distinct ${expression})`.mapWith(String);
|
||||
}
|
||||
function sum(expression) {
|
||||
return sql`sum(${expression})`.mapWith(String);
|
||||
}
|
||||
function sumDistinct(expression) {
|
||||
return sql`sum(distinct ${expression})`.mapWith(String);
|
||||
}
|
||||
function max(expression) {
|
||||
return sql`max(${expression})`.mapWith(is(expression, Column) ? expression : String);
|
||||
}
|
||||
function min(expression) {
|
||||
return sql`min(${expression})`.mapWith(is(expression, Column) ? expression : String);
|
||||
}
|
||||
export {
|
||||
avg,
|
||||
avgDistinct,
|
||||
count,
|
||||
countDistinct,
|
||||
max,
|
||||
min,
|
||||
sum,
|
||||
sumDistinct
|
||||
};
|
||||
//# sourceMappingURL=aggregate.js.map
|
||||
Reference in New Issue
Block a user