gf
gf copied to clipboard
GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
软件版本 在goframev2的2.1.2版本 场景 连表后非主表的字段不返回 需求 a表b表连表返回结果 更具体 b表做主表,left join a表,在b表上进行条件过滤后,只要返回a表的所有字段 实现 var ( orm = dao.b.Ctx(ctx) aTable = dao.a.Table() aColumns = dao.a.Columns() bTable = dao.b.Table() bColumns = dao.b.Columns() ) //...
create docker image missing name/tag, cannot push to aliyuncs. ### 1. What version of `Go` and system type/arch are you using? go version go1.16.7 windows/amd64 ### 2. What version of...
### 1. What version of `Go` and system type/arch are you using? go 1.18.4 ### 2. What version of `GoFrame` are you using? gf v2.1.2 ### 3. Can this issue...
运行下面代码,发现堆栈打印不出来 package main import ( "context" "github.com/gogf/gf/v2/os/glog" ) func Test(ctx context.Context) { glog.Error(ctx, "This is error!") } func main() { ctx := context.TODO() Test(ctx) } 经排查:发现是这行把堆栈给忽略了 /github.com/gogf/gf/[email protected]/debug/gdebug/gdebug_caller.go:123 具体的情况是,GOROOT的路径是D://go 然后我程序目录是D://goVm 这里错误得把我的的程序目录当成GOROOT目录了(因为前缀相同)...
### 1. What version of `Go` and system type/arch are you using? go 1.16.5 , windows/amd64 ### 2. What version of `GoFrame` are you using? v2.1.2 ### 3. Can this...
# 问题 go v1.18 gf v2.1.2 pgsql数据库的int8[]类型字段,gen dao后生成entity结构对应为[]int64 目前查询DB时数据转换没有问题(现有contrib已支持),但是在insert和update时,执行sql会报解析错误。 原因是slice类型的数据,会经过json.Marshal后再拼在sql中([code](https://github.com/gogf/gf/blob/master/database/gdb/gdb_core_structure.go#L71)),但pgsql的int8[]类型字段,接受的是 {1,2,3} 大括号包着的数据,而json编码后是[1,2,3]中括号 暂时解决办法是自定义结构重写生成的entity中的[]int64类型字段,自定义结构实现driver.Valuer接口 @gqcn 帮忙看看框架是否能支持这个场景? # 复现 ## pgsql ```sql CREATE TABLE public.test_slice ( ids _int8 NULL ); INSERT INTO...
### 1. What version of `Go` and system type/arch are you using? 1.18.4 ### 2. What version of `GoFrame` are you using? 2.1.2 ### 3. Can this issue be re-produced...
Please paste the output of command `go version` from your terminal. What expect to see is like: `go 1.12, linux/amd64` --> go version go1.18.2 windows/amd64 ### 2. What version of...
### 1. What version of `Go` and system type/arch are you using? go version go1.17.10 linux/amd64 ### 2. What version of `GoFrame` are you using? Ⅰ.开发环境:为无网络的环境,无法访问外网 Ⅱ.项目原先使用的gf是2.0.3版本,swagger文档地址能够正常访问 🆗 Ⅲ.后续升级为2.1.2版本后,swagger地址无法访问 ❌...