ydb-platform / ydb-sqlalchemy

YQL Dialect for SQLAlchemy
Apache License 2.0
20 stars 6 forks source link

Specific integer types and limit-offset support #27

Closed LuckySting closed 8 months ago

LuckySting commented 8 months ago

Problem

Dialect don't support native usage of limit().offset() methods due to type collision: sqlalchemy by default provide all integer bound variables as Int64, when YQL requires UInt variable to be passed to LIMIT OFFSET.

In this PR

In this PR I add the optional type casting to the LIMIT OFFSET clause to allow native usage of SQLalchemy methods related to.

Bonus

Dialect was enriched with all integer YDB types.