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
When I call db.init() I get an sqlalchemy ProgrammingError and it shows me the following SQL as the culprit:
CREATE TABLE language (
id JSON,
created_by VARCHAR NOT NULL,
created_at JSON,
last_modified_by VARCHAR,
last_modified_at JSON,
name VARCHAR NOT NULL,
PRIMARY KEY (id)
)
The issue is probably in PydanticSQLTableGenerator._get_column() but I couldn't figure out why my model fields would be caught by one of the cases specified for JSON there. Any help is appreciated!
The text was updated successfully, but these errors were encountered:
One initial observation though: at the moment, there seems to be no way to translate date/datetime fields of any kind to their respective sqlalchemy counterparts, this should be an easy addition.
I have the following setup:
A table base model
and the final tables inheriting from the table base and the respective read model, e.g.:
When I call
db.init()
I get an sqlalchemy ProgrammingError and it shows me the following SQL as the culprit:The issue is probably in PydanticSQLTableGenerator._get_column() but I couldn't figure out why my model fields would be caught by one of the cases specified for JSON there. Any help is appreciated!
The text was updated successfully, but these errors were encountered: