go: rename module from github.com/facebook/ent => entgo.io/ent (#1226)

This commit is contained in:
Ariel Mashraki
2021-02-02 23:03:04 +02:00
committed by GitHub
parent 7a2173f20d
commit dd4792f5b3
1087 changed files with 3956 additions and 3956 deletions

View File

@@ -8,8 +8,8 @@ import (
"fmt"
"reflect"
"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"
)
// A SchemaMode defines what type of schema feature a storage driver support.
@@ -52,9 +52,9 @@ var drivers = []*Storage{
Builder: reflect.TypeOf(&sql.Selector{}),
Dialects: []string{"dialect.SQLite", "dialect.MySQL", "dialect.Postgres"},
Imports: []string{
"github.com/facebook/ent/dialect/sql",
"github.com/facebook/ent/dialect/sql/sqlgraph",
"github.com/facebook/ent/schema/field",
"entgo.io/ent/dialect/sql",
"entgo.io/ent/dialect/sql/sqlgraph",
"entgo.io/ent/schema/field",
},
SchemaMode: Unique | Indexes | Cascade | Migrate,
Ops: func(f *Field) []Op {
@@ -71,12 +71,12 @@ var drivers = []*Storage{
Builder: reflect.TypeOf(&dsl.Traversal{}),
Dialects: []string{"dialect.Gremlin"},
Imports: []string{
"github.com/facebook/ent/dialect/gremlin",
"github.com/facebook/ent/dialect/gremlin/graph/dsl",
"github.com/facebook/ent/dialect/gremlin/graph/dsl/__",
"github.com/facebook/ent/dialect/gremlin/graph/dsl/g",
"github.com/facebook/ent/dialect/gremlin/graph/dsl/p",
"github.com/facebook/ent/dialect/gremlin/encoding/graphson",
"entgo.io/ent/dialect/gremlin",
"entgo.io/ent/dialect/gremlin/graph/dsl",
"entgo.io/ent/dialect/gremlin/graph/dsl/__",
"entgo.io/ent/dialect/gremlin/graph/dsl/g",
"entgo.io/ent/dialect/gremlin/graph/dsl/p",
"entgo.io/ent/dialect/gremlin/encoding/graphson",
},
SchemaMode: Unique,
OpCode: opCodes(gremlinCode[:]),