岚天逸剑
岚天逸剑
Currently, a certain service is not started, which will cause the gateway to fail to start. The gateway and the service are strongly coupled. For gateways, this is a serious...
Add: ```json {"code":0,"data":{ ANY } ``` for success response body. Add: ```json {"code":ERRCODE,"message":"error message"} ``` for fail response body. **httpx.SetErrorHandlerCtx** supports fail response, but **httpx.SetOkHandler** does not work. The following...
``` goctl model mysql ddl --src user_base.sql --dir . ``` ``` [convertColumns]: The column "f_stop_time" is recommended to add constraint `DEFAULT` [convertColumns]: The column "f_create_time" is recommended to add constraint...
Do not configure Hosts in Upstreams: ```yaml Etcd: Hosts: - 127.0.0.1:2379 Login: # Login service client conf Prefix: /v1 Etcd: Key: mooonlogin.rpc Auth: # Authentication service client conf Prefix: /v2...
根据文档说明,批量插入方法 CreateInBatches 会开启一个事务,文档也说 gorm 支持嵌套事务,而 MySQL 官方文档则明确不支持嵌套事务,但支持 SavePoint,看到 gorm 的实现有用到 SavePoint 。请问: 1、可以在一个事务中调用吗 CreateInBatches ? 2、CreateInBatches 成功后,但外层事务还未提交,其结果是否对外可见了? 3、外层事务回滚了,CreateInBatches 的结果也会被回滚吗? 一个理想的实现是:CreateInBatches 检测是否已经在事务中,如果已经在事务中,则不开启一个新的事务,这样就只有一个事务,SavePoint 也不需要了,不知道实际实现怎样的。
=== REDIS BUG REPORT START: Cut & paste starting from here === 23985:M 31 Dec 2018 15:11:52.544 # ------------------------------------------------ 23985:M 31 Dec 2018 15:11:52.545 # !!! Software Failure. Press left...