Improved questionmark parameter placeholder replacementw
Added support for subqueries in Where and Having clauses
Queries can be transformed into subqueries by calling .Subquery() on a db object
See main_test.go:TestQueryBuilderSubselectInWhere
Fixed comment spacing
Refactoring, adding Having Subquery support, allowing db.T for tablenames
Removed quoting from tablename in db.T, use db.QT for that
Refactoring, adding Having Subquery support, allowing db.T for tablenames
Added changes
Started with expression extension
Refactoring, adding Having Subquery support, allowing db.T for tablenames
Added method to easily update fields of the Model struct
Added column comparison and Join support
Added subquery support for InnerJoin querybuilder
Fixed column comparison
Added support for column prefixes
Models can set their column prefix by implementing the method ColumnPrefix() string
Fixed multi-parameter subselects and introduced aliasing
Improved Related method
Improved Related method to search for foreign key struct fields with the suffix "ID" (additional to "Id")
Got QueryExpr support from upstream
Added support for subqueries in Where and Having clauses
Queries can be transformed into subqueries by calling .Subquery() on a db object
See main_test.go:TestQueryBuilderSubselectInWhere
Improved questionmark parameter placeholder replacementw
Refactoring, adding Having Subquery support, allowing db.T for tablenames
Removed quoting from tablename in db.T, use db.QT for that
Removed quoting from tablename in db.T, use db.QT for that
Added changes
Added method to easily update fields of the Model struct
Fixed column comparison
Added support for column prefixes
Models can set their column prefix by implementing the method ColumnPrefix() string
Fixed multi-parameter subselects and introduced aliasing
Improved Related method
Improved Related method to search for foreign key struct fields with the suffix "ID" (additional to "Id")
Added select extension for multiple columns
Added support for LEFT RIGHT OUTER joins
Fixed slice support for lexpr.In()
Publizised LExpr
Added DateFormatting for all dialects
Added SUM function for columns
Fixed FormatDate
Added count for column
Removed literal expressions LExpr
Rewrote LExpr methods to work with expr structs.
Added methods BAnd and BOr (bitwise & and | )
Added SetLogWriter method
Added NotIn query expression
Added Distinct query expression
Added DistinctColumn query expression
Same as Distinct but returns a string
Added method OnExp to jexpr
Improved query expression .Eq() method for nil pointers
Fixed rebase errors
Only the postgres dialect handles AUTO_INCREMENT on non-primary key.
So we skip the auto increment test for other dialects.
The mysql case is a little trickier because the simple presence of the
'AUTH_INCREMENT' tag produces a faulty 'CREATE TABLE' statement. Hence
we need to remove it when present.
The dialect must define its own foreign key generator method.
The previous default is available as a method on gorm.DefaultForeignKeyNamer
and can be embedded in other dialects.
The mysql dialect uses the first 24 characters plus an sha1 hash of the
full key name if the key name is more than 64 characters.