# stopllc_oracle

> a stopllc set of tools to be used for oracle

Latest version **1.1.6** (published 2018-10-26) · ISC license · 0 weekly downloads

## Install

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

## 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.1.6 |
| Published | 2018-10-26 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Esteban Efigenio |
| Maintainers | eefigenio |

## Links

- npm: https://www.npmjs.com/package/stopllc_oracle
- npm.io page: https://npm.io/package/stopllc_oracle

## Dependencies (7)

- [joi](https://npm.io/package/joi.md) ^10.6.0
- [config](https://npm.io/package/config.md) ^1.25.1
- [moment](https://npm.io/package/moment.md) ^2.17.1
- [amqplib](https://npm.io/package/amqplib.md) ^0.5.1
- [oracledb](https://npm.io/package/oracledb.md) ^1.12.2
- [loopback-connector-oracle](https://npm.io/package/loopback-connector-oracle.md) ^3.2.0
- [loopback-datasource-juggler](https://npm.io/package/loopback-datasource-juggler.md) ^3.6.1

## Recent versions

- 1.1.6 (latest) — 2018-10-26
- 1.1.5 — 2018-10-25
- 1.1.4 — 2018-01-26
- 1.1.3 — 2017-09-13
- 1.1.2 — 2017-09-12
- 1.1.1 — 2017-09-12
- 1.1.0 — 2017-09-11
- 1.0.14 — 2017-07-28
- 1.0.13 — 2017-06-21
- 1.0.12 — 2017-06-13
- 1.0.11 — 2017-06-07
- 1.0.10 — 2017-05-13
- 1.0.9 — 2017-05-08
- 1.0.8 — 2017-05-08
- 1.0.7 — 2017-05-05

## README

STOLLC ORACLE HELPERS
=========

A small library that helps maintain stopllc oracle helpers

## Installation

  `npm install --save stopllc_oracle`

## Usage ES6 style
    import BaseModel from 'stopllc_oracle/lib/BaseModel';

    const ClassName extends BaseModel {
      constructor(){
        //call super
        super(); //initiates default id field
        // define fields.
        // name = '';
      }
    }

    const className = new ClassName();
    // create loopback data source
    const read = className.readDataSource('schema');

    read.find(); //loopback
    className.write('schema'); //custom procedures
    className.read('schema'); //custom read procedures

## BASEMODEL overwritable methods
    get readData() {
      // gets properties
      return this;
    }
    
    get ignoreRead() {
        return ['']; //ignores fields in array when reading using loopback .find()
    }

    get readProcData() {
      return this;
    }

    get writeData() {
      return this;
    }

    get readProcedureName() {
      //gets procedure name for oracle
      return this.constructor.name + 'ReadProc';
    }

    get procedureName() {
      //gets procedure name for oracle
      return this.constructor.name + 'Write';
    }

    get viewName() {
      //gets view name for oracle
      return this.constructor.name + 'Read';
    }

    get validate() {
      return true;
    }

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