Skip to content
Snippets Groups Projects
Commit 7ac61927 authored by Jorn van de Beek's avatar Jorn van de Beek
Browse files

Pass table names in roqua.json

parent 74f19cbc
No related branches found
No related tags found
1 merge request!12Add dsl for outcome schemas (tables) for roqua
Pipeline #78336 passed
......@@ -77,7 +77,7 @@ module Quby
# configuration for outcome tables.
# tables:
# <outcome_table:Symbol>: # each pair is a table.
# <outcome_table_name:Symbol>: # each entry is a table.
# score_keys: Set[<schema.key:Symbol>] # rows in the table
# subscore_keys: Set[<subschema.key:Symbol>] # columns in the table
# headers:
......@@ -99,7 +99,7 @@ module Quby
{
headers: headers,
tables: tables.values,
tables: tables,
}
end
end
......
......@@ -38,11 +38,11 @@ describe Quby::Compiler::Outputs::RoquaSerializer do
include({
outcome_tables_schema: {
headers: {int: "Interpretatie", mean: "Gemiddelde", something: "Nog iets", value: "Waarde"},
tables: [
{:score_keys => [:score0], :subscore_keys => [:something]},
{:score_keys => [:score1, :score2], :subscore_keys => [:value, :int]},
{:score_keys => [:score3], :subscore_keys => [:mean]}
]
tables: {
main: {:score_keys => [:score0], :subscore_keys => [:something]},
values: {:score_keys => [:score1, :score2], :subscore_keys => [:value, :int]},
means: {:score_keys => [:score3], :subscore_keys => [:mean]}
}
}
})
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment