Not all minor changes may be noted here, but all large and/or breaking changes should be.
- PostgreSQL support!
Open(driver, dsn string, log EventReceiver)
creates an underlying connection for you based on a supplied driver and dsn string- All builders are now available without a
Session
facilitating much more complex queries - More common SQL support: Subqueries, Unions, Joins, Aliases
- More complex condition building support: And/Or/Eq/Neq/Gt/Gte/Lt/Lte
NewConnection
is deprecated. It assumes MySQL driver. Please useOpen
instead
NullTime
no longer relies on the mysql package. E.g. instead ofNullTime{mysql.NullTime{Time: t, Valid: true}}
it's now simplyNullTime{Time: t, Valid: true}
- All
*Builder
structs now embed a corresponding*Stmt
struct (E.g.SelectBuilder
embedsSelectStmt
). All non-Session
specific properies have been moved the*Stmt
structs