Support sequences on TimescaleDB like on PostgreSQL#349
Support sequences on TimescaleDB like on PostgreSQL#349MRigal wants to merge 1 commit intoagronholm:masterfrom
Conversation
|
Wait, what? There's a specific dialect for timescaledb despite it just being a postgresql extension? |
|
Not a real official dialect, but using this extension: https://github.com/dorosch/sqlalchemy-timescaledb gives some nice enhanced support for hypertables |
|
Does it improve the output of |
|
I've just tested, the answer is "no". It probably misses in https://github.com/dorosch/sqlalchemy-timescaledb/blob/master/sqlalchemy_timescaledb/dialect.py additional features that would look for hypertables on some Inspector methods: https://docs.sqlalchemy.org/en/20/core/reflection.html#sqlalchemy.engine.reflection.Inspector I'm not familiar enough with it to contribute directly, but if you are also interested and point me towards a possible implementation, I could submit a PR for it |
|
Ok, so is there any reason to run sqlacodegen with the timescaledb dialect instead of postgresql then? |
|
No other one than to use the same engine URL as elsewhere in the code |
Tiny fix, as else sqlacodegen is also working with TimescaleDB and timeseries hypertables