Google has provided a nice set of articles about the datastore:
http://code.google.com/appengine/articles/datastore/overview.html
Robert
On Mar 29, 2010, at 5:35, Ulrich <[email protected]> wrote:
PoulS wrote:
Apparently the datastore doesn't support wildcard queries. As long as
the query just has a trailing %, I suppose you could emulate them
with
combined >= and < filters, but what would you specify for the <
filter ?
Let's say you have a search string like
search = u'abc'
I can think of two ways to do this:
>= search AND < search + u'\U0010ffff'
which will not work if one of your matches begins with
search+u'\U0010ffff'
but that is very unlikely...
And the other solution is
>= search AND < search[:-1] + unichr(ord(search[-1])+1)
-Ulrich
As an aside, I'm rather puzzled by the limitations of the query
language, compared with SQL. Are there any resources explaining these
limitations and pssible workarounds..?
--
You received this message because you are subscribed to the Google
Groups "Google App Engine" group.
To post to this group, send email to google-
[email protected].
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Google
App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.