mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
go: rename module from github.com/facebook/ent => entgo.io/ent (#1226)
This commit is contained in:
@@ -18,7 +18,7 @@ import (
|
||||
"{{ $.Config.Package }}/{{ $n.Package }}"
|
||||
{{- end }}
|
||||
|
||||
"github.com/facebook/ent"
|
||||
"entgo.io/ent"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -296,4 +296,4 @@ func ({{ $receiver }} *{{ $onebuilder }}) ExecX(ctx context.Context) {
|
||||
}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -17,7 +17,7 @@ import (
|
||||
"{{ $n.Config.Package }}/{{ $n.Package }}"
|
||||
{{- end }}
|
||||
|
||||
"github.com/facebook/ent/dialect"
|
||||
"entgo.io/ent/dialect"
|
||||
{{ range $_, $import := $.Storage.Imports -}}
|
||||
"{{ $import }}"
|
||||
{{ end -}}
|
||||
|
||||
@@ -15,10 +15,10 @@ import (
|
||||
"{{ $.Config.Package }}/{{ $n.Package }}"
|
||||
{{- end }}
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/entql"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/entql"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// schemaGraph holds a representation of ent/schema at runtime.
|
||||
|
||||
@@ -178,4 +178,4 @@ func NewSchemaConfigContext(parent context.Context, config SchemaConfig) context
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
step.Edge.Schema = schemaConfig.{{ $schema }}
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
@@ -80,4 +80,4 @@ func ValidColumn(column string) bool {
|
||||
{{- end }}
|
||||
return false
|
||||
}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -379,4 +379,4 @@ func ({{ $receiver }} *{{ $builder }}) sqlQuery(ctx context.Context) *sql.Select
|
||||
return &ValidationError{Name: f, err: fmt.Errorf("{{ $pkg }}: invalid field %q for query", f)}
|
||||
}
|
||||
}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@@ -20,7 +20,7 @@ import (
|
||||
_ "{{ $.Config.Package }}/runtime"
|
||||
|
||||
{{ if $.SupportMigrate }}
|
||||
"github.com/facebook/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
{{ end }}
|
||||
)
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ import (
|
||||
{{- /* Import external packages */}}
|
||||
{{- template "import/types" $ }}
|
||||
{{- end }}
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/dialect"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect"
|
||||
{{- with $.Storage }}
|
||||
{{- range $import := .Imports }}
|
||||
"{{ $import }}"
|
||||
@@ -55,4 +55,4 @@ import (
|
||||
{{- xtemplate $tmpl $ }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -14,4 +14,4 @@ in the LICENSE file in the root directory of this source tree.
|
||||
package internal
|
||||
|
||||
const Schema = `{{ .SchemaSnapshot }}`
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
@@ -14,8 +14,8 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect"
|
||||
"github.com/facebook/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/dialect"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -15,9 +15,9 @@ import (
|
||||
"{{ $.Config.Package }}/{{ $n.Package }}"
|
||||
{{- end }}
|
||||
|
||||
"github.com/facebook/ent/dialect/entsql"
|
||||
"github.com/facebook/ent/dialect/sql/schema"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/entsql"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -13,8 +13,8 @@ in the LICENSE file in the root directory of this source tree.
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect/gremlin/graph/dsl"
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/gremlin/graph/dsl"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
{{ range $_, $n := $.Nodes -}}
|
||||
|
||||
@@ -13,7 +13,7 @@ in the LICENSE file in the root directory of this source tree.
|
||||
import (
|
||||
"{{ $.Config.Package }}"
|
||||
|
||||
"github.com/facebook/ent/privacy"
|
||||
"entgo.io/ent/privacy"
|
||||
)
|
||||
|
||||
{{ $pkg := base $.Config.Package }}
|
||||
|
||||
@@ -75,8 +75,8 @@ import (
|
||||
{{- template "import/types" $n }}
|
||||
{{- end }}
|
||||
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/privacy"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/privacy"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@ import (
|
||||
"context"
|
||||
"sync"
|
||||
|
||||
"github.com/facebook/ent/dialect"
|
||||
"entgo.io/ent/dialect"
|
||||
)
|
||||
|
||||
// Tx is a transactional client that is created by calling Client.Tx().
|
||||
|
||||
@@ -150,4 +150,4 @@ func Not(p predicate.{{ $.Name }}) predicate.{{ $.Name }} {
|
||||
{{ end }}
|
||||
|
||||
{{/* A template that can be overridden in order to add additional code for the type package. */}}
|
||||
{{ define "where/additional" }}{{ end }}
|
||||
{{ define "where/additional" }}{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user