UNPKG

chr

Version:

Interpreter for Constraint Handling Rules (CHR) in JavaScript

18 lines (13 loc) 361 B
const store = require('./store') const config = {} for (const key in store) { config[key] = store[key] } config.test = function () { return (typeof this.Store !== 'undefined' && typeof this.History !== 'undefined') } config.insert = function (table, object, fields) { store.insert.call(this.Store, table, object, fields) } module.exports = config