Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds datafile text field for Data File object query #15

Merged
merged 1 commit into from
Sep 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/plexosdb/enums.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ class ClassEnum(StrEnum):
Line = "Line"
Transformer = "Transformer"
Interface = "Interface"
DataFile = "DataFile"
DataFile = "Data File"
Timeslice = "Timeslice"
Scenario = "Scenario"
Model = "Model"
Expand Down
5 changes: 4 additions & 1 deletion src/plexosdb/queries/object_query.sql
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,8 @@ SELECT
nested_variable_object.tagged_object_name AS varible_tag,
nested_object_ts.tagged_object_name AS timeslice_tag,
nested_object_ts.text_value AS timeslice,
nested_object_ts.base_value AS timeslice_base_value
nested_object_ts.base_value AS timeslice_base_value,
data_text.value AS data_text
FROM
t_membership AS mem
LEFT JOIN t_class AS class_parent ON
Expand All @@ -139,6 +140,8 @@ LEFT JOIN t_category AS cat ON
-------- property data -----------------------
LEFT JOIN t_data AS data ON
data.membership_id = mem.membership_id
LEFT JOIN t_text AS data_text ON
data_text.data_id = data.data_id
LEFT JOIN t_memo_data AS memo ON
memo.data_id = data.data_id
LEFT JOIN t_date_from AS date_from ON
Expand Down