David Robertson
39795b3a4e
Also tweak the schema dump script: - add a note explaining myself how to use it -Explicitly call `poetry run`, because not everyone uses direnv :( |
1 year ago | |
---|---|---|
.. | ||
README.md | Make it easier to use DataGrip w/ Synapse's schema (#14982) | 1 year ago |
common.sql | Make it easier to use DataGrip w/ Synapse's schema (#14982) | 1 year ago |
datagrip-aware-of-schema.png | Make it easier to use DataGrip w/ Synapse's schema (#14982) | 1 year ago |
main.sql | Make it easier to use DataGrip w/ Synapse's schema (#14982) | 1 year ago |
schema_version.sql | Make it easier to use DataGrip w/ Synapse's schema (#14982) | 1 year ago |
state.sql | Make it easier to use DataGrip w/ Synapse's schema (#14982) | 1 year ago |
This directory contains symlinks to the latest dump of the postgres full schema. This is useful to have, as it allows IDEs to understand our schema and provide autocomplete, linters, inspections, etc.
In particular, the DataGrip functionality in IntelliJ’s products seems to only consider files called *.sql
when defining a schema from DDL; *.sql.postgres
will be ignored. To get around this we symlink those files to ones ending in .sql
. We’ve chosen to ignore the .sql.sqlite
schema dumps here, as they’re not intended for production use (and are much quicker to test against).
+
Icon -> DDL Data SourceSynapse schema dump
+
._get_forgotten_rooms_for_user_txn
.