mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-19 00:02:03 +00:00
7bdfc0ea06
Always send queries as unnamed prepared statements (query_typed_raw) when arg types resolve via otyp_to_pg_type. This eliminates the intermittent "prepared statement \"sN\" does not exist" error reported on datatable scripts whose Postgres connection sits behind a transaction-mode pooler (PgBouncer/Supabase pooler/RDS Proxy), where prepare and execute can land on different backend connections. The previous code only used the unnamed-statement path when the parser detected at least one explicitly typed arg; datatable-generated SQL with bare $1/$2 (relying on inline ::cast hints) fell back to prepare + query_raw and accumulated named statements (s0, s1, ..., s882, ...) on the cached connection, which the pooler then dropped. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Windmill Backend
This folder holds all backend components, the src/ folder only contains files used to build the "root" binary.
Components
| name | description |
|---|---|
| windmill-api | The API server, exposing functionality to other components and the frontend |
| windmill-audit | Contains audit functionality, allowing different components to record important actions |
| windmill-common | Common code shared by all crates |
| windmill-queue | Contains job & flow queuing functionality, commonly written to by the API server and read from by workers |
| windmill-worker | The worker. Used to process and execute flows & jobs. |
| parsers | Contains code to parse signatures in different langauges. |
Compile sqlx for offline ci
cargo sqlx prepare --workspace -- --bin windmill --features enterprise