Commit Graph
237 Commits
Author SHA1 Message Date
Vasily Rodionov 98718aad2d new: Added Flavor method to Builder interface 2024-10-31 15:23:25 +05:00
Vasily Rodionov b28a583417 new: flavor getters 2024-10-30 20:39:31 +05:00
Huan DuandGitHub 75cca5d6cb Merge pull request #175 from rodionovv/string-validation
Ignore empty content to prevent the output of incorrect SQL
2024-10-28 13:52:43 +08:00
Vasily Rodionov d21fa10b30 test: Added test cases for empty strings in where clause 2024-10-27 22:20:40 +05:00
Vasily Rodionov 9bf5964c7c fix #172: added checks for empty strings in conds. 2024-10-27 18:39:54 +05:00
Huan Du 4e13f47b93 fix #171: no need to escape field any more 2024-10-10 13:20:45 +08:00
Huan Du 619ac5820e reduce count of memory allocations in Cond.And/Or/Not 2024-09-24 14:40:15 +08:00
Huan Du e979adcd4a update doc for IsDistinctFrom and IsNotDistinctFrom 2024-09-23 22:06:35 +08:00
Huan Du 8329700531 fix #169: support IS [NOT] DISTINCT FROM operator 2024-09-23 22:03:08 +08:00
Huan Du 19835c7b14 update docs in README and godoc 2024-09-10 17:22:08 +08:00
Huan DuandGitHub 57e597eb7d Merge pull request #168 from vallahaye/167-add-logical-not-and-not-ilike-comparison-operators
Add logical NOT and NOT ILIKE operators
2024-09-10 15:49:16 +08:00
Valentin Lahaye 9d726b4cf4 feat(cond): add logical NOT and NOT ILIKE operators
Add Cond.Not and Cond.NotILike to build NOT and NOT ILIKE expressions.

Closes #167
2024-09-10 09:39:27 +02:00
Huan Du 03e80e6f8c refs #164: new API SelectMore to add more cols to SELECT after calling Select() 2024-09-09 02:05:14 +08:00
Huan Du cd1b266513 fix #163: CTE API refactory; see issue for details 2024-09-09 01:52:01 +08:00
Huan DuandGitHub a6a0e828d9 Merge pull request #162 from arikkfir/add-recursive-cte-support
Fix #161: Add support for recursive CTEs
2024-08-26 11:49:00 +08:00
Arik Kfir cacc5a5636 feature #161: add support for recursive CTEs
This change adds support for recursive CTEs by introducing the
`WithRecursive` method, which builds a `WITH RECURSIVE` clause.
2024-08-21 17:14:38 +03:00
Huan Du e8528206c0 fix: #160 SelectBuilder.With appends table names to FROM 2024-08-04 20:29:26 +08:00
Huan DuandGitHub b6974302a0 Merge pull request #159 from abanoub-fathy/add-ILIKE-helper-method
Add ilike helper method
2024-07-26 12:22:41 +08:00
Huan DuandGitHub 7a24fa087b Merge pull request #157 from huandu/feature/cte
Support CTE (Common Table Expression)
2024-07-26 12:20:39 +08:00
Huan Du 85be89ace1 support multiple tables in a WITH clause 2024-07-24 16:54:41 +08:00
Abanoub Fathy 7c5bcc0430 update readme file to add Cond.ILIKE 2024-07-10 02:59:56 +03:00
Abanoub Fathy 4f113ee4b9 add test for ILIKE cond 2024-07-09 21:07:45 +03:00
Abanoub Fathy 4613287c0e add ILIKE method to Cond 2024-07-09 21:07:23 +03:00
Huan Du 75c6f8c1e4 implement CTEBuilder 2024-07-06 23:58:26 +08:00
Huan Du 1c64d87a7c fix #150: remove useless deps in go.mod and go.sum 2024-05-26 14:23:24 +08:00
Huan Du fbe2e35f71 fix #149: avoid to generate invalid WHERE clause if andExpr is empty 2024-05-20 11:34:51 +08:00
Huan Du 76f1e16370 add sample to show how to build JOIN with Struct 2024-04-24 02:52:38 +08:00
Huan DuandGitHub 20c2b710b3 Merge pull request #146 from zhangyongding/master
Optimize paging syntax for Informix SELECT.
2024-04-15 11:53:04 +08:00
Huan DuandGitHub bd079c473c Merge pull request #147 from huandu/feature-where-clause
`WhereClause`: A new dedicated builder for WHERE clause
2024-04-15 11:52:17 +08:00
Huan Du 64a2aa1d63 update doc to be clear about the goal of this package 2024-04-15 11:44:51 +08:00
Huan Du e4e0abc70f add more cases for WhereClause 2024-04-15 01:41:27 +08:00
Huan Du ca1312d057 add more cases to increase test coverage 2024-04-14 00:02:57 +08:00
Huan Du 96e64e9b7d feature: new builder WhereClause dedicated for WHERE 2024-04-13 23:32:24 +08:00
zhangyongdingandGitHub 2a9154c2b5 Merge branch 'huandu:master' into master 2024-04-10 17:37:44 +08:00
maixl 72476d8c0a 优化informix分页查询语句,更优雅 2024-04-10 17:36:29 +08:00
Huan DuandGitHub 8fc213eb7b Merge pull request #140 from zhangyongding/master
Support Informix SQL, so we can support DBMS using this flavor, e.g. GBase.
2024-03-30 23:52:04 +08:00
maixl 8d52201d6a fix bug 2024-03-29 10:26:29 +08:00
maixl 2d88cfe780 支持informix 2024-03-19 10:50:29 +08:00
Huan Du 3706314572 fix #134: Add new Num* methods in CRUD builders to count number of required clause 2023-11-30 23:57:25 +08:00
Huan DuandGitHub b1bf57945d Merge pull request #133 from cemremengu/insertselect
add subselect builder for insert
2023-11-20 18:30:21 +08:00
cemre.mengu 44aa6b2562 remove unecessary oracle check 2023-11-19 20:26:16 +03:00
cemre.mengu 292410e6b4 add subselect builder for insert 2023-11-18 12:36:05 +03:00
Huan Du 18543198f5 fix #125: add more alias funcs in Cond for readability 2023-11-04 14:42:56 +08:00
Huan Du e0fd349ac7 update doc and tests for oracle flavor 2023-11-04 14:33:25 +08:00
Huan DuandGitHub 7ab40d7a97 Merge pull request #126 from zhangyongding/master
support oracle
2023-11-03 20:40:19 +08:00
maixl 145a39160f 移除ForeachReadForTag和ForeachWriteForTag函数 2023-11-02 08:28:25 +08:00
maixl 1490edd776 修复分页查询的的bug 2023-10-16 08:32:05 +08:00
maixl 61cf17e67a 修复分页查询时存在order by返回结果不正确的bug 2023-10-10 20:49:21 +08:00
zhangyd bf46b299f2 fix bug 2023-09-19 15:43:54 +08:00
zhangyd 89af7205a9 oracle的limit和offset改为固定参数 2023-09-19 09:11:42 +08:00