Ming Deng
95a8a61d2b
fix 5530: use orm.DebugLog ( #5532 )
...
* fix 5500: querySet should not be changed when constructing SQL
* fix 5530: use orm.DebugLog
2023-11-27 23:43:59 +08:00
Ming Deng
e4b67e86ee
fix 5500: querySet should not be changed when constructing SQL ( #5502 )
2023-10-06 19:48:10 +08:00
Uzziah
b2a37fe60e
fix: refactor Count method ( #5300 )
...
* fix: refactor Count method and add test
* fix: add the change record into the CHANGELOG.md
* fix: refactor the readSQL method and let countSQL reuse readSQL method
* fix: fix the bug in the construction process of the order by clause
* fix: modify the TestCountOrderBy、add the TestCount and TestOrderBy
* fix: move the change record in CHANGELOG.md to developing
---------
Co-authored-by: Ken <azai8599@163.com>
2023-09-12 00:18:04 +08:00
Uzziah
4eea71f1d7
fix: refactor readBatchSQL and readValuesSQL method to reuse readSQL ( #5303 )
...
* fix: refactor readBatchSQL and readValuesSQL method to reuse readSQL and add test of the readValuesSQL method
* fix: add the change record into the CHANGELOG.md
* fix: fix the bug for preprocess cols
* fix: resolve the conflict with develop
---------
Co-authored-by: Ken <azai8599@163.com>
2023-08-29 20:56:51 +08:00
Ming Deng
2d0da431cb
refactor: move the modelCache to internal/models package ( #5306 )
2023-08-28 21:10:31 +08:00
Uzziah
e9d3357643
fix: refactor ReadBatch method ( #5298 )
2023-08-23 18:35:17 +08:00
Uzziah
46a00d3592
fix: refactor InsertOrUpdate method in dbBase ( #5296 )
...
* fix: refactor InsertOrUpdate method in dbBase and add the test
* fix: add the change record to the CHANGELOG.md
2023-08-18 20:47:24 +08:00
Uzziah
a5eda3267a
fix: refactor UpdateBatch method ( #5295 )
2023-08-14 14:25:26 +08:00
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
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
王哈哈
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
greenhandatsjtu
f9d2b4cb9a
Refactor ORM: rename _modelCache struct to modelCache
2022-05-21 10:06:31 +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
loyalsoldier
1b8c801ec6
Fix lint and format code in client/orm dir
2021-06-06 20:52:38 +08:00
Penghui Liao
21777d3143
Add context support for orm
...
Signed-off-by: Penghui Liao <liaoishere@gmail.com>
2021-01-10 23:50:11 +08:00
AllenX2018
30dbf8fc3a
1.support dynamic registration model
...
2.support aggregete func
2021-01-04 16:29:03 +08:00
Ming Deng
d4da82ef77
format code
2020-12-14 12:34:55 +08:00
Ming Deng
7bc6010604
rename to v2
2020-12-14 11:12:00 +08:00
Ming Deng
a70f7fc920
using new organization
2020-12-13 23:09:19 +08:00
Ming Deng
14c1b76569
remove pkg directory;
...
remove build directory;
remove githook directory;
2020-10-08 18:29:36 +08:00