Forb

Refactor ORM 3: The PageQuery Object and DataAccess Interface

This article explores refactoring dynamic query interfaces by encapsulating pagination and sorting logic into a reusable superclass PageQuery to generate the dynamic components of the SQL statements.

Refactor ORM 2: The Query Object and Dynamic Query Language

This article explores how to use query object instances to automatically generate dynamic query conditions. By abstracting query conditions into four types of fields—predicate suffix fields, logical suffix fields, subquery fields, and entity relationship fields—it achieves automatic construction of different kind of query conditions.

Refactor ORM: 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.

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.