...
Example of a Create query to instantiate a TempSensor model.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<Create# Create(format="version,current"> <!--): # This will create --> <TempSensor> <peripheral>serial</peripheral> <baudrate>115200</baudrate> <interfacePort>/ TempSensor: peripheral: serial baudrate: 115200 interfacePort: "/dev/cu.usbserial-AL01C0ME</interfacePort> <interface>serial</interface> <format>ascii</format> <operation>receive</operation> <uniqueId>76522</uniqueId> <payload>$Null()</payload> <tempValue>$Null()</tempValue> </TempSensor> </Save>AL01C0ME" interface: serial format: ascii operation: receive uniqueId: 76522 payload: $Null() tempValue: $Null() |
For update and delete, see common CRUD operations on models.
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<NewFacetInstance# NewFacetInstance(fid=: "[:FacetIDName:]", Name=Name: "[:FacetInstanceName:]", Type=: "SffTqlFacet">): OnActivate: <OnActivate> <NewFacetInstance name=NewFacetInstance(name: "tqlwf", type=: "SffWdlFacet"): /> TopicFacet: TQLGenericTopic <TopicFacet>?TQLGenericTopic</TopicFacet> Process: <Process> <Storage Name=Storage(Name: "[:TQLCacheName:]" Type=, Type: "SqlSff" Comment=, Comment: "[:TQLCacheName:] Database SFF Unstructured SQL database" />): Namespace: <Namespace> <Include> Include: [:ModelFile:]</Include> <!-- ModelFile #ModelFile contains the definition for the model --> </Namespace> </Process> </OnActivate> ... |