Skip to content

Instantly share code, notes, and snippets.

@reggi
Last active September 24, 2020 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reggi/cd8b56b3d5127833708746326e5f3f06 to your computer and use it in GitHub Desktop.
Save reggi/cd8b56b3d5127833708746326e5f3f06 to your computer and use it in GitHub Desktop.

DDL Lookup table:

commands nodeDriverHandle hasWriteConcern isExplicitlyWrite hasWriteAspect4.0 operationFile4.0 hasWriteAspect3.6 operationFile3.6
aggregate Collection#aggregate TRUE FALSE aggregate.ts FALSE aggregate.js
count Collection#count count.ts count.js
distinct Collection#distinct distinct.ts distinct.js
mapReduce Collection#mapReduce TRUE FALSE map_reduce.ts FALSE map_reduce.js
geoSearch
delete Collection#remove TRUE TRUE delete.ts delete.js
find Collection#find TRUE TRUE find.ts find.js
findAndModify Collection#findAndModify TRUE TRUE find_and_modify.ts find_and_modify.js
getLastError TRUE TRUE N/A N/A
getMore Server#getMore TRUE TRUE N/A N/A
insert Collection#insert TRUE TRUE insert.ts insert.js
resetError TRUE TRUE N/A N/A
update Collection#update TRUE TRUE update.ts update.js
planCacheClear
planCacheClearFilters
planCacheListFilters
planCacheSetFilter
authenticate
getnonce
logout
createUser Db#addUser TRUE TRUE add_user.ts TRUE add_user.js
dropAllUsersFromDatabase TRUE N/A N/A
dropUser Db#removeUser TRUE TRUE remove_user.ts TRUE remove_user.js
grantRolesToUser TRUE N/A N/A
revokeRolesFromUser TRUE N/A N/A
updateUser TRUE N/A N/A
usersInfo
createRole TRUE N/A N/A
dropRole TRUE N/A N/A
dropAllRolesFromDatabase TRUE N/A N/A
grantPrivilegesToRole TRUE N/A N/A
grantRolesToRole TRUE N/A N/A
invalidateUserCache
revokePrivilegesFromRole TRUE N/A N/A
revokeRolesFromRole TRUE N/A N/A
rolesInfo
updateRole TRUE N/A N/A
applyOps
isMaster
replSetAbortPrimaryCatchUp
replSetFreeze
replSetGetConfig
replSetGetStatus
replSetInitiate
replSetMaintenance
replSetReconfig
replSetResizeOplog
replSetStepDown
replSetSyncFrom
addShard
addShardToZone
balancerCollectionStatus
balancerStart
balancerStatus
balancerStop
checkShardingIndex
clearJumboFlag
cleanupOrphaned
enableSharding
flushRouterConfig
getShardMap
getShardVersion
isdbgrid
listShards
medianKey
splitVector
moveChunk TRUE N/A N/A
movePrimary
mergeChunks
refineCollectionShardKey
removeShard
removeShardFromZone
setShardVersion
shardCollection
shardingState
split
splitChunk
splitVector
unsetSharding
updateZoneKeyRange
abortTransaction TRUE N/A N/A
commitTransaction TRUE N/A N/A
endSessions
killAllSessions
killAllSessionsByPattern
killSessions
refreshSessions
startSession
cloneCollectionAsCapped TRUE
collMod
compact
connPoolSync
convertToCapped TRUE N/A N/A
create Db#createCollection TRUE TRUE create_collection.ts TRUE create_collection.js
createIndexes Db#createIndex, Collection#createIndex TRUE TRUE indexes.ts TRUE indexes.js
currentOp
drop Db#dropCollection, Collection#drop TRUE TRUE drop.ts TRUE drop.js
dropDatabase Db#dropDatabase TRUE TRUE drop.ts TRUE drop.js
dropConnections
dropIndexes Db#dropIndex TRUE TRUE indexes.ts TRUE drop_indexes.js
filemd5
fsync
fsyncUnlock
getDefaultRWConcern
getParameter
killCursors
killOp
listCollections collections.ts collections.js
listDatabases
listIndexes indexes.ts indexes.js
logRotate
reIndex
renameCollection Collection#rename TRUE TRUE rename.ts FALSE* rename.js
setFeatureCompatibilityVersion
setIndexCommitQuorum
setParameter
setDefaultRWConcern TRUE N/A N/A
shutdown
availableQueryOptions
buildInfo
collStats stats.ts stats.js
connPoolStats
connectionStatus
cursorInfo
dataSize
dbHash
dbStats stats.ts stats.js
driverOIDTest
features
explain
getCmdLineOpts
getLog
hostInfo
isSelf
listCommands
lockInfo
netstat
ping
profile set_profiling_level.ts set_profiling_level.js
serverStatus
shardConnPoolStats
top
validate
whatsmyuri
setFreeMonitoring
logApplicationMessage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment