Commit Graph

276 Commits

Author SHA1 Message Date
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
8151b6efd6 add more example for package gredis 2020-06-08 19:17:24 +08:00
John
94de306c93 add zero time filtering for package gdb 2020-06-08 13:46:45 +08:00
John
51f8ea26de add example for package gredis 2020-06-06 18:12:42 +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
76d31a7fbb improve slice result handling by treating it as string slice for package gredis 2020-06-03 23:44:21 +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
89ccaa3915 improve function Do for package gredis, adding auto marshal feature for arguments 2020-05-18 19:18:53 +08:00
john
caead810e2 add package guid; improve performance of package grand 2020-05-16 21:56:31 +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
f22b98456f add default value of MaxActive configuration for package gredis 2020-04-03 15:18:35 +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
John
63e5a60344 improve package gdb 2020-03-22 23:26:15 +08:00
wenzi
5f223ef049
Merge pull request #4 from gogf/master
update
2020-03-20 10:06:50 +08:00
John
f18e6f078c improve unit testing cases 2020-03-20 08:49:40 +08:00
wenzi1
f667cbc2a2 Fix the bug of MSSQL paging 2020-03-20 00:33:20 +08:00
John
07e65c14a9 improve unit testing cases 2020-03-19 23:53:03 +08:00
John
0b6d04485e improve unit testing cases 2020-03-19 22:56:12 +08:00
John
36401a063d improve gutil.Dump, improve sqlite file searching when opening db file 2020-03-19 13:38:42 +08:00
John
5a646179ad fix issue in limit...offset statement of postgresql for packagegdb 2020-03-17 21:38:49 +08:00
John
9f0548c03d improve testdata directory retrieving for unit testing cases 2020-03-16 22:47:39 +08:00
John
855a4ddb2c add file rotation feature for package glog; improve gpool/gfpool; fix issue in gfile.MTimeMillisecond 2020-03-15 19:32:29 +08:00
John
74be9fac18 add file rotation feature for package glog; improve gpool/gfpool; fix issue in gfile.MTimeMillisecond 2020-03-15 19:32:26 +08:00
John
e513cd10ed add Lock* functions for gdb.Model and improve Data/Where functions for gdb.Model 2020-03-13 17:21:30 +08:00
John
13ab139afc add more unit testing case for package gdb 2020-03-11 23:24:19 +08:00
John Guo
cacb2f142b
Merge pull request #548 from wenzi1/master
add Tables and TableFields method for sqlite
2020-03-11 23:18:59 +08:00
John
11f0317e92 add Array feature for package gdb 2020-03-11 23:17:41 +08:00
wenzi1
9a667c8803 add Tables and TableFields method for sqlite 2020-03-11 22:45:38 +08:00
John
cd7c45c00c improve default connection pool configuration for gredis 2020-03-11 14:35:23 +08:00
wenzi1
2f2f6e1ffe add Tables and TableFields method 2020-03-11 00:29:25 +08:00
John
9dbde6e8f1 change function HandleSqlBeforeExec to HandleSqlBeforeCommit for package gdb 2020-03-09 22:00:01 +08:00
John
fe0b34544d fix missing of pgsql driver support for package gdb 2020-03-09 21:56:53 +08:00
John
5e489d59b4 improve HandleSqlBeforeExec function for package gdb 2020-03-09 21:53:58 +08:00
John
042a6f12f5 add map conversion support for result of HGetAll for package gredis 2020-03-08 23:16:06 +08:00
John
5bed5a1532 improve unit testing case for driver feature og package gdb 2020-03-08 12:18:07 +08:00
John
5b7576430f improve unit testing case for driver feature og package gdb 2020-03-08 12:16:44 +08:00
John
356f4cd701 improve unit testing case for driver feature og package gdb 2020-03-08 12:04:24 +08:00
John
c444630d1e add workaround for package gdb for json infinite loop bug of Golang version < v1.14 2020-03-08 11:56:19 +08:00
John
8e40cded42 add custom driver feature for package gdb 2020-03-08 11:03:18 +08:00
John
0e52d467d3 improving package gdb 2020-03-08 00:17:42 +08:00
John
7f0163d958 improve gconv.Struct* functions for custom types conversion 2020-03-06 23:22:08 +08:00
John
93d0760898 add GetPage function for ghttp.Request 2020-03-06 11:01:03 +08:00
wenzi1
8971ad8445 Add tables method of MSSQL, Oracle and PgSQL 2020-03-02 23:41:33 +08:00
John
b0ef63fc9d improve bindArgsToQuery for surpport for pgsql/mssql/oracle for package gdb 2020-02-29 19:55:53 +08:00
John
6317d9de53 add ci for golang v1.14 2020-02-26 11:54:46 +08:00
John
42fd583bfd add more inernal logging points for core components 2020-02-24 21:09:19 +08:00
John
745a913cfb add FilterNil/FilterEmpty functions for package garray; add FieldsStr/FieldsExStr for gdb.Model 2020-02-22 14:26:36 +08:00
John
88684ca00a add panic if internal watcher creation fails for gfsnotify; improve codes and change comment from chinese to english for gdb 2020-02-10 20:37:53 +08:00
John
784983806a add InserIgnore feature for package gdb 2020-02-08 23:46:10 +08:00
John
a6c0b281a3 add struct support for where condition statement of gdb 2020-02-07 20:58:47 +08:00
John
3120f24553 add struct support for where condition statement og gdb 2020-02-07 19:44:11 +08:00
John
ac9be6134b add global schema access support for mssql in gdb 2020-02-07 17:21:05 +08:00
John
4c3af63076 improve time string parsing for invalid datetime 2020-02-01 20:14:24 +08:00
John
7df53ff55e rename all timestamp function names from *Second to Timestamp* 2020-01-20 14:14:11 +08:00
John
872d674182 fix issue in database 'time' type support in package gdb 2020-01-15 21:23:40 +08:00
John
4682abafdf fix concurrent issue in gdb.Model.Count 2020-01-15 10:38:02 +08:00
John
e9a0805801 add function Schema for gdb 2020-01-10 23:48:19 +08:00
John
33a899d32e add As function for gdb.Model; improve string quote handling for gdb 2020-01-08 21:24:33 +08:00
John
9227139cf8 add schema changing feature for gdb 2020-01-07 22:14:32 +08:00
John
f2190e50b2 improve unit testing for gdb 2020-01-06 20:43:59 +08:00
sth4me
eb31922124
fix mysql debug time
调试模式时间格式改为毫秒,原来是微秒.
2020-01-06 10:28:34 +08:00
John
bc53f265af improve gconv.Map/String 2020-01-03 20:23:10 +08:00
John
0a89daa513 add more unit testing cases for gdb.TX 2019-12-31 16:02:18 +08:00
John
134e4cf28f improve gfile.CopyDir function; add Model function for gdb.Model 2019-12-28 13:55:05 +08:00
John
a10f428715 add Iterator* functions for garray; add ReplaceDir*/ReplaceFile* functions for gfile; remove gfile.Replace/ReplaceFunc functions 2019-12-25 20:56:39 +08:00
John
597f7468e9 fix issue in prefix feature for method operations of gdb 2019-12-23 23:14:54 +08:00
John
922e720d63 improve gdb/ghttp/gins; fix issue in gstr 2019-12-19 15:14:05 +08:00
John
5f2be10563 improve gdb/gtime 2019-12-17 21:06:34 +08:00
John
76bc9bd385 improve gdb.Model 2019-12-16 21:00:16 +08:00
John
364452f3bb improve gdb.Model 2019-12-16 20:50:27 +08:00
John
27cf47bcd3 improve table prefix and quote feature for gdb 2019-12-13 15:25:49 +08:00
John
458318d374 improve prefix and word quote feature for gdb; merge develop 2019-12-12 23:54:07 +08:00
John
e3f54e1353 improve tag and field retrieving feature for internal/structs; comment update for gdb 2019-12-12 23:38:46 +08:00
John
34ef0ea792 add prefix feature for gdb 2019-12-10 21:14:15 +08:00
John
64bb72842e comment update for unit testing case of gdb 2019-12-04 22:38:58 +08:00
John
f7d6883405 fix issue in gredis for int set/get 2019-12-04 18:43:16 +08:00
John
3cc9ce74e1 add IsEmpty function for gdb.Record/Result 2019-12-04 17:01:30 +08:00
John
835c045c92 fix unit testing case for gdb 2019-12-04 16:21:35 +08:00
John
be15f85eae remove sql.ErrNoRows error for select functions for gdb; improve configuration feature for gdb/glog/gview 2019-12-04 16:04:52 +08:00
John
3e27ea0259 change duration parameter type from interface{} to time.Duration for gcache/gfcache 2019-12-04 14:42:09 +08:00
John
c7b0763ab0 comment and unit testing case update for gdb 2019-11-28 23:51:05 +08:00
John
0cfdf60de5 change model default unsafe for gdb 2019-11-28 23:23:11 +08:00
John
096bff791d change model default safe for gdb 2019-11-28 23:21:27 +08:00
John
0cce858641 improve configuration feature for ghttp.Server/gview/glog 2019-11-28 23:19:37 +08:00
John
9429c8ff83 improve gd.Model.Clone 2019-11-21 22:21:57 +08:00
john
1deb3510f0 improve gerror, ghttp for error stack logging; improve custom view feature for ghttp.Request 2019-11-20 18:45:09 +08:00
john
dd7ae1b07a unit test case updates for gdb 2019-11-20 13:36:31 +08:00
john
ad540f7c25 update travis for adding mysql password; add custom view feature for ghttp.Response 2019-11-20 12:09:26 +08:00
John
a4f191c1c6 fix issue in gdb.Model for repeated condition statements; remove concurrent safety feature of gview; add default template file feature for gview 2019-11-19 21:50:17 +08:00
John
c492de4fa8 improve multipart form parsing for ghttp.Server 2019-11-06 15:37:29 +08:00
John
1ab7f00b91 add FieldsEx function for gdb.Model 2019-10-29 19:45:21 +08:00
John
f9569b387f add ConnectTimeout configuration for gredis 2019-10-29 09:49:29 +08:00
John
c686b1c080 improve datetime coverting for gdb 2019-10-28 16:42:30 +08:00
John
f1b7cb37c6 add configuration feature for glog 2019-10-26 10:58:07 +08:00
John
734728fa9c improve time handling for gdb 2019-10-25 19:54:02 +08:00
John
d4051df5b6 improve gdb/gstr/gconv/garray 2019-10-21 19:13:25 +08:00
John
88045417ff fix issue in field type check for gdb 2019-10-17 20:57:49 +08:00
John
500efb5601 fix issue in template for ghttp.Server 2019-10-17 20:31:03 +08:00
John
e1164e935b improve configuration for gdb; add more unit test case for ghttp.Server 2019-10-15 21:20:38 +08:00
John
b26330aee1 rename cacheTime to cacheExpire and change its type from int to time.Duration for gdb.Model; fix issue in string support of function Data for gdb 2019-10-15 17:44:47 +08:00
John
2b083709b5 add gmap.ListMap/TreeMap support for gdb.Where 2019-10-14 23:27:48 +08:00
John
2dc2610621 improve gdb; README update 2019-10-13 23:05:48 +08:00
John
142484d89c add support for like statement in map key for Where function, improve error format for gdb 2019-10-13 00:37:25 +08:00
John
c4e5679d5c fix issue in missing passing MaxIdle/MaxActive configuration to underlying redis pool for gredis; add extra output for unit test cases of ghttp.Server 2019-10-11 23:33:21 +08:00
John
6384e75ed9 improva container for json marshal/unmarshal interface 2019-10-01 16:03:18 +08:00
John
195cae6577 add new functions and mark deprecated for some functions for gdb 2019-10-01 11:29:02 +08:00
John
b830f9b96d improve ghttp.Server.Request for parameter retrieving; add Option feature for gdb; update example for hook feature of ghttp.Server 2019-09-29 14:27:09 +08:00
John
c85162a8a0 improving gdb.Model/gmap 2019-09-26 20:01:48 +08:00
John
b0f859cc91 improve example codes 2019-09-24 23:41:18 +08:00
John
62f66b4fec remove unnecessary stack trace of gf for stack printing 2019-09-19 13:13:39 +08:00
John
f75383e0c5 fix issue in quote word for gdb 2019-09-17 19:45:51 +08:00
John
1d7ded562c add quote support for table named with '.'; improve case conversion for strings named with '.' for gstr 2019-09-16 17:15:39 +08:00
John
0d87b601cc fix issue in data filter for gdb.Model 2019-09-16 16:54:52 +08:00
John Guo
5f8656eb41
Merge pull request #332 from hailaz/master
improve dbBase.doBatchInsert()
2019-09-13 21:14:38 +08:00
John
b39d653fe9 add package gsession; mv gkvdb to new repo 2019-09-11 21:19:45 +08:00
hailaz
d9e7d4249f improve dbBase.doBatchInsert() 2019-09-11 16:48:00 +08:00
John
69684f5023 improve gredis instance initialization for gins 2019-09-10 20:38:23 +08:00
John
16cc3c0fca fix issue in gredis unit test cases 2019-09-06 18:08:58 +08:00