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?
- #cluster_time=(cluster_time : Session::ClusterTime?)
- #code : Int32?
- #code=(code : Int32?)
- #created_collection_automatically : Bool?
- #created_collection_automatically=(created_collection_automatically : Bool?)
- #errmsg : String?
- #errmsg=(errmsg : String?)
- #note : String?
- #note=(note : String?)
- #num_indexes_after : Int32?
- #num_indexes_after=(num_indexes_after : Int32?)
- #num_indexes_before : Int32?
- #num_indexes_before=(num_indexes_before : Int32?)
- #ok : Float64
- #ok=(ok : Float64)
- #operation_time : BSON::Timestamp?
- #operation_time=(operation_time : BSON::Timestamp?)
- #recovery_token : BSON?
- #recovery_token=(recovery_token : BSON?)
-
#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 to_bson(bson = BSON.new)
#
Converts to a BSON representation.
user = User.new name: "John"
bson = user.to_bson