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

Method SetVersion

cli/migrate/database/driver.go:80–80  ·  view source on GitHub ↗

SetVersion saves version and dirty state. Migrate will call this function before and after each call to Run. version must be >= -1. -1 means NilVersion.

(version int64, dirty bool)

Source from the content-addressed store, hash-verified

78 // Migrate will call this function before and after each call to Run.
79 // version must be >= -1. -1 means NilVersion.
80 SetVersion(version int64, dirty bool) error
81
82 RemoveVersion(version int64) error
83

Callers 3

QueryWithVersionMethod · 0.65
runMigrationsMethod · 0.65
SetVersionMethod · 0.65

Calls

no outgoing calls

Tested by

no test coverage detected