Custom Schema Example
In this section is a complete schema. The info section enables a relational view of a Cassandra object. For more details, see Custom Schema Definitions. The table below allows the SELECT command as implemented in the GET section of the schema below. The operations, such as cassandraadoExecuteSelect, are internal implementations.
Use the table attribute to specify the name of the table you want to parse. You can use the table attribute to define multiple schemas for the same table.
If table is not specified, the filename determines the table that is parsed.
<rsb:script xmlns:rsb="http://www.rssbus.com/ns/rsbscript/2">
<rsb:info title="Customers" description="Customers">
<!-- Column definitions -->
<attr name="Id" xs:type="int" key="true" />
<attr name="Name" xs:type="string" />
<attr name="Street" xs:type="string" other:periodpath="address.street" />
<attr name="City" xs:type="string" other:periodpath="address.city" />
<attr name="PrimaryOffice" xs:type="string" other:periodpath="offices.0" />
<attr name="SecondaryOffice" xs:type="string" other:periodpath="offices.1" />
</rsb:info>
<rsb:set attr="table" value="customers"/>
<rsb:script method="GET">
<rsb:push op="cassandraadoExecuteSelect"/>
</rsb:script>
</rsb:script>