[Cubicweb] INSERT documentation
nicolas.chauvat at logilab.fr
Wed Mar 26 16:49:55 CET 2014
On Wed, Mar 26, 2014 at 03:28:53PM +0100, Dimitri Papadopoulos Orfanos wrote:
> I may be wrong but some details of INSERT and SET seem insufficiently
> documented. Here is what I have found so far:
> I don't understand the role and the syntax of <assignments>:
> assignments: list of relations to assign in the form
> V1 relationship V2 | <static value>
> What is a "static value"? Where do we specify the attributes of the new
You are to read "V1 relationship (V2 | <value>)"
INSERT BlogEntry E: E title "My article", E content "some text",
T tags E, T eid 1234
SET T tags E WHERE E is BlogEntry, E title "My article", T name "nice"
logilab.fr - services en informatique scientifique et gestion de connaissances
More information about the Cubicweb