internal

package
v1.5.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDir

func CheckDir(dir string) error

CheckDir checks the given dir and reports if there are any VCS conflicts.

func IsBuildError

func IsBuildError(err error) bool

IsBuildError reports if the given error is an error from the Go command (e.g. syntax error).

Types

type Snapshot

type Snapshot struct {
	Path   string      // Path to snapshot.
	Config *gen.Config // Config of codegen.
}

Snapshot describes the schema snapshot restore.

func (*Snapshot) Restore

func (s *Snapshot) Restore() error

Restore restores the generated package from the latest schema snapshot. If there is a conflict between upstream and local snapshots, it is merged before running the code generation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL