SequoiaDB
 All Classes Namespaces Files Functions Variables Enumerations Properties Pages
Public Attributes | Properties | List of all members
SequoiaDB.DBQuery Class Reference

Database operation rules. More...

Public Attributes

const int FLG_QUERY_FORCE_HINT = 0x00000080
 Force to use specified hint to query, if database have no index assigned by the hint, fail to query.
 
const int FLG_QUERY_PARALLED = 0x00000100
 Enable parallel sub query, each sub query will finish scanning diffent part of the data.
 
const int FLG_QUERY_WITH_RETURNDATA = 0x00000200
 In general, query won't return data until cursor gets from database, when add this flag, return data in query response, it will be more high-performance.
 
const int FLG_QUERY_KEEP_SHARDINGKEY_IN_UPDATE = 0x00008000
 The sharding key in update rule is not filtered, when executing querydAndUpdate.
 
const int FLG_QUERY_FOR_UPDATE = 0x00010000
 When the transaction is turned on and the transaction isolation level is "RC", the transaction lock will be released after the record is read by default. However, when setting this flag, the transaction lock will not released until the transaction is committed or rollback. When the transaction is turned off or the transaction isolation level is "RU", the flag does not work.
 

Properties

BsonDocument Matcher [get, set]
 Matching rule.
 
BsonDocument Selector [get, set]
 selective rule
 
BsonDocument OrderBy [get, set]
 Ordered rule.
 
BsonDocument Hint [get, set]
 Sepecified access plan.
 
BsonDocument Modifier [get, set]
 Modified rule.
 
long SkipRowsCount [get, set]
 Documents to skip.
 
long ReturnRowsCount [get, set]
 Documents to return.
 
int Flag [get, set]
 Query flag.
 

Detailed Description

Database operation rules.

Member Data Documentation

const int FLG_QUERY_FOR_UPDATE = 0x00010000

When the transaction is turned on and the transaction isolation level is "RC", the transaction lock will be released after the record is read by default. However, when setting this flag, the transaction lock will not released until the transaction is committed or rollback. When the transaction is turned off or the transaction isolation level is "RU", the flag does not work.

When the transaction is turned on and the transaction isolation level is "RC", the transaction lock will be released after the record is read by default. However, when setting this flag, the transaction lock will not released until the transaction is committed or rollback. When the transaction is turned off or the transaction isolation level is "RU", the flag does not work. 0x00010000

const int FLG_QUERY_FORCE_HINT = 0x00000080

Force to use specified hint to query, if database have no index assigned by the hint, fail to query.

0x00000080

const int FLG_QUERY_KEEP_SHARDINGKEY_IN_UPDATE = 0x00008000

The sharding key in update rule is not filtered, when executing querydAndUpdate.

0x00008000

const int FLG_QUERY_PARALLED = 0x00000100

Enable parallel sub query, each sub query will finish scanning diffent part of the data.

0x00000100

const int FLG_QUERY_WITH_RETURNDATA = 0x00000200

In general, query won't return data until cursor gets from database, when add this flag, return data in query response, it will be more high-performance.

0x00000200

Property Documentation

SequoiaDB.DBQuery.Flag
getset

Query flag.

SequoiaDB.DBQuery.Hint
getset

Sepecified access plan.

SequoiaDB.DBQuery.Matcher
getset

Matching rule.

SequoiaDB.DBQuery.Modifier
getset

Modified rule.

SequoiaDB.DBQuery.OrderBy
getset

Ordered rule.

SequoiaDB.DBQuery.ReturnRowsCount
getset

Documents to return.

SequoiaDB.DBQuery.Selector
getset

selective rule

SequoiaDB.DBQuery.SkipRowsCount
getset

Documents to skip.


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