heansheng

Results 5 comments of heansheng

子进程创建后立马通知父进程,并调用Shutdown以及传递超时时间,让父进程停止接受新的请求

这个改动主要是解决:旧版逻辑下,子进程创建后,父进程依然会接受新的请求,导致部分请求会中断的问题。

https://pkg.go.dev/github.com/lib/pq `pq does not support the LastInsertId() method of the Result type in database/sql. To return the identifier of an INSERT (or UPDATE or DELETE), use the Postgres RETURNING clause...

在goframe中就是: ``` package main import ( _ "github.com/lib/pq" "github.com/gogf/gf/frame/g" "fmt" ) func main() { db := g.DB("pg") var id int rows, _ := db.Query("insert into test1 (name) values (123) returning...