Commit Graph

466 Commits

Author SHA1 Message Date
John Guo
e6b4662ec2 improve tracing feature 2021-02-01 17:10:50 +08:00
John Guo
6e4e1abf1e improve tracing by adding constants for attribute and event names 2021-01-27 20:25:57 +08:00
John Guo
2c15aad0e7 add common tracing labels 2021-01-27 19:50:32 +08:00
John Guo
8f6f17c341 add common tracing labels 2021-01-27 19:15:14 +08:00
jianchenma
f2fe084988 improve tracing feature 2021-01-27 13:28:12 +08:00
John Guo
1c93c2b000 merge develop 2021-01-26 21:19:43 +08:00
jianchenma
c72c7dbe9a improve tracing feature 2021-01-26 16:06:20 +08:00
jianchenma
52c17dfce0 add example for tracing feature 2021-01-26 14:33:35 +08:00
jianchenma
0baa52afee improve statement features for package gdb 2021-01-26 11:09:50 +08:00
jianchenma
4c6d9f5eff improve tracing feture for package glog/gdb/gredis 2021-01-26 01:19:55 +08:00
jianchenma
99dd889ff0 add tracing feature for package gredis 2021-01-25 21:59:44 +08:00
jianchenma
b89d8d2740 add tracing feature for package gdb 2021-01-25 21:17:32 +08:00
John Guo
9f2e69a9e6 improve model relation feature for package gdb 2021-01-25 00:04:01 +08:00
jflyfox
2dd2144dcd improve unit testing case for package gdb/gcron 2021-01-24 21:52:34 +08:00
jflyfox
a5f53f158a improve unit testing case for package gcron; improve package gdb; 2021-01-23 01:01:24 +08:00
jflyfox
2c7a257b5a remove parseTime parameter for mysql driver for package gdb 2021-01-22 23:49:17 +08:00
jflyfox
f579c724c6 fix issue in batch number for package gdb 2021-01-22 23:21:29 +08:00
John Guo
0fb32b63e7 add signal handler feature for package gproc; improve package ghttp/g for signal listening feature 2021-01-21 21:14:17 +08:00
jflyfox
59285709a6 fix issue in filds filter in join statements for package gdb 2021-01-20 13:09:59 +08:00
John Guo
333e5b27aa add more unit testing case for package gdb 2021-01-19 21:08:01 +08:00
John Guo
093034acd1 copyright comment update 2021-01-17 21:46:25 +08:00
John Guo
a9aa021914 add json tag for configuration struct for package gdb/gredis/ghttp/glog/gview 2021-01-12 00:42:33 +08:00
John Guo
2ae32ed2c2 add QueryTimeout/ExecTimeout/TranTimeout/PrepareTimeout for package gdb 2021-01-11 20:48:35 +08:00
John Guo
6f5b0c393e add more unit testing case for package gdb 2021-01-11 19:30:22 +08:00
John Guo
bb2dad6d5e improve package gdb of empty value handling for struct convertion 2021-01-09 23:02:16 +08:00
John Guo
92b791eb08 improve Struct convertion for package gdb; improve IsNil function for package internal/empty 2021-01-09 21:05:47 +08:00
jflyfox
7bc42e6eaa improve Fields filtering for package gdb 2021-01-04 19:46:46 +08:00
jflyfox
b6b1bc8813 improve time converting for package gconv 2021-01-04 19:22:55 +08:00
jflyfox
d549311210 fix issue in uint testing case for package gdb 2021-01-04 13:04:57 +08:00
John Guo
4d962c5aa5 improve packge gdb for treat int8 as int64 for pgsql 2021-01-03 23:44:44 +08:00
John Guo
5629020538 fix issue in incorrect datetime string argument for oracle 2021-01-02 21:06:51 +08:00
John Guo
361742c4a0 fix issue in incorrect datetime string argument for oracle 2021-01-02 20:31:25 +08:00
John Guo
bdf23ef48f fix issue of error code lost in middleware handling for package ghttp 2020-12-30 12:56:24 +08:00
jflyfox
820befa1a0 improve insert function for package gdb 2020-12-29 20:30:29 +08:00
jflyfox
662f1ed6b7 add Query/Exec/Prepare back for gdb.Link 2020-12-29 14:01:49 +08:00
jflyfox
bfab4a4952 comment updates for package gdb 2020-12-29 13:30:15 +08:00
John Guo
4828ddcdd7 add example/unit testing cases for package gdb 2020-12-29 00:01:27 +08:00
John Guo
d25a3909d1 improve context feature for package gdb 2020-12-28 23:03:13 +08:00
John Guo
c893817e56 Merge branch 'master' of https://github.com/gogf/gf 2020-12-27 00:12:34 +08:00
John Guo
65785db659 improve Model.Data for shallow value copy for value type of map/slice 2020-12-27 00:11:26 +08:00
tiansin
95b09aa5fe feat: 🐛 fix GetWhereConditionOfStruct where AND 2020-12-25 16:03:01 +08:00
John Guo
9b58b66172 fix issue of HAVING statement before ORDER BY 2020-12-14 23:34:23 +08:00
John Guo
cb2c9c43a8 rename constant names 2020-12-14 19:34:02 +08:00
dozysun
71444736ae
fix InsertIgnore didn't work
fix InsertIgnore didn't work
2020-12-10 14:40:58 +08:00
jflyfox
7316e6648f change errors to gerror; update copyright in comment 2020-12-09 16:04:29 +08:00
John Guo
d2ae383b83 improve unit testing case for package gdb 2020-12-09 01:33:02 +08:00
John Guo
8978112433 add gdb.Raw for raw sql instead of prepare argument feature 2020-12-09 01:29:23 +08:00
John Guo
d2b65f0f91 add gcmd.GetWithEnv/genv.GetWithCmd; remove package cmdenv; 2020-12-04 23:44:54 +08:00
jianchenma
57a82ebcc0 improve gconv.Struct 2020-12-04 18:17:11 +08:00
Jack
5171250a9d improve gutil.Keys,gdb.Model.Fields,internal/structs 2020-12-04 14:22:50 +08:00
John
790a651ac1 fix typo 2020-11-29 23:55:32 +08:00
John
6f93bd17f2 add context feature for package gdb 2020-11-29 23:54:38 +08:00
John
3419d66c4b add context feature for package gdb 2020-11-29 23:50:16 +08:00
John
cabf684ec9 add context feature for package gdb 2020-11-29 23:47:57 +08:00
John
2b6e6ce28e improve update counter feature for package gdb 2020-11-29 22:26:16 +08:00
John
32101189a2 Merge branch 'master' of https://github.com/gogf/gf into develop 2020-11-29 21:46:36 +08:00
sunmoon
6cb38cfa92 add update counter method for package gdb. 2020-11-28 14:56:21 +08:00
sunmoon
09bb0c9397 更新gdb.Update方法 2020-11-28 13:52:17 +08:00
John
55429ad589 fix data race issue in unit testing case of package gdb 2020-11-28 00:11:22 +08:00
John
9592fb099f Change time string argument wrapping with TO_DATE function for DriverOracle in package gdb 2020-11-27 23:11:55 +08:00
John
18ec6116ad improve time argument timezone handling for package gdb 2020-11-27 22:51:34 +08:00
Jack
9d0f306684 improve time argument timezone handling for package gdb 2020-11-27 21:03:22 +08:00
Jack
3eba8d690f add TimeMaintainDisabled configuration for automatic time maintaining feature 2020-11-27 13:28:18 +08:00
Jack
c0b59007ce improve configuration for package gdb 2020-11-27 13:24:05 +08:00
John
3485ba2a5d improve package gtime 2020-11-26 22:40:55 +08:00
John
43ecfc7484 Merge branch 'develop' of https://github.com/gogf/gf into develop 2020-11-26 22:12:48 +08:00
John
5ba53e56c9 improve join feature for sub-query for gdb.Model 2020-11-26 22:11:58 +08:00
John Guo
af1d14ace6
Merge pull request #1021 from tiansin/develop
fix: 🐛 fix model chunk page
2020-11-26 21:40:45 +08:00
John
0c0e902b07 if CreatedAt/UpdatedAt/DeletedAt field name configured, just use it, ignore the default field names 2020-11-26 20:17:24 +08:00
John
750b53d7aa improve debug infor for argument of time.Time for package gdb 2020-11-26 19:53:44 +08:00
tiansin
69b5873bf9 fix: 🐛 fix model chunk page 2020-11-26 14:26:32 +08:00
John
fadb7a8f8f fix issue 1002 2020-11-21 13:20:32 +08:00
John
e1bfe90833 improve package gdb for structire retrieving in transaction operations 2020-11-21 12:24:32 +08:00
John
042dc0b33f improve package gdb for structire retrieving in transaction operations 2020-11-21 11:42:50 +08:00
John
e20183e7a1 improve gutil.Keys/Values for embedded struct 2020-11-20 00:53:12 +08:00
John
bfcf133c91 improve sqlite.Open 2020-11-19 20:37:27 +08:00
Jack
24a377d3a8 fix issue in custom mapping for gconv.Struct 2020-11-19 14:52:19 +08:00
John
17a11187b0 fix issue in gdb.Model.Fields 2020-11-18 00:32:09 +08:00
John
7caf7976cf add gdb.Model.Args 2020-11-18 00:16:34 +08:00
John
c273ce576b add default configuration for MaxOpenConnCount for package gdb 2020-11-10 21:19:15 +08:00
Jack
f8d57096a8 add slice parameter support for gdb.Model.Where 2020-11-10 13:43:12 +08:00
Jack
d7542e87ae improve gdb.Model.Count 2020-11-10 10:37:42 +08:00
John
e06b62ecf2 add default value from struct tag for ghttp.Request 2020-11-08 15:44:04 +08:00
John
d178102f82 remove third party package 'structs'; improve performance for package internal/structs 2020-11-08 14:25:17 +08:00
John
1edc1f35fb add individual cache for package gdb/gfile 2020-11-07 20:00:35 +08:00
John
9cb88bca5a improve fields quoting for gdb.Model 2020-11-06 21:32:10 +08:00
John
9ae8a7ca33 improve Fields/FieldsEx by adding support for map/struct parameters for gdb.Model 2020-11-06 20:52:16 +08:00
John
f4da179140 there should be WHERE statement in Update/Delete operations 2020-11-06 00:00:41 +08:00
John
9f04e46166 mark gconv.StructDeep/StructsDeep deprecated 2020-11-05 23:02:29 +08:00
John
c056fd2a06 improve word quoting for function FieldsEx 2020-11-04 19:53:50 +08:00
Jack
4ae89dc9f6 improve package internal/structs 2020-10-30 22:04:34 +08:00
Jack
ebb8d8a2f7 fix issue in 2020-10-27 10:40:47 +08:00
Jack
561a541fa1 add custom CreatedAt/UpdatedAt/DeletedAt filed name configuration for package gdb 2020-10-20 21:01:39 +08:00
John
dd5cd31ef5 add automatic data key to field name mapping feature for package gdb 2020-10-17 18:16:13 +08:00
John
261216f5e4 improve structure sql for package gdb 2020-10-12 23:22:56 +08:00
John
f88b799d67 add more unit testing case for package gdb 2020-10-11 22:21:03 +08:00
John
9c48dd172c add auto-json support for slice/struct attribute for data inserting of package gdb 2020-10-10 17:29:38 +08:00
John
09ce105eee improve gdb.Model.Fields/FieldsEx for package gdb 2020-10-10 14:00:10 +08:00
John
1b40d6a53a do tx.Rollback if there's panic in gdb.Transaction 2020-10-09 23:42:33 +08:00
John
849874a247 improve adapter definition for package gcache 2020-10-09 20:59:49 +08:00
John
9943966a86 improva function formatSql for package gdb 2020-09-29 22:53:44 +08:00
John
3617e51c01 improve gdb.Model.ScanList 2020-09-28 23:52:02 +08:00
John
c931032f08 comment update for gdb.Model.Unscoped 2020-09-27 23:37:40 +08:00
John
619287c273 improve cache feature for package gdb 2020-09-27 00:15:11 +08:00
John
727fdd2391 improve unit testing case for association feature for package gdb 2020-09-25 08:33:22 +08:00
John
a5e3e2f5ba change g.SetDebug function to control the debugging information for framework 2020-09-24 23:40:44 +08:00
cai1111
4c8517d075
Update gdb_driver_mssql.go 2020-09-17 11:06:24 +08:00
John
edf06da6ea add struct which implements Interfaces function parameter support for gdb.Model.Insert/Save 2020-09-13 11:21:10 +08:00
John
9d0ecc7d3e add more unit testing case for package gdb 2020-09-07 20:25:59 +08:00
John
2440e05457 fix issue in limit operations for database driver oracle 2020-09-03 22:38:07 +08:00
John
1337c6c0d1 add sub query sql support for join functions 2020-09-03 21:57:58 +08:00
John
9cd953b7be improve function FieldsEx by filtering fields from custom fields specified by function Fields for package gdb 2020-09-02 20:37:02 +08:00
Jack
d4091a4826 improve some transaction operations by directly calling model operations, making their implements logic the same 2020-08-31 15:57:04 +08:00
Jack
a7c269886b improve support for dynamic database configurations in codes 2020-08-31 15:39:27 +08:00
Jack
f54593037b improve CURD functions for package gdb 2020-08-31 00:59:42 +08:00
Jack
0415cf6a08 fix issue in nil gtime attribute for model entity for package gdb 2020-08-31 00:39:12 +08:00
John
bea451c9d6 improve date type support for package gdb; improve datetime string for gtime.StrToTime; improve function gtime.New for more types 2020-08-21 23:41:12 +08:00
Jack
a8acc6bd28 update unit testing case for package gdb 2020-08-14 00:51:22 +08:00
Jack
eb5efc735e improve unit testing case of ScanList for package gdb 2020-08-13 23:45:22 +08:00
Jack
737af527cd improve *Struct functions for ghttp.Request 2020-08-13 23:29:00 +08:00
Jack
3d8451d5d0 comment update for gdb.Model.Page 2020-08-04 09:22:21 +08:00
Jack
073fb2d717 improve sql logging structure for package gdb 2020-07-31 09:57:26 +08:00
Jack
b396096721 improve dry-run feature by adding global dry-run variable reading from environment or command options 2020-07-30 23:08:27 +08:00
Jack
0a5c6d832f add configration group name for logging content for package gdb 2020-07-30 23:00:20 +08:00
John Guo
d279566114
Merge pull request #769 from fxk2006/master 2020-07-30 22:55:39 +08:00
john
6d406498db improve result data type converting for package gdb 2020-07-28 20:31:50 +08:00
john
e252d8b740 add function ListItemValuesUnique for package gdb 2020-07-25 15:05:08 +08:00
john
f489e6273e fix issue 819 2020-07-25 10:54:48 +08:00
John Guo
b57aee4595
Merge pull request #800 from chenghonour/master
Add database method
2020-07-23 21:30:24 +08:00
john
854b2ed185 improve function convertValue for package gdb 2020-07-23 21:01:16 +08:00
chenghonour
d56835fc00 go fmt 2020-07-21 13:28:25 +08:00
chenghonour
1d5e717a80 update err return 2020-07-21 12:40:13 +08:00
chenghonour
2f44d9ae18 add unit test 2020-07-21 12:37:04 +08:00
john
ee5ddaab52 fix place holder for pgsql 2020-07-20 22:47:12 +08:00
John Guo
b9b470c2ae
Merge branch 'master' into master 2020-07-20 22:14:29 +08:00
john
52b6e8ef9d fix place holder for mssql 2020-07-20 21:55:34 +08:00
john
48c84bf74a fix place holder for mssql 2020-07-20 21:48:44 +08:00
tiancai
d44ddae3dc debug postgre 2020-07-20 19:13:15 +08:00
tiancai
7bbc2459ba postgre 报错 pq: syntax error at or near $ 2020-07-19 23:24:35 +08:00
chenghonour
534cd3be1c add table field method 2020-07-17 14:28:50 +08:00
chenghonour
78536de1b5 add database method 2020-07-17 11:28:47 +08:00
john
e7dc58ac6c unit testing case update for package gdb 2020-07-15 20:21:04 +08:00
john
2033299632 improve placeholder for pgsql 2020-07-15 20:15:09 +08:00
john
639d34d5d9 fix issue in incorrect debug sql information for package gdb 2020-07-15 20:10:54 +08:00
john
183f631190 improve Model.One for package gdb 2020-07-15 09:15:03 +08:00
john
aaa726e6dc add limit 1 for function One of package gdb 2020-07-14 21:42:28 +08:00
john
4e027c1de3 improve argument handling for empty slice for package gdb 2020-07-11 09:53:16 +08:00
John
9b6936a4fb deprecate function DB.Table; improve the configuration node name case-insensitive and ignoring special chars 2020-07-08 20:48:29 +08:00
John
8b78609412 add more unit testing case for package gdb 2020-07-08 19:12:48 +08:00
john
de8f29751d improve function ScanList for package gdb 2020-07-05 12:17:56 +08:00
John
12d58e4d08 add ScanList feature for gdb.Model 2020-07-05 11:54:37 +08:00
John
3ae44185f4 add ScanList feature for gdb.Result 2020-07-05 11:23:39 +08:00
john
1290f42f75 improving package gdb 2020-07-04 08:50:52 +08:00
John
46bdde9265 revert gvar.Var from interface to struct 2020-06-29 13:40:19 +08:00
John
0e884c78f5 fix issue of https://github.com/gogf/gf/issues/765 2020-06-28 23:03:41 +08:00
fangxiaokai
6e08eebcbe
修改sql打印debug信息,增加数据库配置的group名称,用于区分sql来源,尤其是多数据库配置的时候 2020-06-28 16:58:43 +08:00
fangxiaokai
d9422d00ac
修改sql打印debug信息,增加数据库配置的group名称,用于区分sql来源,尤其是多数据库配置的时候 2020-06-28 16:50:13 +08:00
John
f3525c84a3 fix issue in debug infor for soft deleting feature of package gdb 2020-06-17 23:47:47 +08:00
John
b2aa59d893 import third-party library json-iterator to improve the performance for json operations 2020-06-17 21:16:25 +08:00
John
54f47845f6 entity feature developing for package gdb 2020-06-17 11:37:45 +08:00
John
4d38b508a3 improve gvar by changig gvar.Var from type struct to interface 2020-06-16 17:38:05 +08:00
John
5c774fd391 improve function Structs for package gconv 2020-06-16 11:37:00 +08:00
John
508cb7db88 add and improve Scan/ScanDeep feature for package gdb/gvar/gjson/gconv 2020-06-15 16:46:48 +08:00
sanrentai
7ebc7259cb improve mssql TableFields func 2020-06-09 14:02:43 +08:00
John
94de306c93 add zero time filtering for package gdb 2020-06-08 13:46:45 +08:00
John
29d9bb17cd improve function Unscoped for package gdb 2020-06-06 16:28:16 +08:00
John
30501a882d improve function Struct for package gconv 2020-06-06 15:31:04 +08:00
John
f2f98e1d16 rename testing file names for package gdb 2020-06-06 14:38:05 +08:00
John Guo
96ea2c911d
Merge pull request #696 from sanrentai/master
the sqlserver type money  should be converted to float64
2020-06-05 21:08:49 +08:00
john
6e2c0d8706 comment and readme update 2020-06-04 17:29:16 +08:00
John
facb9d93c0 fix issue of multiple slice arguments handling in function where 2020-06-03 21:36:16 +08:00
Sany
2d3b32c94a
money 类型转换错误 2020-05-29 15:41:37 +08:00
John
d398b749d4 improve support for types of database pgsql 2020-05-14 21:15:44 +08:00
John
a7504f0629 add more unit testing cases for package gdb 2020-05-13 23:21:11 +08:00
John
8a13d94526 improve Record.Struct for package gdb 2020-04-29 09:12:13 +08:00
John
a123a2c086 improve struct conversion of empty result/record for package gdb 2020-04-28 21:03:25 +08:00
John
8d9dd17eac add Walk function for package gset; improve fields handling feature for package gdb 2020-04-27 21:18:42 +08:00
John
cf1d3d3d2b improve package gdebug; add more unit testing case for package gdb 2020-04-27 17:56:04 +08:00
John
5db10add4a fix issue in unnacessary quoting of fields in select statement of gdb.Model 2020-04-27 16:30:53 +08:00
John
fa66bf5d9d improve cache feature of package gdb.Model 2020-04-26 21:31:55 +08:00
John
f69da3ace1 add function Transaction for package gdb 2020-04-26 17:47:19 +08:00
John
71b1f00dc5 improve package gdb/gstr/gvalid 2020-04-20 22:36:28 +08:00
John
63f33d1d8c improve package gdb supporting gtime.Time parameter for Where condition 2020-04-15 18:02:32 +08:00
John
734aa5a6fe improve create_at,update_at,delete_at feature for package gdb 2020-04-15 12:56:41 +08:00
John
81b211dd1a improve select operation details handling for package gdb 2020-04-15 09:37:46 +08:00
John
8e6018cfff improve soft deleting feature for package gdb 2020-04-11 10:14:49 +08:00
John
c08739b5a3 add function Having for gdb.Model 2020-04-11 10:11:52 +08:00
John
385a503d31 add soft deleting feature, improve chars handling for package gdb 2020-04-11 09:09:25 +08:00
John
ef286b0c15 add unit testing case for auto time and soft deleting features for package gdb 2020-04-09 22:48:21 +08:00
John
53aba2d4b8 add unit testing case of cache feature for package gdb 2020-04-09 22:00:02 +08:00
John
7fd53673ce add automatic time and soft deleting features: create_at/update_at/delete_at for package gdb; improve schema changing feature for package gdb 2020-04-08 21:26:14 +08:00
John
2d30a53c3a remove function From for package gdb; add function g.Table; add ServeHTTP interface implements for ghttp.Server 2020-04-04 22:46:52 +08:00
John
f82f7ab199 change default value of safe from false to true for gdb.Model 2020-04-03 10:16:57 +08:00
John
7bcc596308 add GetVar function for package genv; add DryRun feature for package gdb 2020-04-02 20:52:37 +08:00
John
c10f73f1f7 add zero time.Time filtering for omitempty feature of gdb.Model 2020-03-30 20:44:36 +08:00
John
4844eea0ab add convenience function g.Client for ghttp.Client 2020-03-29 09:52:37 +08:00
John Guo
1932c4ec44
Merge pull request #575 from wenzi1/master
Fix the bug of MSSQL paging
2020-03-28 19:59:31 +08:00
John
495b5758ec improve quote handling of table string for package gdb; improve rotation feature for package glog 2020-03-26 22:22:27 +08:00
John
3c36285126 improve Model.Data function for package gdb 2020-03-24 20:58:11 +08:00
John
060fd9eaba improve comment for package gdb 2020-03-23 20:44:20 +08:00