Skip to content

Commit

Permalink
feat: Adds datafile text field for Data File object query (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktehranchi authored Sep 17, 2024
1 parent e64620b commit 4ea5263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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

0 comments on commit 4ea5263

Please sign in to comment.