| Class | SquishQuery |
| In: |
lib/squish.rb
|
| Parent: | Object |
| all_vars | [RW] | incl parsed query state |
| clauses | [RW] | incl parsed query state |
| from_args | [RW] | incl parsed query state |
| full_clauses | [RW] | incl parsed query state |
| select_args | [RW] | incl parsed query state |
| using_args | [RW] | incl parsed query state |
| where_args | [RW] | incl parsed query state |
| xmlns | [RW] | incl parsed query state |
Sample Web service plugins: Google/backlinks
todo: a general API for such things would be nice. This is rather arbitrary.
Output in Algae syntax (URI for spec?) todo: look at commas, throw exception for ’*’ or workaround as below
- for this, need an query.allvarnames() method
- warn if there's a FROM clause, or figure out Algae syntax
- find out Algae notation for using ns prefixes
output requested variables as contents of a Squish SELECT clause
eg: "?x, ?y, ?z"
todo: refactor to hide the * case from apps that want a clean list of vars, ie. sharecode w/ algae function. self.sels is bad data.
where_lpar: ’(’ where clause, left paren
-> deal with each pred_expr or drop out of WHERE via using_keyword