# firerelations

> sql like library for interacting with firebase

Latest version **1.0.5** (published 2016-03-30) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2016-03-30 |
| First published | 2016-02-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jakob Hartman |
| Maintainers | jakobhartman |
| Keywords | Firebase, sql |

## Links

- npm: https://www.npmjs.com/package/firerelations
- Repository: https://github.com/JakobHartman/fireRelations
- Homepage: https://github.com/JakobHartman/fireRelations#readme
- Issues: https://github.com/JakobHartman/fireRelations/issues
- npm.io page: https://npm.io/package/firerelations

## Dependencies (1)

- [firebase](https://npm.io/package/firebase.md) ^2.4.1

## Recent versions

- 1.0.5 (latest) — 2016-03-30
- 1.0.4 — 2016-03-26
- 1.0.3 — 2016-03-26
- 1.0.2 — 2016-02-25
- 1.0.1 — 2016-02-25
- 1.0.0 — 2016-02-25

## README

FireRelations
=========

A small library providing a utility to interact with firebase like a sql database, with basic statements. Soon to have more complex.

## Installation

```bash
npm install firerelations --save
```

## Usage

```javascript
var fireRelation = require('fireRelations');
fireRelation.init("Firebase URL");

//add a table definition
var userCols = ["Column1","Column2"];
var newTable = new FireTable("tableName",userCols);
fireRelation.addTable(newTable);

//insert
fireRelation.insert().into("Table").values("Data1,Data2");

//Select, will return a promise with data 
var data = fireRelation.select().from("Table").where("Column").equals("Value");
data.then(function(callback){
  console.log(callback);
})

//Select, with like clause will return a promise with data 
var data = fireRelation.select().from("Table").where("Column").like("Value");
data.then(function(callback){
  console.log(callback);
})

//Delete
fireRelation.delete().from("Table").where("Column").equals("Value");
```

## Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality. Lint and test your code.

## Release History

* 1.0.0 Initial release
* 1.0.1 Fixed bugs
* 1.0.2 Readme Updates
* 1.0.3 init doesnt return firebase object, readme coloring
* 1.0.4 added like clause to selects
* 1.0.5 readme changes, changes to add table

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