# ligle-db

> database adapter reserved

Latest version **0.4.0** (published 2015-10-10) · ligle license · 0 weekly downloads

## Install

```sh
npm install ligle-db
pnpm add ligle-db
yarn add ligle-db
bun add ligle-db
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.0 |
| Published | 2015-10-10 |
| First published | 2015-10-10 |
| Weekly downloads | 0 |
| License | ligle |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | crackhopper |
| Maintainers | crackhopper |
| Keywords | db |

## Links

- npm: https://www.npmjs.com/package/ligle-db
- Repository: https://github.com/a-oak/ligle-db
- Issues: https://github.com/a-oak/ligle-db/issues
- npm.io page: https://npm.io/package/ligle-db

## Dependencies (2)

- [mongodb](https://npm.io/package/mongodb.md) ^2.0.35
- [ligle-util](https://npm.io/package/ligle-util.md) ~0.4.0

## Alternatives

- [angular-pipes](https://npm.io/package/angular-pipes.md) — 5.6K weekly downloads
- [@ng-web-apis/midi](https://npm.io/package/@ng-web-apis/midi.md) — 2.6K weekly downloads
- [happn-3](https://npm.io/package/happn-3.md) — 1.6K weekly downloads
- [@opensip-cli/lang-go](https://npm.io/package/@opensip-cli/lang-go.md) — 1.2K weekly downloads
- [mongoose-typescript](https://npm.io/package/mongoose-typescript.md) — 85 weekly downloads

## Recent versions

- 0.4.0 (latest) — 2015-10-10

## README

ligle-db
====================

[![Build Status](https://travis-ci.org/a-oak/ligle-db.svg?branch=master)](https://travis-ci.org/a-oak/ligle-db)
[![Build Status](https://travis-ci.org/a-oak/ligle-db.svg?branch=develop)](https://travis-ci.org/a-oak/ligle-db)
Copyright (c) 2015 [A-Oak](http://a-oak.com/) Co. Ltd. under MIT LICENSE.


# 说明
暂时没有做封装。

参见官方文档 http://mongodb.github.io/node-mongodb-native/2.0/api/Collection.html

## 常用的接口：
- find, findOne, findOneAndReplace, findOneAndDelete, drop
- 关于常用的options的说明：
  - limit: 返回条目的数目。
  - sort: 对文档排序。 `[['name',-1]]` 按照name倒序；`[['a',1]]`按照a正序
  - skip: Set to skip N documents ahead in your query (useful for pagination).
  - fields:（用在find中） 返回的field. include or exclude (not both)。例子： {'a':1} 
  - projection: (和fields类似，但用在delete,replace,update中) Limits the fields to return for all matching documents.

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