A rpc database access framework by go with automatic code generation on models, protofiles and services.
Write spec file and run build script, add one line to service.go, then you can run CRUD on databases.
- gRPC for go
- go, version > 1.5
- protobuf
- protobuf go plugin
- protobuf
- golang
- gRPC
- gorm
- postgres
- mongodb
- redis
- build a yaml file with name [dbname].yaml under spec/
- define database in yaml file(see user.yaml sample)
- run build.sh(will generate files under pb/ proto/ test/ model/ server etc..)
- register services in service.go
go run seivice.go
go run test/user.go