Commit Graph

253 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
hailaz
d9e7d4249f improve dbBase.doBatchInsert() 2019-09-11 16:48:00 +08:00
John
13e528abb6 remove deprecated functions and fix corresponding unit test cases 2019-09-06 16:59:38 +08:00
John
cd00ac446b improve CORS feature for ghttp.Server 2019-09-03 17:18:16 +08:00
John
e2906fba0b improve type conversion for gdb 2019-09-03 00:06:24 +08:00
John
acd5e72f6c improve gdb for configiration 2019-09-02 20:35:29 +08:00
John
b1c2b9f4e0 improve gconv.Bool for NO/YES; improve gdb for model generation 2019-09-02 15:48:25 +08:00
John
6c61704e60 adding package gi18n 2019-08-31 18:04:12 +08:00
John
ee89a06b3e improve model feature 2019-08-30 20:29:12 +08:00
John
d3a2bef9ba improve debug sql with arguments auto bound 2019-08-26 20:57:37 +08:00
John
b7f67e3162 add StackWithFilter function for glog, and improve gdb/ghttp 2019-08-26 20:09:24 +08:00
John
1a20edc0b0 improving gdb and glog 2019-08-26 19:39:04 +08:00
John
f80ba1473e fix issue in stack skip feature for glog; fix issue in slice parameter for gdb 2019-08-24 23:08:17 +08:00
John
fd6321e71b update donator; update unit test case for gdb; fix issue in bool convertion for []byte for gconv 2019-08-22 23:24:45 +08:00
John
1f8408b622 improve gdb 2019-08-19 19:21:27 +08:00
wenzi1
c402e17605 修改mssql中的datetime类型的处理 2019-08-14 22:44:57 +08:00
wenzi1
8f7363df41 删除mssql中的convertValue方法。
修改测试案例中的datetime类型的字段在查到数据后做转换
2019-08-14 19:16:45 +08:00
wenzi1
5d7d8abbde add oracle/mssql/postgres unit test cases 2019-08-12 17:12:16 +08:00
wenzi1
296c4b750b add oracle/mssql/postgres unit test cases 2019-08-12 16:50:57 +08:00
John
4eac97a7d8 add Master/Slave functions for gdb 2019-08-08 17:43:21 +08:00
John
06c16bf560 remove thirdparty diectory, add go.mod for package dependences 2019-08-01 14:07:25 +08:00
John
b01add2925 update project structure 2019-07-29 21:01:19 +08:00