Open brianleroux opened 3 years ago
Common feedback that folks want a scoped factory constructor for begin/data. Usage as follows:
let { Table, factory } = require('@begin/data') // constructor style let cats = new Table('cats') await cats.set({ meow: 'hi' }) // factory style let [cats, dogs] = factory('cats', 'dogs') await Promise.all([ cats.set({ hi: 'meow' }), dogs.set({ hi: 'woof' }) ])
Coming from other libraries, I like having this option, and the usage looks great 👍
Common feedback that folks want a scoped factory constructor for begin/data. Usage as follows: