Skip to content

Releases: huandu/go-sqlbuilder

`Struct#SelectFrom` and `Struct#SelectFromForTag` add table name as prefix to all columns

21 Nov 07:04
Compare
Choose a tag to compare

Per #40, table name should be added as prefix (like table.col) to column names to avoid column name conflict. It's useful when building a SELECT with JOIN.

Add new methods in `Struct` to support INSERT IGNORE INTO and REPLACE INTO

11 Nov 09:11
Compare
Choose a tag to compare

Per #39, add new methods in Struct, including InsertIgnoreInto, ReplaceInto, InsertIgnoreIntoForTag and ReplaceIntoForTag.

New methods to build more complex UPDATE and INSERT INTO

11 Nov 09:17
006618a
Compare
Choose a tag to compare

Per #32, add new method SetMore in UpdateBuilder to add more assignments to UPDATE.

Per #33, add new method InsertIgnoreInto in InsertBuilder to support INSERT IGNORE INTO.

New feature: interpolate `args` in the `sql`

24 Apr 09:20
c4e6aae
Compare
Choose a tag to compare

#23 This feature is inspired by the interpolation feature implemented by github.com/go-sql-driver/mysql. It's designed to work with some less functional drivers to bind params to a SQL on client side rather than server side.

Add `CreateTableBuilder` and support `REPLACE INTO`

21 Apr 16:39
d22840c
Compare
Choose a tag to compare

Per #18, add CreateTableBuilder and support REPLACE INTO now.

Per #19, Args#Compile will print raw $ if $ syntax is wrong.