Releases: dominicrico/dbconvert
Releases · dominicrico/dbconvert
Fix for relations
0.2.1 fixed wrong mode in relation test
0.2.0
_All the build in functions should be ready and work._
NEW FEATURES
MERGE
Merge duplicates if needed and build a new entry out of the duplicates.
MongoDB example:
- doc1
{title: 'foo', author: 'bob', type: 'book' }
- doc2
{title: 'bar', author: 'bob', type: 'book' }
- doc1
{title: 'foo', author: 'bob', type: 'ebook' }
Duplicate finder will be ['author']
, merge field is publications
_Result:_
{
author: 'bob',
publications: [
{title: 'foo', type: 'book' }
{title: 'bar', type: 'book' }
{title: 'foo', type: 'ebook' }
]
}
SINGLE ROW
Run conversion for a single id in a specific table
use --single
in CLI or set single: [ID]
in config
_You need to set aso the ---table
or table: 'tableName'
_