OpenQuizz
Une application de gestion des contenus pédagogiques
_Query Class Reference
Inheritance diagram for _Query:
Collaboration diagram for _Query:

Public Member Functions

def __init__ (self, flags, db, coll, ntoskip, spec, fields, codec_options, read_preference, limit, batch_size, read_concern, collation, session, client, allow_disk_use)
 
def namespace (self)
 
def use_command (self, sock_info, exhaust)
 
def as_command (self, sock_info)
 
def get_message (self, set_slave_ok, sock_info, use_cmd=False)
 

Data Fields

 flags
 
 db
 
 coll
 
 ntoskip
 
 spec
 
 fields
 
 codec_options
 
 read_preference
 
 read_concern
 
 limit
 
 batch_size
 
 collation
 
 session
 
 client
 
 allow_disk_use
 
 name
 

Static Public Attributes

 exhaust_mgr
 
 cursor_id
 

Detailed Description

A query operation.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  flags,
  db,
  coll,
  ntoskip,
  spec,
  fields,
  codec_options,
  read_preference,
  limit,
  batch_size,
  read_concern,
  collation,
  session,
  client,
  allow_disk_use 
)

Member Function Documentation

◆ as_command()

def as_command (   self,
  sock_info 
)
Return a find command document for this query.

◆ get_message()

def get_message (   self,
  set_slave_ok,
  sock_info,
  use_cmd = False 
)
Get a query message, possibly setting the slaveOk bit.

Reimplemented in _RawBatchQuery.

◆ namespace()

def namespace (   self)

◆ use_command()

def use_command (   self,
  sock_info,
  exhaust 
)

Reimplemented in _RawBatchQuery.

Field Documentation

◆ allow_disk_use

allow_disk_use

◆ batch_size

batch_size

◆ client

client

◆ codec_options

codec_options

◆ coll

coll

◆ collation

collation

◆ cursor_id

cursor_id
static

◆ db

db

◆ exhaust_mgr

exhaust_mgr
static

◆ fields

fields

◆ flags

flags

◆ limit

limit

◆ name

name

◆ ntoskip

ntoskip

◆ read_concern

read_concern

◆ read_preference

read_preference

◆ session

session

◆ spec

spec

The documentation for this class was generated from the following file: