DT MongoDB Plug -in description(1)

简介: DT MongoDB Plug -in description(1)

DT MongoDB | Client

Create MongoDB Client

Create an MongoDB client object


Connect By Url

ConnectB MongoDB server

Param Url : mongoDB://account:password@ip:port e.g. mongodb://admin:123456@127.0.0.1:27017

     or mongoDB://ip:port e.g. mongodb://127.0.0.1:27017


Get Collection



DT MongoDB | Collection

Insert One

Inserts a single document into the collection. If the document is missing an identifier

(_id field) one will be generated for it.

Param MongoDB Document : The document to insert.


Insert Many

Inserts multiple documents into the collection. If any of the documents are missing

identifiers the driver will generate them.


Warning This method uses the bulk insert command to execute the insertion as opposed to

the legacy OP_INSERT wire protocol message. As a result, using this method to insert many


documents on MongoDB < 2.6 will be slow.


Param MongoDB Documents : Array of a documents to insert.


Delete One

Deletes a single matching document from the collection.


Param Filter : Document view representing the data to be deleted.


Delete Many

Deletes all matching documents from the collection.


Param Filter : Document view representing the data to be deleted.


Replace One

Replaces a single document matching the provided filter in this collection.


Param Filter : Document representing the match criteria.

Param MongoDB Document : The replacement document.


Update One

Updates a single document matching the provided filter in this collection.


Param Filter : Document representing the match criteria.

Param MongoDB Document : Document representing the update to be applied to a matching document.


Update Many

Updates multiple documents matching the provided filter in this collection.


Param Filter : Document representing the match criteria.

Param MongoDB Document : Document representing the update to be applied to matching documents.


Find

Finds a single document in this collection that match the provided filter.

Param Filter : Document view representing a document that should match the query.


Find One

Finds a single document in this collection that match the provided filter.

Param Filter : Document view representing a document that should match the query.


DT MongoDB | Document

Create MongoDB Document

Create an MongoDB document object


To MongoDB Document (MongoDB Oid)

MongoDB Oid to MongoDB document


To MongoDB Document (Json)

Json String to MongoDB document


To MongoDB Document (MongoDB View)

DT MongoDB View to MongoDB document


To MongoDB Document (Map String)

Map String to MongoDB document


To MongoDB Document (Map Int32)

Map Int to MongoDB document


To MongoDB Document (Map Int64)

Map Int64 to MongoDB document


To MongoDB Document (Map Float)

Map Float to MongoDB document


To MongoDB Document (Map Double)

Map Double to MongoDB document


To MongoDB Document (Map MongoDB Document)

Map MongoDB document to MongoDB document


To Map String (MongoDB Document)

MongoDB document to Map String


To Map String (MongoDB Document)

MongoDB document to Json String


Add Bool


Add String


Add Int 32


Add Int 64


Add Float


Add Double


Add Document


Add View


Add Bool Array


Add String Array


Add Int 32 Array


Add Int 64 Array


Add Float Array


Add Double Array


Add Document Array

                   

相关文章
|
JSON NoSQL MongoDB
DT MongoDB Plug -in description(2)
DT MongoDB Plug -in description(2)
281 0
|
NoSQL MongoDB 数据库
数据库数据恢复—MongoDB数据库数据恢复案例
MongoDB数据库数据恢复环境: 一台操作系统为Windows Server的虚拟机上部署MongoDB数据库。 MongoDB数据库故障: 工作人员在MongoDB服务仍然开启的情况下将MongoDB数据库文件拷贝到其他分区,数据复制完成后将MongoDB数据库原先所在的分区进行了格式化操作。 结果发现拷贝过去的数据无法使用。管理员又将数据拷贝回原始分区,MongoDB服务仍然无法使用,报错“Windows无法启动MongoDB服务(位于 本地计算机 上)错误1067:进程意外终止。”
|
12月前
|
缓存 NoSQL Linux
在CentOS 7系统中彻底移除MongoDB数据库的步骤
以上步骤完成后,MongoDB应该会从您的CentOS 7系统中被彻底移除。在执行上述操作前,请确保已经备份好所有重要数据以防丢失。这些步骤操作需要一些基本的Linux系统管理知识,若您对某一步骤不是非常清楚,请先进行必要的学习或咨询专业人士。在执行系统级操作时,推荐在实施前创建系统快照或备份,以便在出现问题时能够恢复到原先的状态。
1276 79
|
12月前
|
存储 NoSQL MongoDB
MongoDB数据库详解-针对大型分布式项目采用的原因以及基础原理和发展-卓伊凡|贝贝|莉莉
MongoDB数据库详解-针对大型分布式项目采用的原因以及基础原理和发展-卓伊凡|贝贝|莉莉
437 8
MongoDB数据库详解-针对大型分布式项目采用的原因以及基础原理和发展-卓伊凡|贝贝|莉莉
|
11月前
|
运维 NoSQL 容灾
告别运维噩梦:手把手教你将自建 MongoDB 平滑迁移至云数据库
程序员为何逃离自建MongoDB?扩容困难、运维复杂、高可用性差成痛点。阿里云MongoDB提供分钟级扩容、自动诊断与高可用保障,助力企业高效运维、降本增效,实现数据库“无感运维”。
|
NoSQL MongoDB 数据库
数据库数据恢复——MongoDB数据库服务无法启动的数据恢复案例
MongoDB数据库数据恢复环境: 一台Windows Server操作系统虚拟机上部署MongoDB数据库。 MongoDB数据库故障: 管理员在未关闭MongoDB服务的情况下拷贝数据库文件。将MongoDB数据库文件拷贝到其他分区后,对MongoDB数据库所在原分区进行了格式化操作。格式化完成后将数据库文件拷回原分区,并重新启动MongoDB服务。发现服务无法启动并报错。
|
存储 NoSQL MongoDB
数据库数据恢复—MongoDB数据库迁移过程中丢失文件的数据恢复案例
某单位一台MongoDB数据库由于业务需求进行了数据迁移,数据库迁移后提示:“Windows无法启动MongoDB服务(位于 本地计算机 上)错误1067:进程意外终止。”
|
存储 JSON NoSQL
学习 MongoDB:打开强大的数据库技术大门
MongoDB 是一个基于分布式文件存储的文档数据库,由 C++ 编写,旨在为 Web 应用提供可扩展的高性能数据存储解决方案。它与 MySQL 类似,但使用文档结构而非表结构。核心概念包括:数据库(Database)、集合(Collection)、文档(Document)和字段(Field)。MongoDB 使用 BSON 格式存储数据,支持多种数据类型,如字符串、整数、数组等,并通过二进制编码实现高效存储和传输。BSON 文档结构类似 JSON,但更紧凑,适合网络传输。
639 15
|
存储 NoSQL MongoDB
微服务——MongoDB常用命令1——数据库操作
本节介绍了 MongoDB 中数据库的选择、创建与删除操作。使用 `use 数据库名称` 可选择或创建数据库,若数据库不存在则自动创建。通过 `show dbs` 或 `show databases` 查看所有可访问的数据库,用 `db` 命令查看当前数据库。注意,集合仅在插入数据后才会真正创建。数据库命名需遵循 UTF-8 格式,避免特殊字符,长度不超过 64 字节,且部分名称如 `admin`、`local` 和 `config` 为系统保留。删除数据库可通过 `db.dropDatabase()` 实现,主要用于移除已持久化的数据库。
842 0

推荐镜像

更多