Skip to content

v0.0.3

Compare
Choose a tag to compare
@aldy505 aldy505 released this 31 Jul 04:55
· 27 commits to master since this release
cb9e7b0

New feature!

Upsert is now a thing now. Available for MySQL, PostgreSQL, SQLite and MSSQL.

sql, args, err := bob.
  Upsert("users", bob.PostgreSQL).
  Columns("name", "email").
  Values("John Doe", "john@doe.com").
  Key("email").
  Replace("name", "John Does").
  PlaceholderFormat(bob.Dollar).
  ToSql()

// sql will results: INSERT INTO "users" ("name", "email") VALUES ($1, $2) ON CONFLICT ("email") DO UPDATE SET "name" = $3;

Git Log

cb9e7b0 (HEAD -> master, origin/master) Merge pull request #3 from aldy505/feat/upsert
b5df4ae (origin/feat/upsert) test: refactor & running fmt
4a02222 docs: documentation for upsert
0f06056 refactor: unexported function & documentation
49cf645 refactor: clean up exported funcs
ecefcdb test: dialect not supported
1b25a09 test: error tests
c59e6ac test: fixed tests
4a75bed feat: upsert (test not working yet)
50c8d98 docs: new features
c9b01ee feat: truncate rename and drop
0d704c8 docs: grammar