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:
@@ -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[:]),
|
||||
|
||||
Reference in New Issue
Block a user