github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/vendor_skip/go.mongodb.org/mongo-driver/x/mongo/driver/legacy.go (about) 1 // Copyright (C) MongoDB, Inc. 2022-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 driver 8 9 // LegacyOperationKind indicates if an operation is a legacy find, getMore, or killCursors. This is used 10 // in Operation.Execute, which will create legacy OP_QUERY, OP_GET_MORE, or OP_KILL_CURSORS instead 11 // of sending them as a command. 12 type LegacyOperationKind uint 13 14 // These constants represent the three different kinds of legacy operations. 15 const ( 16 LegacyNone LegacyOperationKind = iota 17 LegacyFind 18 LegacyGetMore 19 LegacyKillCursors 20 LegacyListCollections 21 LegacyListIndexes 22 )