@resin/pinejs
Version:
Pine.js is a sophisticated rules-driven API engine that enables you to define rules in a structured subset of English. Those rules are used in order for Pine.js to generate a database schema and the associated [OData](http://www.odata.org/) API. This make
17 lines (15 loc) • 604 B
text/typescript
import { SBVRParser } from '@balena/sbvr-parser';
// tslint:disable-next-line:no-var-requires
const Types: string = require('@resin/sbvr-types/Type.sbvr');
import { version as sbvrParserVersion } from '@balena/sbvr-parser/package.json';
import { version } from '@balena/sbvr-parser/package.json';
export const ExtendedSBVRParser = SBVRParser._extend({
initialize() {
SBVRParser.initialize.call(this);
this.AddCustomAttribute('Database ID Field:');
this.AddCustomAttribute('Database Table Name:');
this.AddBuiltInVocab(Types);
return this;
},
version: sbvrParserVersion + '+' + version,
});