We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a074dd commit 4ffcd5fCopy full SHA for 4ffcd5f
packages/postgres-database/src/simcore_postgres_database/utils_repos.py
@@ -75,5 +75,13 @@ def get_columns_from_db_model(
75
Usage example:
76
77
query = sa.select( get_columns_from_db_model(project, ProjectDB) )
78
+
79
+ or
80
81
+ query = (
82
+ project.insert().
83
+ # ...
84
+ .returning(*get_columns_from_db_model(project, ProjectDB))
85
+ )
86
"""
87
return [table.columns[field_name] for field_name in model_cls.model_fields]
0 commit comments