From ORM to OQM 2: Property-Related Duplication in Dynamic Queries and its Refactor Approach

Introduction

The dynamic queries is a long-standing pain point in ORM frameworks.
Solving this problem will have a profound impact on simplifying the interaction logic of the database and improving the maintainability of the code.
This article locates a structural duplication in dynamic queries and proposes a general reconstruction method to optimize the code related to dynamic queries.

从ORM到OQM之2:动态查询中的属性相关型重复及其重构方法

介绍

动态查询问题是ORM框架中一个长期存在的痛点。
解决这个问题将对简化数据库的交互逻辑和提高代码的可维护性产生深远影响。
本文定位了动态查询中的一种结构型重复,并提出了一种通用的重构方法,以优化动态查询相关的代码。

What?! Go Implementation of OQM Can Build CRUD in Just Two Lines?

This is all thanks to the support of OQM (Object Query-Language Mapping) technology, we developed a Go version called GoooQo.

什么?!Golang里两行代码就能搞定增删查改接口了?

这都得益于OQM(Object Query-Language Mapping)技术的加持,我们开发了一个Go版本的实现,GoooQo

From ORM to OQM: An Object-Only SQL Construction Solution

Object/Relational Mapping (ORM) may lead the development of object-oriented applications based on relational databases in the wrong direction.

从ORM到OQM:一种基于对象的SQL语句构造方案

对象/关系映射(ORM)技术在一定程度上将基于关系数据库的应用开发引向了错误的方向。一个好的技术方案应该是把事情变得越来越简单,而不是越来越复杂。