Saying, they can be used interchangeably if warranted.
On Saturday, May 9, 2015 at 9:34:31 AM UTC-4, Alan Etkin wrote:
>
> Question: is there an equivalent
>>
>> db().select(db.blog.author) in pymongo api? For example if I use the
>> above implementation in pymongo:
>>
>> db1.blog.author (would
Question: is there an equivalent
>
> db().select(db.blog.author) in pymongo api? For example if I use the above
> implementation in pymongo:
>
> db1.blog.author (wouldn’t work). But I can get specific author
> db1.blog.find({‘author’:’Ron’}) That is also equivalent to:
>
> db(db.blog.author == ‘
On this note: I have this blog post let’s say (with mongodb connection):
db.define_table('blog',
Field('author', 'string', requires = IS_NOT_EMPTY()),
Field('date', 'datetime', default = request.now),
Field('text', 'text'))
I can do: print d
3 matches
Mail list logo