smallnest
smallnest
1. You must have a postgres database 2. You must install the gen tool: `go get -u github.com/smallnest/gen` 3. Then, you can generate all codes by setting postgres dsn ```...
gen doesn't know how to map varbinary to a go type. Maybe you should define your mapping.json just like: ```json { "sql_type": "date", "go_type": "time.Time", "json_type": "Text", "protobuf_type": "google.protobuf.Timestamp", "guregu_type":...
what error? paste the error stack please
I have added some code to support varbinary but have not test with a mysql database.
welcome pull requests
I don't know `int4[]` in postgres, but I think you can define a new type for `int4[]`: https://github.com/smallnest/gen/blob/master/template/mapping.json
Yes, It should be improved.
看看dot工具是否加入到系统路径里?命令行中执行`dot`试试
https://github.com/smallnest/gofsm/blob/master/fsm.go#L115 限制了只能使用/bin/sh, 你可以修改一下直接执行`dot`
https://medium.com/trendyol-tech/kafka-test-containers-with-golang-b85e4b2469db is not completed and I have run it but failed. Hope add a kafka example in this project.