1.0.44 • Published 8 years ago

fx-orm v1.0.44

Weekly downloads
-
License
ISC
Repository
-
Last release
8 years ago

amqp-simple-connect

Simple wrapper for amqp. Provide only two simple methods: #publish & #subscribe.

Installation

npm install --save amqp-simple-connect

Usage

connect

import ORMConnect from 'fx-orm';
const config = {
    mongodb: {uri: '...', options: '...'},
    amqp: {path: '...', exchane: '...'}
}
await ORMConnect(config)

models

import { Order, Terminal, TerminalSchema } from 'fx-orm/models';
  • Order
  • OrderSchema
  • Terminal
  • TerminalSchema

data

  • fixtures
  • maps
  • types
  • validators

utils

  • helpers
    • stringHash(length:optional)
    • formatTime(datetime:optional)
    • getValidationSchemaByQName(queueName)
    • validate(object, schema, options = defaultOptions)
  • logger