Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DockerVersion string
DockerVersion encompasses go or auto_schema
View Source
var Time string
if build time is same time...
Functions ¶
func FlagNextBuildInfoAsWriteAll ¶ added in v0.0.39
func FlagNextBuildInfoAsWriteAll(cfg Config, cfg2 codegenapi.Config) error
FlagNextBuildInfoAsWriteAll used for one-off commands such as downgrade where the state isn't pure and we wanna generate it all next time usually the same.. being lazy
Types ¶
type BuildInfo ¶
type BuildInfo struct { BuildTime string `yaml:"buildTime"` ConfigTime string `yaml:"configTime"` // ent.yml time DockerVersion string `yaml:"dockerVersion"` ForceWriteAllNextTime bool `yaml:"forceWriteAllNextTime,omitempty"` // this is only public for yaml reasons DefaultGraphQLMutationName codegenapi.GraphQLMutationName `yaml:"defaultGraphQLMutationName"` // contains filtered or unexported fields }
func NewBuildInfo ¶
compare with existing schema and write new one after bi.PostProcess
func (*BuildInfo) CheckForDeletes ¶ added in v0.0.39
func (*BuildInfo) PostProcess ¶
func (bi *BuildInfo) PostProcess(cfg codegenapi.Config) error
func (*BuildInfo) PrevGraphQLMutationName ¶ added in v0.0.39
func (bi *BuildInfo) PrevGraphQLMutationName() codegenapi.GraphQLMutationName
returns value of DefaultGraphQLMutationName which is stored in build_info.yml what was used for previous run. may differ from current value in ent.yml
Click to show internal directories.
Click to hide internal directories.