durcno@1.0.0-alpha.24
Minor Changes
-
052d138 - Thanks to @almahdi404 !
feat(columns): add real and double precision column types
Added support for PostgreSQL
real(single precision floating-point) anddouble precisioncolumn types in the query builder.- Includes schema generation and runtime validation logic for floating point values.
- Ensures compatibility with mathematical functions (
abs,round,sum) using type-safe abstractions. - Addresses a test syntax issue with exponentiation.
Patch Changes
-
99beca8 - Thanks to @almahdi404 !
fix(query-builder): escape SQL identifiers and literals
This update introduces
escIdentifierandescLiteralhelper functions to properly escape PostgreSQL identifiers and string literals. These functions are now utilized across the query builders (e.g. for column aliases, table aliases, and JSON keys) to neutralize potential SQL injection vulnerabilities.