Releases: ts-safeql/safeql
Releases · ts-safeql/safeql
@ts-safeql/shared@0.1.1
Patch Changes
- c5b4af1: add support for custom type overrides
@ts-safeql/generate@0.1.1
@ts-safeql/eslint-plugin@1.1.2
@ts-safeql/eslint-plugin@1.1.1
Patch Changes
- 6c15534: fixed an issue where INSERT INTO with a null value was invalid
@ts-safeql/test-utils@0.0.10
Patch Changes
- Updated dependencies [30965b2]
- @ts-safeql/shared@0.1.0
@ts-safeql/shared@0.1.0
Minor Changes
- 30965b2: add support for regex matching
@ts-safeql/generate@0.1.0
@ts-safeql/eslint-plugin@1.1.0
Minor Changes
Patch Changes
@ts-safeql/eslint-plugin@1.0.2
Patch Changes
-
d221910: ## Improved
connections.overrides.types
:Sometimes, the TypeScript type of the parameter (sql variable) is not the same as the type of the result. For example:
import postgres from "postgres"; import { sql } from "./sql"; function run(value: postgres.Parameter<LocalDate>) { const result = sql<{ date: LocalDate }>`SELECT ${value}`; // ... }
In this case, you can use the following syntax:
{ "connections": { "overrides": { "types": { "date": { // the type of the parameter (can be a glob pattern) "parameter": "Parameter<LocalDate>", // the generated type "return": "LocalDate" } } } } }
@ts-safeql/test-utils@0.0.9
Patch Changes
- Updated dependencies [77c060d]
- @ts-safeql/shared@0.0.9