brettwooldridge / SansOrm

A "No-ORM" sane SQL ←→ Java object mapping library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible to add MERGE support?

stevenwaterman opened this issue · comments

It seems pretty simple to add H2's merge function to OrmWriter, but it's a right pain to add it externally.

Is there a reason why it's absent at the minute?

So far we have avoided and post SQL99 constructs because of limited support by various databases. Merge/upsert support would require dialect specific extensions. For example, PostgreSQL uses an entirely different syntax.

Pull requests are welcome but should be as comprehensive as possible. For example, detecting database version and behaving accordingly, or throwing a NotImplementedException.