回答編集履歴
2
修正
answer
CHANGED
@@ -1,8 +1,7 @@
|
|
1
|
-
以前、調べたときに下記のドキュメント
|
1
|
+
以前、調べたときに下記のドキュメントを見つけました。
|
2
2
|
|
3
|
-
|
4
3
|
[How do I map a table that has no primary key?](https://docs.sqlalchemy.org/en/13/faq/ormconfiguration.html#how-do-i-map-a-table-that-has-no-primary-key)
|
5
4
|
|
6
5
|
> The SQLAlchemy ORM, in order to map to a particular table, needs there to be at least one column denoted as a primary key column; multiple-column, i.e. composite, primary keys are of course entirely feasible as well. These columns do not need to be actually known to the database as primary key columns, though it’s a good idea that they are. It’s only necessary that the columns behave as a primary key does, e.g. as a unique and not nullable identifier for a row.
|
7
6
|
|
8
|
-
と記載されていたので、無理
|
7
|
+
と記載されていたので、無理と判断しています。
|
1
修正
answer
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
以前、
|
1
|
+
以前、調べたときに下記のドキュメントが見つけました。
|
2
2
|
|
3
3
|
|
4
4
|
[How do I map a table that has no primary key?](https://docs.sqlalchemy.org/en/13/faq/ormconfiguration.html#how-do-i-map-a-table-that-has-no-primary-key)
|