WindmillWWindmill
Powered by
TimT
Windmill•2y ago•
3 replies
Tim

Default database for Postgres scripts?

I'd like to be able to provide a defined resource as a default value for the Database input on a Postrgres script. It doesn't seem possible within the script itself (database seems to be a required input, and I can't seem to configure a default value).

I've tried to use an App to call the script, and I'm able to provide the default value, but see this error when I try to run:
"Bad request: For security reasons, variable or resource access is not allowed as dynamic argument"
"Bad request: For security reasons, variable or resource access is not allowed as dynamic argument"


Is there any way to provide a default resource for a postgres script/app? Ideally, app users won't need to know/provide the resource that they are executing against.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c · 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra · 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 🙂

henri-c · 4w ago

Similar Threads

Results caching for imported scripts
Oleksandr ManakovOOleksandr Manakov / help
14mo ago
Autogenerated Date input for Bash scripts
krisztian_fKkrisztian_f / help
2y ago
Sourcing PowerShell scripts from other PowerShell scripts
DannlyDDannly / help
2y ago
Changing input data type for PostgreSQL scripts
David ZhangDDavid Zhang / help
2y ago