mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
bb63d7e60e
Co-authored-by: Rishichandra Wawhal <rishichandra.wawhal@gmail.com> Co-authored-by: Rikin Kachhia <54616969+rikinsk@users.noreply.github.com> Co-authored-by: Aravind <aravindkp@outlook.in> Co-authored-by: Anon Ray <ecthiender@users.noreply.github.com> Co-authored-by: Shahidh K Muhammed <muhammedshahid.k@gmail.com>
34 lines
615 B
Go
34 lines
615 B
Go
package database
|
|
|
|
import (
|
|
"github.com/hasura/graphql-engine/cli/metadata/types"
|
|
"gopkg.in/yaml.v2"
|
|
)
|
|
|
|
type MetadataDriver interface {
|
|
SetMetadataPlugins(types.MetadataPlugins)
|
|
|
|
ExportMetadata() (map[string][]byte, error)
|
|
|
|
ResetMetadata() error
|
|
|
|
ReloadMetadata() error
|
|
|
|
GetInconsistentMetadata() (bool, []InconsistentMetadataInterface, error)
|
|
|
|
DropInconsistentMetadata() error
|
|
|
|
BuildMetadata() (yaml.MapSlice, error)
|
|
|
|
ApplyMetadata() error
|
|
|
|
Query(data interface{}) error
|
|
}
|
|
|
|
type InconsistentMetadataInterface interface {
|
|
GetType() string
|
|
GetName() string
|
|
GetDescription() string
|
|
GetReason() string
|
|
}
|