MongoDB request DSL • opensavvy.ktmongo.dsl.command
Package-level declarations¶
Types¶
AvailableInBulkWrite¶
sealed interface AvailableInBulkWrite<Document> : Node, Command
BulkWrite¶
class BulkWrite<Document : Any> : AbstractBsonNode, Command, CompoundNode<AvailableInBulkWrite<Document>>
Performing multiple write operations in a single request.
BulkWriteOptions¶
class BulkWriteOptions<Document>(context: ) : Options, WithWriteConcern
The options for a BulkWrite command.
Command¶
A command that can be sent to a MongoDB server.
Count¶
class Count<Document : Any> : AbstractBsonNode, Command
Counting a number of documents in a collection.
CountOptions¶
class CountOptions<Document>(context: ) : Options, WithLimit, WithSkip, WithMaxTime
The options for a Count command.
DeleteMany¶
class DeleteMany<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Deleting multiple documents from a collection.
DeleteManyOptions¶
class DeleteManyOptions<Document>(context: ) : Options, WithWriteConcern
The options for a DeleteMany command.
DeleteOne¶
class DeleteOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Deleting a single document from a collection.
DeleteOneOptions¶
class DeleteOneOptions<Document>(context: ) : Options, WithWriteConcern
The options for a DeleteOne command.
Drop¶
class Drop<Document : Any> : AbstractBsonNode, Command
Deleting an entire collection at once.
DropOptions¶
class DropOptions<Document>(context: ) : Options, WithWriteConcern
The options for a Drop command.
Find¶
class Find<Document : Any> : AbstractBsonNode, Command
Searching for documents in a collection.
FindOptions¶
class FindOptions<Document : Any>(context: ) : Options, WithLimit, WithSkip, WithMaxTime, WithSort<Document> , WithReadConcern, WithReadPreference
The options for a Find command.
InsertMany¶
class InsertMany<Document : Any> : AbstractBsonNode, Command
Inserting multiple elements in a collection in a single operation.
InsertManyOptions¶
class InsertManyOptions<Document>(context: ) : Options, WithWriteConcern
The options for a collection.insertMany operation.
InsertOne¶
class InsertOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Inserting a single element in a collection.
InsertOneOptions¶
class InsertOneOptions<Document>(context: ) : Options, WithWriteConcern
The options for a collection.insertOne operation.
ReplaceOne¶
class ReplaceOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Replaces a single element in a collection.
ReplaceOptions¶
class ReplaceOptions<Document>(context: ) : Options, WithWriteConcern
The options for a ReplaceOne operation.
RepsertOne¶
class RepsertOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Replaces a single element in a collection, or inserts it if it doesn't exist.
UpdateMany¶
class UpdateMany<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Updating multiple elements in a collection.
UpdateManyWithPipeline¶
class UpdateManyWithPipeline<Document : Any> : AbstractBsonNode, Command
Updating multiple elements in a collection, using a pipeline.
UpdateOne¶
class UpdateOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Updating a single element in a collection.
UpdateOneWithPipeline¶
class UpdateOneWithPipeline<Document : Any> : AbstractBsonNode, Command
Updating a single element in a collection, using a pipeline.
UpdateOptions¶
class UpdateOptions<Document>(context: ) : Options, WithWriteConcern
The options for a UpdateOne, UpsertOne, UpdateMany operation.
UpsertOne¶
class UpsertOne<Document : Any> : AbstractBsonNode, Command, AvailableInBulkWrite<Document>
Updating a single element in a collection, creating it if it doesn't exist.
UpsertOneWithPipeline¶
class UpsertOneWithPipeline<Document : Any> : AbstractBsonNode, Command
Updating a single element in a collection, creating it if it doesn't exist, using a pipeline.