-
Notifications
You must be signed in to change notification settings - Fork 15
refactor: auto-detect environment in ensure_flow_compiled instead of requiring mode parameter #503
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 12-04-add_pgflow_is_local_function
Are you sure you want to change the base?
Conversation
|
|
View your CI Pipeline Execution ↗ for commit f2d0658
☁️ Nx Cloud last updated this comment at |
a30c83e to
1004149
Compare
1004149 to
d2e6ef7
Compare
e2e0542 to
62bac21
Compare
d2e6ef7 to
b3ec5c2
Compare
62bac21 to
66f7089
Compare
66f7089 to
948f79e
Compare
b3ec5c2 to
44c5035
Compare
948f79e to
dcf6478
Compare
44c5035 to
e9163f7
Compare
e9163f7 to
f2d0658
Compare
dcf6478 to
5166c57
Compare
🔍 Preview Deployment: Website✅ Deployment successful! 🔗 Preview URL: https://pr-503.pgflow.pages.dev 📝 Details:
_Last updated: _ |

Auto-detect environment in ensure_flow_compiled function
This PR modifies the
ensure_flow_compiledfunction to automatically detect the environment using theis_local()function instead of requiring a mode parameter. This simplifies the API by:p_modeparameter from the function signaturepgflow.is_local()to determine whether to auto-recompile (local) or fail on mismatch (production)The behavior remains the same:
Updated tests to verify the auto-detection works correctly in both environments.