pajachiet / pymongo-schema

A schema analyser for MongoDB, written in Python.
GNU Lesser General Public License v3.0
74 stars 13 forks source link

manage compatibility with schema extracted from code #18

Closed JulieRossi closed 7 years ago

JulieRossi commented 7 years ago

Allow modules (export, tosql) to manage schema extracted from code (instead of extract from database).

The main difference is that there are no count fields in the schema. Also, there is one specific Field (DictField) that has to be managed differently as it is an undefined schema object (it has OBJECT type but no object key). This should match a JSON field in PostgreSQL but since it is not correctly managed by the doc manager (creates a JSON column but does not copy data), it is removed from mapping.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.3%) to 92.338% when pulling b78e425feb17d5d0548c9c479b00ffc406811be2 on JulieRossi:compat_schema_from_code into b8f80c35f375cc2d1f72dc535b5d638c0e13de7b on pajachiet:develop.