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
This commit allows you to pass a string or an existing database
connection as the source for gorm. The dialect is still required
because a) there is no common reference to it as far as i know, and
b) gorm allows the dialect to differ from the driver. So, for the sake
of simplicity, you still have to specity the dialect.
This is useful if you have an existing transaction, but still
want to use gorm to format your queries.
This is dependent on the defintion of DB in pkg database/sql having
the field 'dsn', which is the database source, obtained via reflect.