MCPcopy
hub / github.com/hasura/graphql-engine / Query

Method Query

cli/migrate/migrate.go:454–468  ·  view source on GitHub ↗
(data interface{})

Source from the content-addressed store, hash-verified

452}
453
454func (m *Migrate) Query(data interface{}) error {
455 var op herrors.Op = "migrate.Migrate.Query"
456 mode, err := m.databaseDrv.GetSetting("migration_mode")
457 if err != nil {
458 return herrors.E(op, err)
459 }
460
461 if mode == "true" {
462 return herrors.E(op, ErrMigrationMode)
463 }
464 if err = m.databaseDrv.Query(data); err != nil {
465 return herrors.E(op, err)
466 }
467 return nil
468}
469
470// Squash migrations from version v into a new migration.
471// Returns a list of migrations that are squashed: vs

Callers 1

MetadataAPIFunction · 0.95

Calls 2

GetSettingMethod · 0.65
QueryMethod · 0.65

Tested by

no test coverage detected