Skip to content

Releases: dominicrico/dbconvert

Fix for relations

31 Mar 11:05
Compare
Choose a tag to compare
Fix for relations Pre-release
Pre-release
0.2.1

fixed wrong mode in relation test

0.2.0

11 Mar 11:49
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release

_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'_