Huan Du
5cf00e9d1d
add ORDER BY 1 for SQL Server if Limit() is set but OrderBy() is not
2021-07-27 22:46:02 +08:00
Huan Du
3e007c306f
refs #64 add SQLServer flavor
2021-07-25 03:28:33 +08:00
Huan Du
b15ca56b4d
refs #48 #49 #53 : add new method SQL in all builders
...
All builders add a new method called SQL to enable us to add any
arbitrary SQL when building. It's quite useful when we are using some
kinds of extension syntax or add special comments in SQL.
2021-02-04 00:07:55 +08:00
Ross Wolf
37f1ba6eab
Add INNER join option
2020-12-21 23:13:34 -07:00
Huan Du
7239db6838
fix #47 . add Union and UnionAll methods
2020-07-28 12:01:33 +08:00
Huan Du
402f354140
fix #35 . do not escape cols by default.
2019-10-25 18:32:34 +08:00
Florian Lechner
36b815048e
added logic to allow to just set an offset without having to set a limit for Postgres, behaviour for MySQL has not changed
2019-07-19 13:33:52 +02:00
Huan Du
5e6c0741f7
fix #13 . SelectBuilder supports Join and JoinWithOption.
2018-11-23 16:37:46 +08:00
Huan Du
88302d2a18
fix #6 . fix incorrect marker when nesting builders with PostgreSQL flavor.
2018-02-04 22:48:08 +08:00
Huan Du
e219582f5a
fix #6 . support Postgre-flavor markers.
2018-02-04 21:49:42 +08:00
Huan Du
f039956b9d
add SelectBuilder#BuilderAs to make embedding builders easier
2017-12-31 20:38:03 +08:00
Huan Du
59e26deed3
provide Flatten; support sql.NamedArg
2017-12-28 18:26:21 +08:00
Huan Du
40f9bb99c7
support nested sql
2017-12-28 12:19:50 +08:00
Huan Du
be8a7cbb32
support DISTINCT
2017-12-28 01:39:42 +08:00
Huan Du
d6f157e3a4
remove useless comments
2017-12-28 01:34:45 +08:00
Huan Du
2f7b2c59bb
init
2017-12-28 00:37:13 +08:00