[Cubicweb] INSERT documentation

Nicolas Chauvat nicolas.chauvat at logilab.fr
Wed Mar 26 16:49:55 CET 2014

Hi Dimitri,

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:
> 	http://docs.cubicweb.org/annexes/rql/language#insertion-query
> 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
> entity?

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"

Nicolas Chauvat

logilab.fr - services en informatique scientifique et gestion de connaissances  

More information about the Cubicweb mailing list