mirror of
https://github.com/ent/ent.git
synced 2026-05-22 09:31:45 +03:00
go: rename module from github.com/facebook/ent => entgo.io/ent (#1226)
This commit is contained in:
@@ -10,8 +10,8 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
)
|
||||
|
||||
// City is the model entity for the City schema.
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
package city
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// CityCreate is the builder for creating a City entity.
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// CityDelete is the builder for deleting a City entity.
|
||||
|
||||
@@ -13,12 +13,12 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// CityQuery is the builder for querying City entities.
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// CityUpdate is the builder for updating City entities.
|
||||
|
||||
@@ -11,14 +11,14 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/migrate"
|
||||
"entgo.io/ent/examples/edgeindex/ent/migrate"
|
||||
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
|
||||
"github.com/facebook/ent/dialect"
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/dialect"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
// Client is the client that holds all ent builders.
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
package ent
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/dialect"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect"
|
||||
)
|
||||
|
||||
// Option function to configure the client.
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/dialect"
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/dialect"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
)
|
||||
|
||||
// ent aliases to avoid import conflicts in user's code.
|
||||
|
||||
@@ -9,11 +9,11 @@ package enttest
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/facebook/ent/examples/edgeindex/ent"
|
||||
"entgo.io/ent/examples/edgeindex/ent"
|
||||
// required by schema hooks.
|
||||
_ "github.com/facebook/ent/examples/edgeindex/ent/runtime"
|
||||
_ "entgo.io/ent/examples/edgeindex/ent/runtime"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
)
|
||||
|
||||
type (
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
package ent
|
||||
|
||||
//go:generate go run github.com/facebook/ent/cmd/ent generate --header "// Copyright 2019-present Facebook Inc. All rights reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema
|
||||
//go:generate go run entgo.io/ent/cmd/ent generate --header "// Copyright 2019-present Facebook Inc. All rights reserved.\n// This source code is licensed under the Apache 2.0 license found\n// in the LICENSE file in the root directory of this source tree.\n\n// Code generated by entc, DO NOT EDIT." ./schema
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/examples/edgeindex/ent"
|
||||
"entgo.io/ent/examples/edgeindex/ent"
|
||||
)
|
||||
|
||||
// The CityFunc type is an adapter to allow the use of ordinary
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
|
||||
"github.com/facebook/ent/dialect"
|
||||
"github.com/facebook/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/dialect"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
package migrate
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent/dialect/sql/schema"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql/schema"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -11,11 +11,11 @@ import (
|
||||
"fmt"
|
||||
"sync"
|
||||
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
|
||||
"github.com/facebook/ent"
|
||||
"entgo.io/ent"
|
||||
)
|
||||
|
||||
const (
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
package predicate
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
)
|
||||
|
||||
// City is the predicate function for city builders.
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
package runtime
|
||||
|
||||
// The schema-stitching logic is generated in github.com/facebook/ent/examples/edgeindex/ent/runtime.go
|
||||
// The schema-stitching logic is generated in entgo.io/ent/examples/edgeindex/ent/runtime.go
|
||||
|
||||
const (
|
||||
Version = "(devel)" // Version of ent codegen.
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
package schema
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/schema/edge"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/edge"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// City holds the schema definition for the City entity.
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
package schema
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent"
|
||||
"github.com/facebook/ent/schema/edge"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"github.com/facebook/ent/schema/index"
|
||||
"entgo.io/ent"
|
||||
"entgo.io/ent/schema/edge"
|
||||
"entgo.io/ent/schema/field"
|
||||
"entgo.io/ent/schema/index"
|
||||
)
|
||||
|
||||
// Street holds the schema definition for the Street entity.
|
||||
|
||||
@@ -10,9 +10,9 @@ import (
|
||||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
)
|
||||
|
||||
// Street is the model entity for the Street schema.
|
||||
|
||||
@@ -7,9 +7,9 @@
|
||||
package street
|
||||
|
||||
import (
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
)
|
||||
|
||||
// ID filters vertices based on their ID field.
|
||||
|
||||
@@ -11,10 +11,10 @@ import (
|
||||
"errors"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// StreetCreate is the builder for creating a Street entity.
|
||||
|
||||
@@ -10,11 +10,11 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// StreetDelete is the builder for deleting a Street entity.
|
||||
|
||||
@@ -12,12 +12,12 @@ import (
|
||||
"fmt"
|
||||
"math"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// StreetQuery is the builder for querying Street entities.
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/facebook/ent/dialect/sql"
|
||||
"github.com/facebook/ent/dialect/sql/sqlgraph"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/city"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/predicate"
|
||||
"github.com/facebook/ent/examples/edgeindex/ent/street"
|
||||
"github.com/facebook/ent/schema/field"
|
||||
"entgo.io/ent/dialect/sql"
|
||||
"entgo.io/ent/dialect/sql/sqlgraph"
|
||||
"entgo.io/ent/examples/edgeindex/ent/city"
|
||||
"entgo.io/ent/examples/edgeindex/ent/predicate"
|
||||
"entgo.io/ent/examples/edgeindex/ent/street"
|
||||
"entgo.io/ent/schema/field"
|
||||
)
|
||||
|
||||
// StreetUpdate is the builder for updating Street entities.
|
||||
|
||||
@@ -10,7 +10,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().
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
|
||||
"github.com/facebook/ent/examples/edgeindex/ent"
|
||||
"entgo.io/ent/examples/edgeindex/ent"
|
||||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user