Skip to content
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

allow defining schemas from environment variable #92

Merged
merged 2 commits into from
Aug 4, 2022

Conversation

vincentsarago
Copy link
Member

closes #91

# github-token: ${{ secrets.GITHUB_TOKEN }}
# # Make a commit on `gh-pages` only if master
# auto-push: ${{ github.ref == 'refs/heads/master' }}
# benchmark-data-dir-path: benchmarks
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AND n.nspname NOT IN ('pg_catalog', 'information_schema')
AND c.relname NOT IN ('spatial_ref_sys','geometry_columns')
AND (:schemas::text[] IS NULL OR n.nspname = ANY (:schemas))
AND (:tables::text[] IS NULL OR c.relname = ANY (:tables))

)
SELECT
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sync with tifeatures

await register_table_catalog(
app,
schemas=postgres_settings.db_schemas,
tables=postgres_settings.db_tables,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allow `PG_SCHEMAS='["public", ....]' in environments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tables outside of public schema in postgres
1 participant