4sh / datamaintain

One tool to maintain all your database schemas!
Apache License 2.0
25 stars 6 forks source link

#174 MongoDriver : allow to choose kotlinx, Jackson or a custom implementation #190

Closed nroulon closed 2 years ago

nroulon commented 2 years ago

Refacto for add JsonMapper interface with two methods :

The mongo code call the JsonMapper :

There is 3 implementations of JsonMapper that used a json framework (last version only) :

Datamaintain can load the implementations via :

There is a module driver-mongo-mapping-test for ensure that all implementations works and respect some rule (allowed unknown fields on serialization for example).

Default implementation for tests and cli is Serialization.

github-actions[bot] commented 2 years ago

Unit Test Results

  61 files  +  3    61 suites  +3   5m 53s :stopwatch: -24s 230 tests +23  230 :heavy_check_mark: +23  0 :zzz: ±0  0 :x: ±0  318 runs  +23  318 :heavy_check_mark: +23  0 :zzz: ±0  0 :x: ±0 

Results for commit 807bb9b7. ± Comparison against base commit 5ec36a71.

:recycle: This comment has been updated with latest results.