p.spouse.name := "mary";set the name of the spouse of the person p to mary.
p.spouse.name[2]; p.spouse.name[2] := 'A'; p.spouse.other_addrs[2].street[3] := 'C'; p.spouse.children[?]; p.spouse.children[?].name;The path expression operator may be also used to navigate through struct atom, for instance: (struct(a : 1, b : "hello")).b returns "hello". Note that because of the precedence of operators, parenthesis are necessary around the literal struct construct.
General Information | |
Operators | . |
-> | |
Syntaxes | expr . expr |
expr -> expr | |
Type | binary |
Operand Types | first operand: oid or object, second operand: identifier |
Result Type | type of the attribute denoted by the second operand |
Functions | returns the attribute value denoted by second operand of the object denoted by the first operand |
The first operand must denote an EYEDB instance (object or literal) of an agregat including the attribute denoted by the second operand. | |
Note | these two operators are identical |
Expression Examples | ||
expression | result | comments |
p->name | the value of attribute name in the object denoted by p | p must denote an EYEDB instance (object or literal) of an agregat including the attribute name |
first(select x Person x from x.lastname = "wayne")->lastname | "wayne" |
EyeDB manual