Skip to content

Commit

Permalink
Updating relational showcase (#850)
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-thai authored Feb 24, 2025
1 parent 32017fd commit 0967c52
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ Runtime simple::runtime::SnowflakeRuntime


###Pure
function simple::dotAndBracketNotationAccess(): TabularDataSet[1]
function simple::dotAndBracketNotationAccess(): meta::pure::tds::TabularDataSet[1]
{
simple::model::Firm.all()->project(
[
Expand All @@ -187,7 +187,7 @@ function simple::dotAndBracketNotationAccess(): TabularDataSet[1]
)
}

function simple::arrayElementNoFlattenAccess(): TabularDataSet[1]
function simple::arrayElementNoFlattenAccess(): meta::pure::tds::TabularDataSet[1]
{
simple::model::Firm.all()->project(
[
Expand All @@ -201,7 +201,7 @@ function simple::arrayElementNoFlattenAccess(): TabularDataSet[1]
)
}

function simple::extractEnumProperty(): TabularDataSet[1]
function simple::extractEnumProperty(): meta::pure::tds::TabularDataSet[1]
{
simple::model::Firm.all()->project(
[
Expand All @@ -215,7 +215,7 @@ function simple::extractEnumProperty(): TabularDataSet[1]
)
}

function simple::allDataTypesAccess(): TabularDataSet[1]
function simple::allDataTypesAccess(): meta::pure::tds::TabularDataSet[1]
{
simple::model::Firm.all()->project(
[
Expand Down
14 changes: 7 additions & 7 deletions showcases/data/Store/Relational Store/Query/code.pure
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ Association showcase::northwind::model::associations::Order_OrderLineItem
lineItems: showcase::northwind::model::OrderLineItem[*];
}

function showcase::northwind::store::functions::SelectOnNorthWindCustomer(): Any[*]
function showcase::northwind::store::functions::SelectOnNorthWindCustomer(): meta::pure::metamodel::relation::Relation<meta::pure::metamodel::type::Any>[*]
{
#>{showcase::northwind::store::NorthwindDatabase.NORTHWIND.CUSTOMERS}#->select(
~[
Expand All @@ -588,14 +588,14 @@ function showcase::northwind::store::functions::SelectOnNorthWindCustomer(): Any
)
}

function showcase::northwind::store::functions::NorthwindDrop(): Any[*]
function showcase::northwind::store::functions::NorthwindDrop(): meta::pure::metamodel::relation::Relation<meta::pure::metamodel::type::Any>[*]
{
#>{showcase::northwind::store::NorthwindDatabase.NORTHWIND.CUSTOMERS}#->drop(10)->from(
showcase::northwind::store::NorthwindRuntime
)
}

function showcase::northwind::store::functions::NorthwindExtendd(): Any[*]
function showcase::northwind::store::functions::NorthwindExtendd(): meta::pure::metamodel::relation::Relation<meta::pure::metamodel::type::Any>[*]
{
#>{showcase::northwind::store::NorthwindDatabase.NORTHWIND.CUSTOMERS}#->extend(
~newCol: x|$x.CONTACT_NAME->toOne() + ' |' + $x.CONTACT_TITLE->toOne()
Expand All @@ -604,7 +604,7 @@ function showcase::northwind::store::functions::NorthwindExtendd(): Any[*]
)
}

function showcase::simple::functions::simpleFunctionSort(): Any[*]
function showcase::simple::functions::simpleFunctionSort(): meta::pure::metamodel::relation::Relation<meta::pure::metamodel::type::Any>[*]
{
#>{showcase::simple::store::TestDatabase.TEST0}#->filter(
c|$c.FIRSTNAME != 'Doe'
Expand All @@ -617,7 +617,7 @@ function showcase::simple::functions::simpleFunctionSort(): Any[*]
)
}

function showcase::simple::functions::simpleTableFunctionFilter(): Any[*]
function showcase::simple::functions::simpleTableFunctionFilter(): meta::pure::metamodel::relation::Relation<meta::pure::metamodel::type::Any>[*]
{
#>{showcase::simple::store::TestDatabase.TEST0}#->filter(
c|($c.FIRSTNAME != 'Doe') &&
Expand All @@ -631,7 +631,7 @@ function showcase::simple::functions::simpleTableFunctionFilter(): Any[*]
)
}

function showcase::simple::functions::simpleTableFunctionGroup(): Any[*]
function showcase::simple::functions::simpleTableFunctionGroup(): meta::pure::metamodel::relation::Relation<meta::pure::metamodel::type::Any>[*]
{
#>{showcase::simple::store::TestDatabase.TEST0}#->filter(
c|$c.FIRSTNAME != 'Doe'
Expand All @@ -647,7 +647,7 @@ function showcase::simple::functions::simpleTableFunctionGroup(): Any[*]
)
}

function showcase::simple::functions::simpleTableFunctionSlice(): Any[*]
function showcase::simple::functions::simpleTableFunctionSlice(): meta::pure::metamodel::relation::Relation<meta::pure::metamodel::type::Any>[*]
{
#>{showcase::simple::store::TestDatabase.TEST0}#->filter(
c|($c.FIRSTNAME != 'Doe') &&
Expand Down

0 comments on commit 0967c52

Please sign in to comment.