Commit Graph

466 Commits

Author SHA1 Message Date
John Guo
392c81ad69 remove Link parameter from function TableFields for package gdb 2021-05-29 17:26:08 +08:00
John Guo
fe142c93fd add function Transaction for gdb.Model 2021-05-29 17:07:49 +08:00
John Guo
5100e0e8b7 add sub-query feature for orm 2021-05-27 22:18:16 +08:00
John Guo
5903eb8ceb fix issue #1254 2021-05-25 09:56:23 +08:00
John Guo
211e62a8e7 add timestamptz type support for pgsql for package gdb 2021-05-24 13:30:04 +08:00
John Guo
64a9b06e64 comment update 2021-05-23 00:02:49 +08:00
jflyfox
6d81aa4462 infract internal link 2021-05-21 15:38:56 +08:00
jflyfox
406b6bf410 infract internal link 2021-05-21 15:30:21 +08:00
John Guo
4e41d8aff8 improve context and nested transaction feature for package gdb 2021-05-21 13:25:53 +08:00
John Guo
7d3233c7ad add context for custom validation rule function;add function WhereNot for gdb.Model 2021-05-19 22:33:50 +08:00
John Guo
3e2662582c improve nested transaction feature for package gdb 2021-05-19 21:17:21 +08:00
John Guo
c94dee8191 improve nested transaction feature for package gdb 2021-05-19 21:11:51 +08:00
John Guo
ab2ef13d99 improve transaction for package gdb 2021-05-19 20:33:19 +08:00
John Guo
c8c28770fb change Error from struct to interface for package gvalid;error string update for package gdb 2021-05-18 20:51:31 +08:00
John Guo
7003c284d0 replace json.Unmarshal with json.UnmarshalUseNumber for packages 2021-05-15 22:38:07 +08:00
John Guo
d21b9d58e1 improve with feature by supporting attributes struct which also have 'with' tag 2021-05-12 21:34:15 +08:00
John Guo
1eab1cb367 add more unit testing cases,remove function Filter usage in unit testing cases for package gdb 2021-05-11 20:14:06 +08:00
John Guo
2e38416e12 improve struct embedded association case of with feature for package gdb 2021-05-11 20:00:50 +08:00
John Guo
742653ce75 improve Model function for struct parameter that can retrieve table name tag from 2021-05-02 23:28:24 +08:00
John Guo
a8c3d07d9f improve with feature for package gdb 2021-05-02 22:35:47 +08:00
John Guo
4b15ab5e99 improve OrderRandom function for package gdb 2021-05-02 16:42:34 +08:00
John Guo
cdc97e9b2b improve logging for transaction feature for package gdb 2021-05-02 15:58:28 +08:00
John Guo
bd84b97614 add more Where*/Min/Max/Avg/Sum/CountColumn/Increment/Decrement/OrderAsc/OrderDesc/OrderRandom functions and associated unit testing cases for package gdb 2021-05-02 12:17:06 +08:00
John Guo
d7eb1cca07 add nested transaction feature for package gdb 2021-05-02 09:35:54 +08:00
John Guo
49dd17c047 remove maxIdleTime feature due to be compatible with old Golang version <= v1.14 2021-04-04 12:13:51 +08:00
John Guo
a3b94c24de fix issue #854; add maxIdleTime configuration and comments update for package gdb; version updates 2021-04-04 12:01:22 +08:00
John Guo
78027d2ec6 deprecated comments update 2021-03-30 13:43:08 +08:00
John Guo
bb6883213f fix issue #1202 2021-03-24 22:04:04 +08:00
John Guo
54395b39a6 fix issue #1202 2021-03-24 21:19:23 +08:00
John Guo
c423ad4830 fix issue in gfile.MainPkgPath;improve fields filter for package gdb 2021-03-23 14:21:54 +08:00
jianchenma
6a24b595f0 upgrade otel from 0.16.0 to 0.18.0 2021-03-18 10:39:23 +08:00
John Guo
7702c5bfde add internal logging for package gdb/gredis 2021-03-11 11:39:49 +08:00
John Guo
ae0cc5a4b6 add more unit testing case for ScanList feature 2021-03-04 20:45:05 +08:00
John Guo
ba74e0beb2 improve ScanList of the same replation names for package gdb 2021-03-04 00:07:06 +08:00
John Guo
1c7f034135 Merge branch 'master' of https://github.com/gogf/gf 2021-03-02 23:32:50 +08:00
John Guo
4c78ce6e3f fix issue #1187 2021-03-02 23:27:50 +08:00
turc
0e6cddb547 去除cancelFunc避免退出之前关闭mysqlConn导致数据获取不完整 2021-03-01 01:43:53 +08:00
John Guo
d2bd37962e add unit testing case of UnmarshalValue for struct converting of querying result; improve package gdb 2021-02-27 23:58:36 +08:00
John Guo
5adde275fc add switch variable for internal type tracing components 2021-02-14 22:00:56 +08:00
John Guo
a3fa10d820 great! completed 'with' feature for package gdb 2021-02-09 18:00:43 +08:00
John Guo
acf47f3907 orm with feature 2021-02-08 17:57:21 +08:00
John Guo
b4d5335e43 add package gmeta for embedded struct of meta data feature 2021-02-07 21:23:09 +08:00
jflyfox
39fb842e9b Merge branch 'master' into feature/ormwith 2021-02-07 15:34:50 +08:00
jflyfox
397e11e124 improve package gdb for association feature 2021-02-07 14:39:32 +08:00
jflyfox
f4314c318e up 2021-02-07 10:40:02 +08:00
jianchenma
8ae0bd148b improve ScanList for package gdb; improve Structs for package gconv 2021-02-05 17:42:05 +08:00
jianchenma
72251b880a improve package gconv for slice converting 2021-02-05 14:44:20 +08:00
John Guo
3b2bae6128 improve soft deletion for package gdb 2021-02-03 23:11:17 +08:00
John Guo
ae559b57de fix dryrun configuration for package gdb 2021-02-03 22:46:59 +08:00
jianchenma
813841bb68 rename GetWithEnv to GetOptWithEnv for packge gcmd 2021-02-02 15:16:09 +08:00
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