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

Method setDefaults

cli/migrate/api/squash.go:27–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25}
26
27func (s *squashCreateRequest) setDefaults() {
28 if s.Name == "" {
29 s.Name = "default_squash"
30 }
31 startTime := time.Now()
32 s.version = startTime.UnixNano() / int64(time.Millisecond)
33}
34
35func SquashCreateAPI(c *gin.Context) {
36 migratePtr, ok := c.Get("migrate")

Callers 1

SquashCreateAPIFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected