pg-differ icon indicating copy to clipboard operation
pg-differ copied to clipboard

Add 'match' parameter to 'sync' method

Open multum opened this issue 5 years ago • 0 comments

The match parameter will be used to filter synchronization objects and take the regular expression as a value

const differ = new Differ({...})

differ.define('table', { name: 'contacts', columns: {...} }) // will be sync
differ.define('table', { name: 'contact_roles', columns: {...} }) // will be sync
differ.define('table', { name: 'chats', columns: {...} }) // will not sync

await differ.sync({ match: /^contact.*/ })

multum avatar Nov 28 '19 09:11 multum