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

@@ -15,8 +15,8 @@ import (
"strings"
"text/template"
"github.com/facebook/ent/entc"
"github.com/facebook/ent/entc/gen"
"entgo.io/ent/entc"
"entgo.io/ent/entc/gen"
)
func main() {

View File

@@ -11,12 +11,12 @@ import (
"fmt"
"log"
"github.com/facebook/ent/examples/entcpkg/ent/migrate"
"entgo.io/ent/examples/entcpkg/ent/migrate"
"github.com/facebook/ent/examples/entcpkg/ent/user"
"entgo.io/ent/examples/entcpkg/ent/user"
"github.com/facebook/ent/dialect"
"github.com/facebook/ent/dialect/sql"
"entgo.io/ent/dialect"
"entgo.io/ent/dialect/sql"
)
// Client is the client that holds all ent builders.

View File

@@ -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.

View File

@@ -6,7 +6,7 @@
package ent
import "github.com/facebook/ent/dialect"
import "entgo.io/ent/dialect"
func (c *UserClient) Debug() *UserClient {
if c.debug {

View File

@@ -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.

View File

@@ -11,8 +11,8 @@ import (
"strings"
"text/template"
"github.com/facebook/ent/entc"
"github.com/facebook/ent/entc/gen"
"entgo.io/ent/entc"
"entgo.io/ent/entc/gen"
)
func main() {

View File

@@ -9,11 +9,11 @@ package enttest
import (
"context"
"github.com/facebook/ent/examples/entcpkg/ent"
"entgo.io/ent/examples/entcpkg/ent"
// required by schema hooks.
_ "github.com/facebook/ent/examples/entcpkg/ent/runtime"
_ "entgo.io/ent/examples/entcpkg/ent/runtime"
"github.com/facebook/ent/dialect/sql/schema"
"entgo.io/ent/dialect/sql/schema"
)
type (

View File

@@ -10,7 +10,7 @@ import (
"context"
"fmt"
"github.com/facebook/ent/examples/entcpkg/ent"
"entgo.io/ent/examples/entcpkg/ent"
)
// The UserFunc type is an adapter to allow the use of ordinary

View File

@@ -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 (

View File

@@ -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 (

View File

@@ -11,8 +11,8 @@ import (
"fmt"
"sync"
"github.com/facebook/ent"
"github.com/facebook/ent/examples/entcpkg/ent/predicate"
"entgo.io/ent"
"entgo.io/ent/examples/entcpkg/ent/predicate"
)
const (

View File

@@ -7,7 +7,7 @@
package predicate
import (
"github.com/facebook/ent/dialect/sql"
"entgo.io/ent/dialect/sql"
)
// User is the predicate function for user builders.

View File

@@ -6,7 +6,7 @@
package runtime
// The schema-stitching logic is generated in github.com/facebook/ent/examples/entcpkg/ent/runtime.go
// The schema-stitching logic is generated in entgo.io/ent/examples/entcpkg/ent/runtime.go
const (
Version = "(devel)" // Version of ent codegen.

View File

@@ -4,7 +4,7 @@
package schema
import "github.com/facebook/ent"
import "entgo.io/ent"
// User holds the schema definition for the User entity.
type User struct {

View File

@@ -19,4 +19,4 @@
}
{{ end }}
{{ end }}
{{ end }}

View File

@@ -6,4 +6,4 @@
// StaticField defined by templates (titled {{ title "staticField" }}).
StaticField string `json:"static_field,omitempty"`
{{- end }}
{{ end }}
{{ end }}

View File

@@ -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().

View File

@@ -10,8 +10,8 @@ import (
"fmt"
"strings"
"github.com/facebook/ent/dialect/sql"
"github.com/facebook/ent/examples/entcpkg/ent/user"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/examples/entcpkg/ent/user"
)
// User is the model entity for the User schema.

View File

@@ -7,8 +7,8 @@
package user
import (
"github.com/facebook/ent/dialect/sql"
"github.com/facebook/ent/examples/entcpkg/ent/predicate"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/examples/entcpkg/ent/predicate"
)
// ID filters vertices based on their ID field.

View File

@@ -10,9 +10,9 @@ import (
"context"
"fmt"
"github.com/facebook/ent/dialect/sql/sqlgraph"
"github.com/facebook/ent/examples/entcpkg/ent/user"
"github.com/facebook/ent/schema/field"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/examples/entcpkg/ent/user"
"entgo.io/ent/schema/field"
)
// UserCreate is the builder for creating a User entity.

View File

@@ -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/entcpkg/ent/predicate"
"github.com/facebook/ent/examples/entcpkg/ent/user"
"github.com/facebook/ent/schema/field"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/examples/entcpkg/ent/predicate"
"entgo.io/ent/examples/entcpkg/ent/user"
"entgo.io/ent/schema/field"
)
// UserDelete is the builder for deleting a User entity.

View File

@@ -12,11 +12,11 @@ import (
"fmt"
"math"
"github.com/facebook/ent/dialect/sql"
"github.com/facebook/ent/dialect/sql/sqlgraph"
"github.com/facebook/ent/examples/entcpkg/ent/predicate"
"github.com/facebook/ent/examples/entcpkg/ent/user"
"github.com/facebook/ent/schema/field"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/examples/entcpkg/ent/predicate"
"entgo.io/ent/examples/entcpkg/ent/user"
"entgo.io/ent/schema/field"
)
// UserQuery is the builder for querying User entities.

View File

@@ -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/entcpkg/ent/predicate"
"github.com/facebook/ent/examples/entcpkg/ent/user"
"github.com/facebook/ent/schema/field"
"entgo.io/ent/dialect/sql"
"entgo.io/ent/dialect/sql/sqlgraph"
"entgo.io/ent/examples/entcpkg/ent/predicate"
"entgo.io/ent/examples/entcpkg/ent/user"
"entgo.io/ent/schema/field"
)
// UserUpdate is the builder for updating User entities.

View File

@@ -9,7 +9,7 @@ import (
"fmt"
"log"
"github.com/facebook/ent/examples/entcpkg/ent"
"entgo.io/ent/examples/entcpkg/ent"
_ "github.com/mattn/go-sqlite3"
)