1 repo
APIs for constructing complex SQL WHERE clauses and filtering criteria.
Distinguishing note: Focuses on the fluent construction of query filters rather than the execution of the query itself.
Explore 1 awesome GitHub repository matching data & databases · Query Condition Builders. Refine with filters or upvote what's useful.
GORM is a developer-focused object-relational mapping library for Go that provides a comprehensive data persistence framework. It serves as a database access layer, allowing developers to map application structures to database tables and perform CRUD operations using a fluent, type-safe query builder instead of writing raw SQL. The library distinguishes itself through its association-aware persistence, which automatically tracks and synchronizes complex entity relationships during database operations. It utilizes a driver-agnostic interface to maintain consistent behavior across various stora
String Conditions // Get first matched recorddb.Where("name = ?", "jinzhu").First(&user)// SELECT FROM users WHERE name = 'jinzhu' ORDER BY id LIMIT 1;// Get all matched recordsdb.Where("name <> ?", "jinzhu").Find(