Files
graphql-engine/cli/migrate/database/metadata.go
Pradeep Murugesan dece69c5a9 cli: add commands to manage inconsistent metadata (close #2766) (#2973)
Co-authored-by: Aravind Shankar <face11301@gmail.com>
Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
2019-12-25 14:03:06 +05:30

25 lines
455 B
Go

package database
type MetadataDriver interface {
ExportMetadata() (interface{}, error)
ResetMetadata() error
ReloadMetadata() error
GetInconsistentMetadata() (bool, []InconsistentMetadataInterface, error)
DropInconsistentMetadata() error
ApplyMetadata(data interface{}) error
Query(data []interface{}) error
}
type InconsistentMetadataInterface interface {
GetType() string
GetName() string
GetDescription() string
GetReason() string
}