# @open-dy/dycloud-db

> 抖音云云数据库

Latest version **1.1.0** (published 2024-08-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @open-dy/dycloud-db
pnpm add @open-dy/dycloud-db
yarn add @open-dy/dycloud-db
bun add @open-dy/dycloud-db
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2024-08-15 |
| First published | 2023-05-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 913.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | douyincloud@bytedance.com |
| Maintainers | rd.opendouyin, bytednpm, liuzhe.inf |
| Keywords | database, dy-cloud |

## Links

- npm: https://www.npmjs.com/package/@open-dy/dycloud-db
- npm.io page: https://npm.io/package/@open-dy/dycloud-db

## Dependencies (1)

- [bson](https://npm.io/package/bson.md) ^4.0.3

## Recent versions

- 1.1.0 (latest) — 2024-08-15
- 1.0.0 — 2023-05-30

## README

# @open-dy/dycloud-db
抖音云云数据库sdk
## 安装
```
yarn add @open-dy/dycloud-db
```

## 使用方式
```
import { DataBaseError, Db } from '@open-dy/dycloud-db';
// 实现一个网络请求类，并提供异步的 send 方法。
class Request {
  async send(action: string, data: string, _: string) {
    const params = Object.assign({}, data, {
      action,
    });
    const res = await axios({
      method: 'post',
      url: '',
      data: params,
    });
    return res?.data?.data || {};
  }
}
let db = new Db(Request);
const res = await db.collection('todos').get();
```

---
_Source: https://npm.io/package/@open-dy/dycloud-db · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
