Say I query the datastore with:
query = self.request.get('q')
query = db.GqlQuery("SELECT * FROM UserProfile WHERE username = :query", query=query)
The UserProfile table has an entry:
userid username
1 Ron
So when I query with username="Ron"
it return the object but not with the query username="ron"
. Is it possible to query the datastore keeping the query case-insensitive?
Also, does Google Datastore has query similar to Django's as below?
c = Col.objects.filter(name__istartswith = request.GET['term'])[:3]