Documentation
¶
Index ¶
- Constants
- func EnsureRegistry(db *sqlx.DB) error
- func EnsureSchema(db *sqlx.DB, schemaName string) error
- func PruneSchemas(db *sqlx.DB, opts PruneOptions) ([]string, error)
- func ResolveGitBranch(repoRoot string) string
- func TouchSchema(db *sqlx.DB, schemaName, branchName string) error
- func WriteState(res *Result, opts Options) error
- type Config
- type Options
- type PruneOptions
- type Result
- type State
Constants ¶
View Source
const ( DefaultPrefix = "ent_dev" DefaultPruneDays = 30 MaxSchemaLen = 63 )
Variables ¶
This section is empty.
Functions ¶
func EnsureRegistry ¶
func PruneSchemas ¶
func PruneSchemas(db *sqlx.DB, opts PruneOptions) ([]string, error)
func ResolveGitBranch ¶
func WriteState ¶
Types ¶
type PruneOptions ¶
type Result ¶
type State ¶
type State struct {
SchemaName string `json:"schemaName"`
BranchName string `json:"branchName,omitempty"`
IncludePublic bool `json:"includePublic"`
IgnoreBranches []string `json:"ignoreBranches,omitempty"`
PruneEnabled bool `json:"pruneEnabled,omitempty"`
PruneDays int `json:"pruneDays,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.