# rnrecord

> A active record library for react native

Latest version **0.0.4** (published 2017-01-22) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install rnrecord
pnpm add rnrecord
yarn add rnrecord
bun add rnrecord
```

## 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.0.4 |
| Published | 2017-01-22 |
| First published | 2017-01-21 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | reneweb |
| Maintainers | reneweb |
| Keywords | react-native, db, sql, active record |

## Links

- npm: https://www.npmjs.com/package/rnrecord
- Repository: https://github.com/reneweb/rnrecord
- Homepage: https://github.com/reneweb/rnrecord#readme
- Issues: https://github.com/reneweb/rnrecord/issues
- npm.io page: https://npm.io/package/rnrecord

## 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.0.4 (latest) — 2017-01-22
- 0.0.3 — 2017-01-22
- 0.0.2 — 2017-01-21
- 0.0.1 — 2017-01-21

## README

# RnRecord

RnRecord is a active record library for react native.

## Getting started

`$ npm install rnrecord --save`

### Installation

`$ react-native link rnrecord`

For iOS it is additionally required to link libsqlite.
In order to do that, open the project in xcode,
click on the project in the project navigator,
go to build phases -> link binary with libraries,
click the + symbol, search for libsqlite3.tbd and choose that library.

### Usage

```javascript
import RnRecord from 'rnrecord';

class Person extends RnRecord {
  name: String;
  age: Number;

  constructor(name: String, age: Number) {
    super();
    this.name = name;
    this.age = age;
  }
}

const p = new Person("rob", 29);
p.save().then(id => {
  p.age = 30;
  p.update().then(res => {
    Person.find({age: 30}).then(r => console.log(r));
  });
});

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