This is the ThingsDB documentation for version v0, click here for the latest version!
Function | Description |
---|---|
assign | Copies properties from a thing. |
copy | Copy a thing to a new thing. A Type is not preserved. |
del | Remove a property. |
dup | Duplicate a thing while preserving the Type. |
each | Iterate over all properties of a thing. |
emit | Emit an event to all watchers of a thing. |
equals | Test if two things are equal. |
filter | Return a new thing with properties that pass a given test. |
get | Return the value of a property on a thing by a given property name. |
has | Determine if a thing has a given property. |
id | Return the id . |
keys | Return a list with all the property names of a thing. |
len | Return the number of items. |
map | Return a list with the results of calling a provided closure on every property. |
set | Create a new property on a thing. |
to_type | Converts a thing into an instance of a Type. |
unwatch | Stop watching the thing for mutations. |
values | Return a list with all the property values of a thing. |
watch | Watch the thing for mutations. |
wrap | Wrap the thing with a Type. |