1 // Copyright (C) MongoDB, Inc. 2023-present. 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may 4 // not use this file except in compliance with the License. You may obtain 5 // a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 6 7 package driverutil 8 9 // Operation Names should be sourced from the command reference documentation: 10 // https://www.mongodb.com/docs/manual/reference/command/ 11 const ( 12 AbortTransactionOp = "abortTransaction" // AbortTransactionOp is the name for aborting a transaction 13 AggregateOp = "aggregate" // AggregateOp is the name for aggregating 14 CommitTransactionOp = "commitTransaction" // CommitTransactionOp is the name for committing a transaction 15 CountOp = "count" // CountOp is the name for counting 16 CreateOp = "create" // CreateOp is the name for creating 17 CreateIndexesOp = "createIndexes" // CreateIndexesOp is the name for creating indexes 18 DeleteOp = "delete" // DeleteOp is the name for deleting 19 DistinctOp = "distinct" // DistinctOp is the name for distinct 20 DropOp = "drop" // DropOp is the name for dropping 21 DropDatabaseOp = "dropDatabase" // DropDatabaseOp is the name for dropping a database 22 DropIndexesOp = "dropIndexes" // DropIndexesOp is the name for dropping indexes 23 EndSessionsOp = "endSessions" // EndSessionsOp is the name for ending sessions 24 FindAndModifyOp = "findAndModify" // FindAndModifyOp is the name for finding and modifying 25 FindOp = "find" // FindOp is the name for finding 26 InsertOp = "insert" // InsertOp is the name for inserting 27 ListCollectionsOp = "listCollections" // ListCollectionsOp is the name for listing collections 28 ListIndexesOp = "listIndexes" // ListIndexesOp is the name for listing indexes 29 ListDatabasesOp = "listDatabases" // ListDatabasesOp is the name for listing databases 30 UpdateOp = "update" // UpdateOp is the name for updating 31 ) 32