struct Mongo::Commands::CreateIndexes::Result
- Mongo::Commands::CreateIndexes::Result
- Struct
- Value
- Object
Included Modules
- BSON::Serializable
- Mongo::Commands::Common::Result
Defined in:
cryomongo/commands/admin/create_indexes.crConstructors
-
.new(bson : BSON)
Allocate an instance and copies data from a BSON struct.
Class Method Summary
-
.from_bson(bson : BSON)
NOTE See
self.new
.
Instance Method Summary
- #cluster_time : Session::ClusterTime | Nil
- #cluster_time=(cluster_time : Session::ClusterTime | Nil)
- #code : Int32 | Nil
- #code=(code : Int32 | Nil)
- #created_collection_automatically : Bool | Nil
- #created_collection_automatically=(created_collection_automatically : Bool | Nil)
- #errmsg : String | Nil
- #errmsg=(errmsg : String | Nil)
- #note : String | Nil
- #note=(note : String | Nil)
- #num_indexes_after : Int32 | Nil
- #num_indexes_after=(num_indexes_after : Int32 | Nil)
- #num_indexes_before : Int32 | Nil
- #num_indexes_before=(num_indexes_before : Int32 | Nil)
- #ok : Float64
- #ok=(ok : Float64)
- #operation_time : BSON::Timestamp | Nil
- #operation_time=(operation_time : BSON::Timestamp | Nil)
- #recovery_token : BSON | Nil
- #recovery_token=(recovery_token : BSON | Nil)
-
#to_bson(bson = BSON.new)
Converts to a BSON representation.
Constructor Detail
def self.new(bson : BSON)
#
Allocate an instance and copies data from a BSON struct.
class User
include BSON::Serializable
property name : String
end
data = BSON.new
data["name"] = "John"
User.new(data)
Class Method Detail
Instance Method Detail
def created_collection_automatically=(created_collection_automatically : Bool | Nil)
#
def to_bson(bson = BSON.new)
#
Converts to a BSON representation.
user = User.new name: "John"
bson = user.to_bson