Files
ent/entc/gen/template/internal.tmpl
Jannik Clausen 05c977357f dialect/sql/schema: add schema dump command (#4296)
* dialect/sql/schema: add schema dump command

* entc/gen/template: drop build flag from generated globalid.go
2025-01-15 16:24:02 +01:00

29 lines
731 B
Cheetah

{{/*
Copyright 2019-present Facebook Inc. All rights reserved.
This source code is licensed under the Apache 2.0 license found
in the LICENSE file in the root directory of this source tree.
*/}}
{{/* gotype: entgo.io/ent/entc/gen.Graph */}}
{{ define "internal/schema" }}
{{ with $.Header }}{{ . }}{{ else }}// Code generated by ent, DO NOT EDIT.{{ end }}
// +build tools
// Package internal holds a loadable version of the latest schema.
package internal
const Schema = {{ .SchemaSnapshot }}
{{ end }}
{{ define "internal/globalid" }}
{{ with $.Header }}{{ . }}{{ else }}// Code generated by ent, DO NOT EDIT.{{ end }}
package internal
const IncrementStarts = {{ .Annotations.IncrementStarts | json | quote }}
{{ end }}