You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just found this wonderful library, however I'm facing an issue that I couldn't find an answer for in the docs.
I have a table that uses postgresql ARRAYs, sqlacodegen is perfectly capable of creating the right side of the model, but the types are wrong (partially unknown to be precise).
Anyone know a solution for this? I decided to open a discussion first instead of an issue since others might have already faces this.
CREATETABLEFOO (
id SERIALPRIMARY KEY,
some_ints INT[],
some_floats FLOAT[]
);
classFoo(Base)
#...etc# right side is perfect! The type however is partially knownsome_ints: Mapped[Optional[list]] =mapped_column(ARRAY(Integer()))
Saw that this codebase is looking for maintainers, so if PRs are welcome I could take a crack at it.
Hello everyone,
Just found this wonderful library, however I'm facing an issue that I couldn't find an answer for in the docs.
I have a table that uses postgresql ARRAYs, sqlacodegen is perfectly capable of creating the right side of the model, but the types are wrong (partially unknown to be precise).
Anyone know a solution for this? I decided to open a discussion first instead of an issue since others might have already faces this.
Saw that this codebase is looking for maintainers, so if PRs are welcome I could take a crack at it.
Originally posted by @JoaquimEsteves in #382
The text was updated successfully, but these errors were encountered: