astrodbtoolkit / astrodbtoolkit/AstrodbKit

Consider adding way to control table insert order

Đang mở
#93 1 bình luận 0 reaction 1 người được giao Được @dr-rodriguez nhận Xem trên GitHub
bug enhancement
Ngôn ngữ chính
Python
Star
12
Fork
5
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

Currently, the JSON file for a source is written with the primary table first and then the rest of the tables as fetched from `self.metadata.tables`. This appears to be sorted alphabetically.

In circumstances where object tables refer to each other, such as a CompanionRelationship table that contains entries that a CompanionParameters table points to, this causes an error as the "R" is after "P" in the table. That is, a foreign key error will occur because the CompanionRelationship table is not loaded before CompanionParameters.

This DB generally assumes that object tables will point back to either the primary table or lookup tables, not to each other. If we want to support this we may need to provide a list of the order to use.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.