the-demo-resource

2.0.4 • Public • Published

the-demo-resource

Build Status npm Version JS Standard

Demo of the-db-resources

Installation

$ npm install the-demo-resource --save

Usage

'use strict'

const theDb = require('the-db')
const { SomeResource } = require('the-demo-resource')

async function tryExample () {

  let db = theDb({
    dialect: 'memory'
  })

  db.load(class extends SomeResource {

  }, 'SomeResource01')
  let { SomeResource01 } = db.resources

  let entity01 = await SomeResource01.create({ name: 'entity01' })
  /* ... */
}

tryExample().catch((err) => console.error(err))

Policies

SomeResource Policy

Property Description Type Required Unique
name "cly:string"

API Guide

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i the-demo-resource

Weekly Downloads

2

Version

2.0.4

License

MIT

Last publish

Collaborators

  • okunishinishi