MongoDB 教程
/ 驱动程序
驱动程序
MongoDB 驱动程序
MongoDB Shell(mongosh)虽然很棒,但通常你需要在应用程序中使用 MongoDB。为此,MongoDB 提供了许多语言驱动程序。
语言驱动程序允许你使用迄今为止在 mongosh 中学到的方法与 MongoDB 数据库进行交互,但直接在应用程序中完成。
以下是当前 MongoDB 官方支持的驱动程序:
- C
- C++
- C#
- Go
- Java
- Node.js
- PHP
- Python
- Ruby
- Rust
- Scala
- Swift
还有其他社区支持的库。
接下来,让我们看看如何使用 Node.js 驱动程序。