liquid-funding/app/utils/db.js

9 lines
249 B
JavaScript
Raw Normal View History

2019-01-16 18:57:07 +00:00
export const fieldGenerator = self => (column, name) => {
Object.defineProperty(self, name || column, {
get() { return self._getRaw(column) },
set(value) { self._setRaw(column, value) },
enumerable: true,
configurable: true
})
}