Remove custom sqlalchemy metadata, manage with __table_args__
Allow sqlmodel queries, with relations Remode join_with mechanisms coming from gino Handlew ith_only_columns in get_df and get_gdf Implement feature-info
This commit is contained in:
parent
1e3678fb69
commit
ec71b6ed15
18 changed files with 353 additions and 141 deletions
|
@ -38,7 +38,7 @@ class Model(BaseModel):
|
|||
if hasattr(cls, '__table__'):
|
||||
return cls.__table__.fullname
|
||||
elif hasattr(cls, '__table_args__') and 'schema' in cls.__table_args__:
|
||||
return f"{cls.__table_args__.schema}.{cls.__tablename__}"
|
||||
return f"{cls.__table_args__['schema']}.{cls.__tablename__}"
|
||||
else:
|
||||
return f'{cls.metadata.schema}.{cls.__tablename__}'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue