107 Commits

Author SHA1 Message Date
Uzziah
24b41552c5
fix: refactor update sql (#5274)
* fix: refactor UpdateSQL method and add test

* fix: add modify record into CHANGELOG

* fix: modify url in the CHANGELOG

* fix: modify pr url in the CHANGELOG
2023-07-10 21:50:44 +08:00
Uzziah
957c526efb
fix: refactor Delete method (#5271)
* fix: refactor Delete method and add test

* fix: add modify record into CHANGELOG
2023-07-06 19:53:07 +08:00
Uzziah
fdcf2e9806
fix: modify InsertOrUpdate method (#5269)
* fix: modify InsertOrUpdate method, Remove the isMulti variable and its associated code

* fix: Delete unnecessary judgment branches

* fix: add modify record into CHANGELOG
2023-07-02 15:31:44 +08:00
Uzziah
20a5030842
fix: refactor InsertValue method (#5267)
* fix: refactor insertValue method and add the test

* fix: exec goimports and add Licence file header

* fix: modify construct method of dbBase

* fix: add modify record into CHANGELOG
2023-06-29 21:33:46 +08:00
Ming Deng
1047faadfb
cache/redis: support skipEmptyPrefix option (#5264) 2023-06-26 13:41:08 +08:00
Kota
6f803ec9a9
fix: use of ioutil package (#5261)
* fix ioutil.NopCloser

* fix ioutil.ReadAll

* fix ioutil.ReadFile

* fix ioutil.WriteFile

* run goimports -w -format-only ./

* update CHANGELOG.md
2023-06-25 18:48:23 +08:00
Deng Ming
3673a322a6 closes 5254: %COL% should be a common placeholder 2023-06-20 17:21:40 +08:00
Deng Ming
bc63be6d13 fix 5255: Check the rows.Err() if rows.Next() is false 2023-06-20 16:07:23 +08:00
Deng Ming
34c5f1d54d Merge branch 'develop' of github.com:beego/beego into develop 2023-06-08 23:51:55 +08:00
Deng Ming
059c504132 orm: refactor ORM introducing internal/models pkg 2023-06-08 22:46:28 +08:00
guoguangwu
1c574a893e chore: unnecessary use of fmt.Sprintf 2023-06-08 13:39:02 +08:00
Deng Ming
3e96b23551 httplib: fix unstable test, do not use httplib.org 2023-06-04 14:32:51 +08:00
cui fliter
53d9e8be69
fix some comments (#5194)
Signed-off-by: cui fliter <imcusg@gmail.com>
2023-05-21 13:48:06 +08:00
Deng Ming
5ade9fa025 format code 2022-12-23 11:31:00 +08:00
王哈哈
1bb607b286
Modify comment syntax error (#5094) 2022-11-10 18:22:37 +08:00
Regan Yue
493e7db20b
refine comments for for four files (#5011)
* refine comments for cache.go

* refine comments for log.go

* Update orm.go

* refine comments for orm_log.go,types.go

* Update utils.go

* Update doc.go

* Update db.go
2022-07-09 18:10:19 +08:00
Ming Deng
5a873ea0f0
Merge pull request #4950 from Dokiys/feature/orm_otel_filter
Feat: add orm opentelemetry filter
2022-05-30 23:20:55 +08:00
Dokiy
f2c28be167 feat: add orm opentelemetry filter 2022-05-29 21:47:53 +08:00
Ming Deng
daf779ffca
Merge pull request #4953 from greenhandatsjtu/feat/refactor-orm
Refactor ORM: rename _modelCache struct to modelCache
2022-05-22 16:36:20 +08:00
greenhandatsjtu
ada107b3fe refine unit tests for getDbCreateSQL 2022-05-21 19:55:33 +08:00
greenhandatsjtu
f9d2b4cb9a Refactor ORM: rename _modelCache struct to modelCache 2022-05-21 10:06:31 +08:00
greenhandatsjtu
a539289b20 Add unit test for getDbCreateSQL() 2022-05-19 14:26:23 +08:00
greenhandatsjtu
d150d85bfd Append column comments to create table sentence when using postgres 2022-05-14 15:17:38 +08:00
Deng Ming
3e886f71ca replace beego.me with beego.vip 2021-11-29 21:29:29 +08:00
snehalyelmati
e16fcd46ba SCC-S1023 Redundant control flow fix 2021-10-20 20:36:35 +05:30
Cr
b1fbaa71c3
refactor: fix deepsource analyze 2021-09-07 09:51:33 +08:00
Cr
47f9746e11
refactor: fix deepsource analyze 2021-09-07 09:43:27 +08:00
Cr
7abf5669e4
refactor(wip): fix deepsource analyze 2021-09-06 16:48:22 +08:00
Cr
915cdb94bc
refactor(wip): fix deepsource analyze 2021-09-06 16:04:03 +08:00
Cr
d6866b6b2e
refactor(wip): fix deepsource analyze 2021-09-06 14:05:19 +08:00
Cr
0e9b2c27ea
fix(orm): txOrm miss debug log 2021-09-03 14:23:09 +08:00
Ming Deng
4437c6eb11 merge master 2021-09-03 11:40:13 +08:00
Ming Deng
745dcf1ead Merge pull request #4740 from zh199225/develop
set a default value "/" for "Path" in the Cookie function when there is not parameter "Path" or the parameter is ""
2021-08-20 19:38:18 +08:00
Ming Deng
d91a22c453 Fix 4734: do not reset id in Delete function 2021-08-19 21:45:33 +08:00
Anker Jam
167749d464 hotfix:reflect.ValueOf(nil) in getFlatParams 2021-08-06 00:23:06 +08:00
jianzhiyao
8e8c02ba7b fix 2021-08-05 11:13:14 +08:00
jianzhiyao
48538d5a02 add table 2021-08-05 11:08:30 +08:00
jianzhiyao
d9f8c03085 fix format 2021-08-05 11:03:05 +08:00
jianzhiyao
61d801c21e fix format 2021-08-05 11:02:13 +08:00
jianzhiyao
d8c4b0fc85 add test example 2021-08-05 10:58:17 +08:00
jianzhiyao
0f40824f57 fix bug:reflect.ValueOf(nil) in getFlatParams 2021-08-05 10:42:54 +08:00
zav8
aff59f65fb
Fix orm.SetMaxOpenConns
It should call `SetMaxOpenConns` instead of `SetMaxIdleConns`.
2021-06-29 11:03:34 +08:00
LinXiaoYi
1252b520ae fix sonar problems about regular expression 2021-06-26 00:35:34 +08:00
loyalsoldier
c61ae2d3e1
Fix: remove unnecessary break statements 2021-06-17 03:36:48 +08:00
t29kida
4eb19f938a fix sonar problem
* Delete FIXME comment, because `string == ""` is beter than `len(string)` for checking string existence(by sonar)
* Remove duplicated code
* Fill empty block of code
2021-06-09 19:42:18 +09:00
loyalsoldier
1b8c801ec6
Fix lint and format code in client/orm dir 2021-06-06 20:52:38 +08:00
t29kida
de65d82701 fix sonar problem
* replace min limit value with const values
* remove duplicated testcase and add testcase
* put together switch case statement
* fill empty block of code
2021-05-31 18:38:37 +09:00
loyalsoldier
91d993b7e2
Fix imports by gci 2021-05-19 22:28:05 +08:00
loyalsoldier
2b7401109f
Chore: format code 2021-05-19 22:27:17 +08:00
Yu Huang
11dc5484ad Update orm_test.go/TestInsertOrUpdate with table-driven.
Update CHANGELOG

fix lint
2021-05-17 06:47:23 -04:00