支持与限制的命令
用户在连接到GeminiDB Mongo数据库后,需要关注以下支持以及限制的命令。
更多信息,请参见MongoDB官方文档。
| 命令类别 | 命令名称 | 是否支持该命令 | 备注 |
|---|---|---|---|
| Aggregates Commands | aggregate | √ | - |
| count | √ | - | |
| distinct | √ | - | |
| group | √ | - | |
| mapReduce | √ | - | |
| Geospatial Commands | geoNear | √ | - |
| geoSearch | × | 副本集不支持。 | |
| Query and Write Operation Commands | find | √ | - |
| insert | √ | - | |
| update | √ | - | |
| delete | √ | - | |
| findAndModify | √ | - | |
| getMore | √ | - | |
| getLastError | √ | - | |
| parallelCollectionScan | x | 系统内部命令。 | |
| Query Plan Cache Commands | planCacheListFilters | √ | - |
| planCacheSetFilter | √ | - | |
| planCacheClearFilters | √ | - | |
| planCacheListQueryShapes | √ | - | |
| planCacheListPlans | √ | - | |
| planCacheClear | √ | - | |
| Authentication Commands | logout | √ | - |
| authenticate | √ | - | |
| getnonce | √ | - | |
| User Management Commands | createUser | √ | - |
| updateUser | √ | - | |
| dropUser | √ | - | |
| dropAllUsersFromDatabase | √ | - | |
| grantRolesToUser | √ | - | |
| revokeRolesFromUser | √ | - | |
| usersInfo | √ | - | |
| Role Management Commands | invalidateUserCache | √ | - |
| createRole | √ | - | |
| updateRole | √ | - | |
| dropRole | √ | - | |
| dropAllRolesFromDatabase | √ | - | |
| grantPrivilegesToRole | √ | - | |
| revokePrivilegesFromRole | √ | - | |
| grantRolesToRole | √ | - | |
| revokeRolesFromRole | √ | - | |
| rolesInfo | √ | - | |
| Replication Commands | replSetFreeze | x | 系统内部命令。 |
| replSetGetStatus | √ | 副本集支持。 | |
| replSetInitiate | x | 系统内部命令。 | |
| replSetMaintenance | x | 系统内部命令。 | |
| replSetReconfig | x | 系统内部命令。 | |
| replSetStepDown | x | 系统内部命令。 | |
| replSetSyncFrom | x | 系统内部命令。 | |
| resync | x | 系统内部命令。 | |
| applyOps | x | 系统内部命令。 | |
| isMaster | √ | - | |
| replSetGetConfig | x | 系统内部命令。 | |
| Sharding Commands | flushRouterConfig | x | 系统内部命令。 |
| addShard | x | 系统内部命令。 | |
| addShardToZone | x | 系统内部命令。 | |
| balancerStart | x | 系统内部命令。 | |
| balancerStatus | √ | 系统内部命令。 | |
| balancerStop | x | 系统内部命令。 | |
| removeShardFromZone | x | 系统内部命令。 | |
| updateZoneKeyRange | x | 系统内部命令。 | |
| cleanupOrphaned | x | 高危命令。 | |
| checkShardingIndex | x | 系统内部命令。 | |
| enableSharding | √ | - | |
| listShards | √ | 系统内部命令。 | |
| removeShard | x | 高危命令。 | |
| getShardMap | x | 系统内部命令。 | |
| getShardVersion | x | 系统内部命令。 | |
| mergeChunks | x | 系统内部命令。 | |
| setShardVersion | x | 系统内部命令。 | |
| shardCollection | √ | 目前,只支持空表做shardCollection。 | |
| shardingState | x | 系统内部命令。 | |
| unsetSharding | x | 系统内部命令。 | |
| split | x | 系统内部命令 | |
| splitChunk | x | 系统内部命令。 | |
| splitVector | x | 系统内部命令。 | |
| moveChunk | x | 系统内部命令。 | |
| movePrimary | x | 系统内部命令。 | |
| isdbgrid | √ | - | |
| Sessions Commands | abortTransaction | √ | 副本集支持。 |
| commitTransaction | √ | 副本集支持。 | |
| endSessions | √ | - | |
| killAllSessions | √ | - | |
| killAllSessionsByPattern | √ | - | |
| killSessions | √ | - | |
| refreshSessions | √ | - | |
| startSession | √ | - | |
| Administration Commands | setFeatureCompatibilityVersion | √ | - |
| renameCollection | √ | - | |
| dropDatabase | √ | - | |
| listCollections | √ | - | |
| drop | √ | - | |
| create | √ | - | |
| clone | x | 系统内部命令。 | |
| cloneCollection | x | 系统内部命令。 | |
| cloneCollectionAsCapped | x | 系统内部命令。 | |
| convertToCapped | √ | - | |
| filemd5 | √ | - | |
| createIndexes | √ | - | |
| listIndexes | √ | - | |
| dropIndexes | √ | - | |
| fsync | √ | - | |
| clean | x | 系统内部命令。 | |
| connPoolSync | x | 系统内部命令。 | |
| connectionStatus | √ | - | |
| compact | x | 高危命令。 | |
| collMod | √ | - | |
| reIndex | √ | - | |
| setParameter | x | 系统配置命令。 | |
| getParameter | √ | - | |
| repairDatabase | x | 高危命令。 | |
| touch | x | 存储引擎不支持。 | |
| shutdown | x | 高危命令。 | |
| logRotate | x | 高危命令。 | |
| killOp | √ | - | |
| Diagnostic Commands | availableQueryOptions | √ | - |
| buildInfo | √ | - | |
| collStats | √ | - | |
| connPoolStats | x | 系统内部命令。 | |
| dataSize | √ | - | |
| dbHash | x | 系统内部命令。 | |
| dbStats | √ | - | |
| driverOIDTest | x | 系统内部命令。 | |
| explain | √ | - | |
| features | √ | - | |
| getCmdLineOpts | x | 系统内部命令。 | |
| getLog | x | 系统内部命令。 | |
| hostInfo | x | 系统内部命令。 | |
| isSelf | x | 系统内部命令。 | |
| listCommands | √ | - | |
| listDatabases | √ | - | |
| netstat | x | 系统内部命令。 | |
| ping | √ | - | |
| profile | √ | - | |
| serverStatus | √ | - | |
| shardConnPoolStats | x | 系统内部命令。 | |
| top | x | 系统内部命令。 | |
| validate | x | 系统配置命令。 | |
| whatsmyuri | √ | - | |
| System Events Auditing Commands | logApplicationMessage | x | 系统内部命令。 |