Commit Graph

799 Commits

Author SHA1 Message Date
Sany
e007bf35b2
parseConfigNodeLink support Chinese database name #2231 (#2238) 2022-12-22 17:33:51 +08:00
HaiLaz
0a76b9c61b
fix invalid UpdatedAt usage in soft deleting feature for package gdb (#2323) 2022-11-24 21:23:15 +08:00
houseme
38a858d7d3
change result data type of function Count from int to int64 for package gdb (#2298)
* feat: modify model count value int64

* fix

* fix:modify int64

* fix
2022-11-17 19:47:17 +08:00
John Guo
73dc8c9c4b
fix cache issue in Count/Value functions for gdb.Model (#2300)
* add Tag* functions to retreive most commonly used tag value from struct field for package gstructs; use description tag as default value if brief is empty for gcmd.Argument

* fix cache issue in Count/Value functions for gdb.Model

* add more ut case for package gdb

* version updates
2022-11-16 10:04:49 +08:00
John Guo
91b94878d3
fix used schema not change in nested transaction when used different schemas (#2279)
* fix used schema not change in nested transaction between different schemas

* up

Co-authored-by: houseme <housemecn@gmail.com>
2022-11-10 09:55:08 +08:00
houseme
d37b75442d
feat: modify sql count value int64 (#2266) 2022-11-07 17:52:25 +08:00
John Guo
c4a5b8ca94
fix issue 1915 and repeated link instance key for package gdb (#2250)
* fix issue #1915

* fix issue in repeated link instance key

* add configuration item Namespace for package gdb

* up

* up

* fix: pgsql list table names (#2255)

Co-authored-by: Gin <qinyuguang@gmail.com>
2022-11-03 20:22:36 +08:00
John Guo
ab79134309
add schema name in debug logging content; add master-slave ut case for package gdb (#2249)
* add schema name in debug logging content; add master-slave ut case for package gdb

* add schema name in debug logging content; add master-slave ut case for package gdb
2022-11-02 21:55:58 +08:00
houseme
1793bf0863
add golangci feature to guarantee codes quality (#2229) 2022-11-01 20:12:21 +08:00
zhonghuaxunGM
ce8b536fca
Parse database empty json field to empty object( fix issue 2105 ) (#2213)
* Parse database empty json field to empty object( fix issue 2105 )

* fix issue #2105

Co-authored-by: Xu <zhenghao.xu>
Co-authored-by: John Guo <john@johng.cn>
2022-10-18 19:13:55 +08:00
John Guo
1c5fd1a1f7
improve ut cases for package contrib/drivers/mysql (#2216)
* improve ut cases for package contrib/drivers/mysql

* improve logging for database Open
2022-10-17 15:43:22 +08:00
John Guo
c6a02b850d
fix issue #1934 (#2193) 2022-10-13 19:13:10 +08:00
John Guo
4ebe4233fc
fix issue of OmitEmptyWhere in Builder for package gdb (#2195) 2022-10-12 20:30:47 +08:00
John Guo
7cb5fbe684
fix issue #1965 (#2177) 2022-10-08 21:42:30 +08:00
glennliao
d7ae5624c8
fix issue #1965 (#2174)
Co-authored-by: houseme <housemecn@gmail.com>
2022-10-08 19:36:05 +08:00
John Guo
6cd84e8276
fix configuration management for package gdb (#2163) 2022-09-30 15:41:51 +08:00
John Guo
ceaeceadd9
add local db configuration support for package gdb (#2161)
* version updates

* add local db configuration support for package gdb

* add local db configuration support for package gdb

* add local db configuration support for package gdb
2022-09-29 11:58:03 +08:00
John Guo
66aa0c7050
add switch of brief stack for package gerror (#2153) 2022-09-27 10:11:33 +08:00
John Guo
141ca62c6d
feature/v2.2.0 (#2154) 2022-09-26 22:11:13 +08:00
John Guo
c083b333d8
fix field type check for package gdb (#2086)
* CI updates

* fix field type check for package gdb
2022-08-26 14:30:33 +08:00
John Guo
e4c8cfc16b
add interface DB.CheckLocalTypeForField for package gdb (#2059) 2022-08-11 21:47:35 +08:00
Gin
4ded89d453
improve gdb.CheckValueForLocalType for pgsql (#2040) 2022-08-08 19:56:06 +08:00
John Guo
9df0a9da0a
fix issue #1648 (#2033) 2022-07-28 10:11:15 +08:00
John Guo
863bea1ad1
improve field type check from db to golang (#2023) 2022-07-22 16:44:24 +08:00
John Guo
675ae9bade
fix concurrent safety for package gdb (#1998) 2022-07-12 21:26:18 +08:00
laushunyu
3e7e8ba6f2
fix(gdb): panic when concurrent db config map read and write. (#1997) 2022-07-12 19:31:22 +08:00
John Guo
f876a56d2a
some improves for ci yaml and package cmd/gf, database/gdb (#1972) 2022-07-07 21:16:26 +08:00
jinmao88
13fc0cb9eb
feat: pgsql 字段类型 支持 数组类型 (#1881) 2022-07-06 21:06:20 +08:00
whosafe
80442efe94
redis add sentinel slaveOnly filed (#1948) 2022-07-06 19:54:36 +08:00
long
19779cd342
Fix multiple gdb-group overrides (#1890)
Co-authored-by: longl <longlei@dealmap.cloud>
2022-06-23 21:30:29 +08:00
John Guo
1b327b8abd improve database configuration parsing for package gins/gdb 2022-06-20 12:07:51 +08:00
John Guo
1597291ac3 improve configuration parsing for package gdb 2022-06-17 15:35:55 +08:00
John Guo
cbf5ee9649 go fmt -w 2022-06-16 18:02:51 +08:00
John Guo
8ac177a6de improve UT for package gredis 2022-06-16 17:41:15 +08:00
John Guo
4505d61604 improve WhereBuilder feature for package gdb 2022-05-25 21:52:08 +08:00
John Guo
04d32e7a91 improve FieldsPrefix for gdb.Model 2022-05-25 16:22:46 +08:00
John Guo
6a01275499 improve data converting for package gdb 2022-05-19 21:44:53 +08:00
John Guo
7753fc6fe1 improve error message for package gdb 2022-05-19 17:27:13 +08:00
John Guo
3430cf1f17 improve data converting for package gdb, drivers/pgsql 2022-05-18 11:55:09 +08:00
John Guo
4556dda038 improve data converting for package gdb, drivers/pgsql 2022-05-18 11:16:25 +08:00
John Guo
49042d480c improve data converting for package gdb, drivers/pgsql 2022-05-18 11:05:05 +08:00
John Guo
6cf6414da2 improve package gdb 2022-05-10 16:31:56 +08:00
John Guo
dc6a9237d7 move ut cases from package gdb to contrib/drivers/mysql 2022-05-10 15:38:08 +08:00
John Guo
583d576cdb remove octal number converting for gconv.Int*/Uint* functions; fix issue #1733 2022-05-09 21:26:42 +08:00
John Guo
3db97ba0dd fix issue #1714, #1727 2022-05-09 20:42:41 +08:00
John Guo
e81d6a859b
Merge pull request #1729 from WesleyWu/fix#1714
fix timezone bug when persisting *gtime.Time to db #1714
2022-05-09 20:28:00 +08:00
John Guo
534abb7f17 improve hook feature for package gdb 2022-05-09 14:22:28 +08:00
John Guo
03ad6a5728 remove debug info for UT of package gdb 2022-05-07 17:50:49 +08:00
John Guo
c90f91dcbe remove Sharding feature 2022-05-07 16:38:17 +08:00
John Guo
5332ce4c79 improve WhereBuilder feature for package gdb 2022-05-07 15:11:31 +08:00
John Guo
eaae7f46d2 improve WhereBuilder feature for package gdb 2022-05-07 14:26:56 +08:00
John Guo
8c40a53b80 improve WhereBuilder for package gdb 2022-05-06 22:21:43 +08:00
John Guo
68e75c589b add WhereBuilder feature for package gdb 2022-04-30 15:53:56 +08:00
John Guo
ae5891068e schema switch in runtime feature for clickhouse/mssql/pgsql/oracle 2022-04-27 17:15:26 +08:00
John Guo
f326dc4eaa remove unused imports for package gdb 2022-04-27 15:27:44 +08:00
John Guo
7fd0e5b3bc fix issue in loosing internal ctx data in cache feature for package gdb 2022-04-19 10:42:16 +08:00
John Guo
64ff651d57 fix issue in loosing internal ctx data for Transaction for package gdb; fix issue #1732 2022-04-19 10:22:10 +08:00
John Guo
e119f2a534 improve cache handlement for package gdb 2022-04-18 20:29:24 +08:00
John Guo
a09c8497bc Merge branch 'develop' of https://github.com/gogf/gf into develop 2022-04-18 20:28:14 +08:00
John Guo
ebad3eb93e error meesage update for package gdb; remove default batch number for batch insert statement for package gdb 2022-04-18 20:28:00 +08:00
qinyuguang
c5bf45f1ae fix issue #1755 2022-04-13 21:49:08 +08:00
John Guo
ee29b28575 improve clickhouse driver 2022-04-12 21:31:51 +08:00
John Guo
7785082f19 Merge branch 'master' of https://github.com/gogf/gf into develop 2022-04-12 21:17:32 +08:00
John Guo
edf40ba430
Merge pull request #1616 from DGuang21/feature-clickhouse-driver
Feature - clickhouse driver
2022-04-12 21:14:12 +08:00
John Guo
190a53647e fix issue #1701 2022-04-11 20:38:48 +08:00
John Guo
f9a3fa3c23 fix issue #1700 2022-04-11 17:58:07 +08:00
John Guo
f1fee72d6d fix issue #1700 2022-04-08 18:11:17 +08:00
John Guo
0b4ae6b116 add UpdateAndGetAffected for gdb.Model 2022-04-08 17:22:07 +08:00
daguang
a1ec7cb896 improve clickhouse driver 2022-04-08 10:08:04 +08:00
daguang
1935412db9 improve clickhouse driver 2022-04-08 10:07:14 +08:00
daguang
c90a9d45ee improve clickhouse driver 2022-04-08 09:44:42 +08:00
daguang
c39a58f812 improve clickhouse driver 2022-04-04 14:56:44 +08:00
daguang
5034f231a9 improve clickhouse driver 2022-04-04 12:46:11 +08:00
wumengye
1a271ce627 fix timezone bug when persisting *gtime.Time to db #1714 2022-04-03 16:00:19 +08:00
John Guo
52d8371ba9 add UT case for package gdb 2022-03-31 21:40:28 +08:00
daguang
1d74b58d36 Merge branch 'master' of https://github.com/DGuang21/gf into feature-clickhouse-driver 2022-03-31 21:29:17 +08:00
John Guo
66803fd664 fix issue in package gdb 2022-03-31 16:57:32 +08:00
John Guo
05508e4fcb improve cache feature for package gdb 2022-03-31 16:15:44 +08:00
John Guo
372bae4799 fix issue in missing first result column when in select cache scenario 2022-03-31 15:42:12 +08:00
John Guo
21f48d3750 improve Unique function performance for normal arrays 2022-03-30 14:32:16 +08:00
John Guo
09ba1bf1fb imrove context handling for package gdb 2022-03-24 17:51:49 +08:00
John Guo
cc01629b57 improve hook and sharding feature for package gdb 2022-03-24 15:33:30 +08:00
John Guo
0e3f4f45e0 improve hook feature for package gdb 2022-03-23 16:23:33 +08:00
John Guo
045c3e132f improve hook feature for package gdb 2022-03-23 16:17:18 +08:00
John Guo
6dacdd60dc add sharding feature for package gdb 2022-03-21 21:17:48 +08:00
John Guo
87ccc27ee4 sharding feature develop 2022-03-21 14:26:56 +08:00
John Guo
950695664c improve hook feature for package gdb 2022-03-19 23:38:57 +08:00
John Guo
d7764e2968 Merge branch 'develop' 2022-03-18 11:52:02 +08:00
John Guo
e6bbead4e6
Merge pull request #1660 from qinyuguang/gdb_cache
gdb returns result when cache set failed
2022-03-17 22:05:06 +08:00
John Guo
bceb5fc7de rename gdebug.TestData* -> gtest.Data*; add UT case for http server 2022-03-17 16:58:04 +08:00
John Guo
dccfc1c8cd add hook feature for model of package gdb 2022-03-14 23:47:55 +08:00
John Guo
d32246275a rename DoGetAll to DoSelect 2022-03-14 19:41:32 +08:00
John Guo
bbab9f3934 rename DoGetAll to DoSelect 2022-03-14 19:36:43 +08:00
qinyuguang
a4ab9c284f gdb returns result when cache set failed 2022-03-11 13:04:53 +08:00
John Guo
d8d9996464 fix issue #1662 2022-03-11 10:24:42 +08:00
John Guo
ba7cbfe3d9 error message update for database driver import 2022-03-10 14:29:49 +08:00
John Guo
546b6b1724 t.Assert(err, nil) -> t.AssertNil(err) 2022-03-10 11:36:40 +08:00
John Guo
1625fc6f7e improve order feature for gdb.Model 2022-03-09 21:02:08 +08:00
John Guo
ac71658b4b
Merge branch 'master' into feature-groupRaw 2022-03-09 20:55:06 +08:00
John Guo
61db7d96b7
Merge pull request #1520 from FlyingBlazer/patch-1
Fix gdb Order
2022-03-09 20:48:54 +08:00
Daguang
fe353c5fe3
Merge branch 'gogf:master' into feature-clickhouse-driver 2022-02-24 10:12:05 +08:00
daguang
008e5ea196 improve clickhouse driver 2022-02-23 22:53:28 +08:00
daguang
157e936f24 improve clickhouse driver 2022-02-23 22:51:37 +08:00
John Guo
afa58ed45b fix issue #1227 #1617 2022-02-22 10:43:31 +08:00
daguang
455d724c01 improve clickhouse driver 2022-02-19 23:10:31 +08:00
daguang
ea60f7e054 improve clickhouse driver 2022-02-19 17:49:53 +08:00
daguang
daf2b649ef improve clickhouse driver 2022-02-19 16:59:17 +08:00
daguang
aa87d234e3 improve clickhouse driver 2022-02-19 15:09:44 +08:00
John Guo
7812f41b43 fix issue #1219 2022-02-17 23:04:50 +08:00
John Guo
17d7c92b9d fix issue #1217 2022-02-17 22:42:33 +08:00
John Guo
77fc8866bf fix issue #1567 2022-02-16 01:12:22 +08:00
John Guo
5ab959ba58 fix issue #1554 2022-02-16 00:26:06 +08:00
John Guo
86b90ed4b6 enhancement from #1552 2022-02-15 23:55:05 +08:00
John Guo
37c6320dd7 fix issue #1530 2022-02-15 23:04:37 +08:00
John Guo
f0b78253b2 fix issue #1605 2022-02-15 01:10:03 +08:00
John Guo
14268aa1c0 fix issue #1405 2022-02-14 16:33:07 +08:00
John Guo
23c00eb83f fix issue #1394 2022-02-14 16:08:26 +08:00
John Guo
1f9d86f015 improve configuration read from package frame/gins 2022-02-14 11:46:20 +08:00
John Guo
1fb9be0628 improve trace feature for package gdb/gredis; add trace example cases 2022-02-09 02:49:29 +08:00
John Guo
af39eb4c9f CI update; Example update for package gcache 2022-02-08 23:13:33 +08:00
John Guo
bd4948c084 fix UT case for package gdb 2022-02-08 16:38:10 +08:00
John Guo
88b124b29a UT cases for package gdb 2022-02-08 14:43:39 +08:00
John Guo
04eb654133 add error stack for internal error printing 2022-01-28 14:51:49 +08:00
John Guo
65d1648c30 improve seconds unit support in configuration for package gredis 2022-01-22 13:48:09 +08:00
John Guo
a4d80bf743 move db drivers to github.com/gogf/gf/gdb-drivers 2022-01-21 18:06:35 +08:00
John Guo
a15ec0d677 expose attributes of struct Result for package gdb 2022-01-21 17:43:00 +08:00
John Guo
7e5301c845 expose insert option constants for package gdb 2022-01-21 17:31:48 +08:00
John Guo
5760289d2a
Merge pull request #1574 from qinyuguang/gdb_ping
gdb Ping with context
2022-01-21 12:13:39 +08:00
John Guo
3bbbe1db9c change pointer receiver that implements interface MarshalJSON to struct receiver for all packages 2022-01-19 16:55:57 +08:00
John Guo
9345eb5e94 dto -> do for package gdb 2022-01-17 21:10:58 +08:00
fanwei
658ca8c0fd Eg 2022-01-17 17:14:40 +08:00
qinyuguang
ee1585fb24 gdb Ping with context 2022-01-17 15:58:31 +08:00
John Guo
d32acabcef fix issue #1570 2022-01-15 21:38:15 +08:00
John Guo
b0b1b61280
Merge pull request #1555 from larryclean/master
修改gdb cache的key为gcache:md5(sql)方式
2022-01-13 21:29:55 +08:00
qinyuguang
eaeb8e03ab gdb pgsql skip dropped fields 2022-01-13 14:20:01 +08:00
John Guo
e5613e8690 improve function New for creating db by specified configuration node 2022-01-12 21:57:46 +08:00
larry
9abaf744f2 edit imports sort 2022-01-10 10:02:03 +08:00
fanwei
d30862373e 修正测试数据库配置 2022-01-07 22:25:00 +08:00
fanwei
ee4ca43bd5 Safe() 2022-01-07 22:21:18 +08:00
刘杨
3bed3e4f5b
修改gdb cache的key为gcache:md5(sql)方式 2022-01-07 22:14:47 +08:00
fanwei
0dc1adb672 orderBy raw() 2022-01-07 21:06:49 +08:00
Yu Zhan
47cefbf6d7 允许多次调用Order 2022-01-05 11:53:50 +08:00
John Guo
99455e328b
Merge pull request #1535 from starccck/master
support manipulate pg.Array type data
2022-01-04 21:24:44 +08:00
John Guo
0a7e4be4ef improve DoCommit for package gdb 2022-01-01 15:47:17 +08:00
starccck
f04715bccb support manipulate pg.Array type data 2021-12-29 00:13:22 +08:00
John Guo
3932e0b15f add OmitEmpty support for WhereIn 2021-12-28 17:15:01 +08:00
John Guo
b00de2c617 add gdb.DB.DoFilter; improve function gdb.DB.DoCommit for package gdb 2021-12-27 20:51:26 +08:00
John Guo
b79e4a3ab7 add interface function ConvertDataForRecord for gdb.DB 2021-12-23 22:00:28 +08:00
John Guo
b9bb1ecd46 Merge branch 'master' of https://github.com/gogf/gf into feature/v2-gerror 2021-12-22 22:29:02 +08:00
John Guo
2a8e2f9f2c
Merge pull request #1524 from houseme/master
feat:improve tracing
2021-12-22 22:26:15 +08:00