rql #9856 changing the verbs [open]
It would be good to change the verbs of the RQL language. Today they remind of SQL, but RQL is in fact closer to the HTTP protocol than one might think at first. Trying to add SELECT to RQL (the select is currently implicit) would make it look even closer to SQL, but the SET verb will never look like the UPDATE one and this will be even more misleading. On the opposite, RQL maps nicely to HTTP. Using RQL, one can GET, PUT, SET, DELETE objects in the database.
This would also get us closer to RESTful services in CubicWeb. | |
priority | normal |
---|---|
type | enhancement |
done in | <not specified> |
load | 0.500 |
load left | 0.500 |
closed by | <not specified> |
Comments
-
2010/11/09 18:03, written by acampeas
add commentGET/PUT/SET/DEL (DEL could be an alias indeed for DELETE) has a nice symmetric feeling and is pleasantly compact.
However (my whishlist ...) I would like to make the frequent case (GET ...) easier, expanding the current syntax to allow:
That is typing the variables directly in the query head, also allowing one etype specifier to scope several variables. This could probably made compatible with the above proposal.