KorzhCom/Korzh.DbUtils

MongoDB support

Closed this issue · 2 comments

Hello what is required to support mongoDB.

Also I got some errors when my db had some other types like spatial types, updated types.

While debugging I saw it was missing some types

korzh commented

To add support for Mongo (and for any other DB, actually) DbUtils just needs an implementation of a "DB bridge" class that is actually an implementation of 2 interfaces: IDbReader and IDbWriter.

Usually it's just necessary to inherit new class from BaseDbBridge and override a few methods.

As for errors when a DB uses some types. Could you please attach an example of Table definition with those types? And it's better to create a separate issue for this problem.

thanks.

I just added the types I needed in the list and the error was gone for now.