Commit Graph
10 Commits
Author SHA1 Message Date
Sergey Golitsynskiy ee5a3450bb Update db index testing: test both models, gxy and tsi
Also, remove unused env var
2022-03-09 18:41:03 -05:00
Dannon Baker 623a5e165a Apply black formatting.
Apply isort.
2022-02-03 07:42:20 -05:00
Nicola Soranzo 90a729e431 New pyupgrade fixes
Found by running `ack --type=python -f | grep -v '^tools/' | xargs pyupgrade --py36-plus`
2021-10-24 12:10:34 +01:00
Sergey Golitsynskiy 3cd1c7f1c7 Handle DedupedColumnCollection in db_indexes
This should fix the `scripts/check_model.py` script and the database
indexes github workflow.

Accessing index columns has changed: index.columns gives access to a
DedupedColumnCollection instead of a ColumnCollection.
Columns can be accessed by key; keys are accessed via keys() attr.

Ref:
https://docs.sqlalchemy.org/en/14/changelog/migration_14.html#select-objects-and-derived-from-clauses-allow-for-duplicate-columns-and-column-labels
https://docs.sqlalchemy.org/en/14/core/sqlelement.html?highlight=dedupecolumncollection#sqlalchemy.sql.expression.ColumnCollection
2021-05-18 19:00:55 -04:00
Sergey GolitsynskiyandMarius van den Beek 574fa4cb1f Let get_config() handle env override
Co-authored-by: Marius van den Beek <m.vandenbeek@gmail.com>
2020-10-04 23:25:23 -04:00
Sergey Golitsynskiy f27b4e50f6 Add github workflow; env var to override db uri 2020-10-03 02:26:40 -04:00
Sergey Golitsynskiy 20c7cdb2cb Rename missing_index > index_tuple 2020-10-03 02:26:40 -04:00
Sergey GolitsynskiyandNicola Soranzo b9093e33da Update scripts/check_model.py
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
2020-10-03 02:26:40 -04:00
Sergey GolitsynskiyandNicola Soranzo 7719f53bca Update scripts/check_model.py
Co-authored-by: Nicola Soranzo <nicola.soranzo@gmail.com>
2020-10-03 02:26:40 -04:00
Sergey Golitsynskiy 2dbfdce295 Add script + wrapper 2020-10-03 02:26:40 -04:00