Documentation ¶
Index ¶
Constants ¶
View Source
const ( ENGINE_UNSET = iota ENGINE_POSTGRES )
DB Engine Enum
Variables ¶
View Source
var (
ErrNotOrmable = errors.New("type is not ormable")
)
Functions ¶
This section is empty.
Types ¶
type ORMBuilder ¶ added in v1.1.1
type ORMBuilder struct {
// contains filtered or unexported fields
}
func New ¶ added in v1.1.1
func New(opts protogen.Options, request *pluginpb.CodeGeneratorRequest) (*ORMBuilder, error)
func (*ORMBuilder) Generate ¶ added in v1.1.1
func (b *ORMBuilder) Generate() (*pluginpb.CodeGeneratorResponse, error)
func (*ORMBuilder) IsAbleToMakePQArray ¶ added in v1.1.1
func (b *ORMBuilder) IsAbleToMakePQArray(fieldType string) bool
type OrmableType ¶ added in v0.5.0
type OrmableType struct { File *protogen.File Fields map[string]*Field Methods map[string]*autogenMethod Name string OriginName string Package string }
func GetOrmable ¶ added in v1.1.1
func GetOrmable(ormableTypes map[string]*OrmableType, typeName string) (*OrmableType, error)
func NewOrmableType ¶ added in v0.5.0
func NewOrmableType(originalName string, pkg string, file *protogen.File) *OrmableType
Click to show internal directories.
Click to hide internal directories.