GithubHelp home page GithubHelp logo

complex64 / protoc-gen-gorm Goto Github PK

View Code? Open in Web Editor NEW
20.0 5.0 5.0 843 KB

Generate GORM v2 Models and APIs from your .proto files.

Home Page: https://complex64.github.io/protoc-gen-gorm/

License: Apache License 2.0

Go 97.26% Dockerfile 0.84% Makefile 1.81% CSS 0.09%
gorm gorm-v2 orm golang protoc protoc-plugin buf buf-plugin grpc sql

protoc-gen-gorm's People

Contributors

bencurio avatar complex64 avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

protoc-gen-gorm's Issues

panic: TODO: External custom types: "\"github.com/golang/protobuf/ptypes/timestamp\"".Timestamp

Execution https://github.com/complex64/protoc-gen-gorm/tree/main/examples/buf
proto file

"C:/Program Files/Go/bin/go.exe" generate E:/code/go/api-go/generate.go #gosetup
panic: TODO: External custom types: ""github.com/golang/protobuf/ptypes/timestamp"".Timestamp

goroutine 1 [running]:
github.com/complex64/protoc-gen-gorm/internal/gengorm.(*FieldType).init(0xc0000d2420)
C:/Users/xxgo/go/pkg/mod/github.com/complex64/[email protected]/internal/gengorm/fieldtypes.go:85 +0x5c5
github.com/complex64/protoc-gen-gorm/internal/gengorm.NewFieldType(0xc0000a4e40)
C:/Users/xxgo/go/pkg/mod/github.com/complex64/[email protected]/internal/gengorm/fieldtypes.go:16 +0xa6
github.com/complex64/protoc-gen-gorm/internal/gengorm.(*Field).initTypes(...)
C:/Users/xxgo/go/pkg/mod/github.com/complex64/[email protected]/internal/gengorm/fields.go:51

Please tell me when the verification is going to be completed

This is a very good project, please ask when the verification is intended to be completed, or what kind of scheme is used to get the implementation, and how to implement custom types, because the type can achieve the relationship of the model, one-to-one, one-to-many way

Design the Contribution Process

Contributions:

  • Must be tested
  • Must be documented in-code
  • Must be documented in the regular documentation

A bot should:

  • Post a warm welcome message for new issues from first-time contributors
  • Follow up with contributors after 14d and 30d of inactivity
  • Auto-close stale issues after 90d of inactivity
  • Assign labels

Setup the Repository

The repository should:

  • Have a README
  • Have a CI badge
  • Have a code coverage badge
  • Once public; use issue template forms
  • Once public; add code climate, go report card, and go documentation badge

The README should:

  • Link to the documentation directory and website

Design Notes

Features:

  • TBD
  • Support for encoding and decoding custom types
  • Unmapped fields require an explicit ignore

Non Features:

  • TBD

Notes:

  • Use of interfaces where it makes sense in preparation of Go 1.18+ generics

Docker Image

  • Publish a minimal docker image to run protoc-gen-form containerized
  • Tags should match the release version

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.