* doc/md: versioned migrations
* doc/md: move to own page
* doc/md: add example for migrations from graph
* doc/md: add image
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* doc/md: format examples
* doc/md: mention versioned migrations in offline migration
* doc/md: add instructions how to run a main.go file
* doc/md: add instructions how to move from auto migrate to versioned migration
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* dialect/sql/schema: fix go doc
* all: update atlas
* dialect/sql/schema: diff connected DB and defined schema and write changes to migration file
* dialect/sql/schema: use migration directory and formatter directly instead of a planner
* all: update atlas
* cmd: add command to create a new migration file
* entc/gen: generate main.go with migrate diff example
* all: regenerate
* cmd/internal/base: make linter happy
* all: support Go 1.16 in versioned migrations main.go
* entc/gen: put versioned migrations behind feature flag
* all: regenerate
* cmd/ent: driver-prefixed dsn in migrate diff command
* cmd/internal/base: remove prefix from migrate import
* cmd/internal/base: use cobra.CheckErr
* cmd: remove diff command
* entc/gen/template/dialect/sql/feature: remove generated main.go
* all: rebase on master and go mod tidy
* all: regenerate
* fix(query): fix missing unique field in query builder template
when a query gets cloned the unique field doesn't get cloned
#2331
* fix(query): added missing go generate ./...
#2331
* fix(query): added missing go generate ./...
#2331
The new Alias option adds package aliases (local names) for all type-packages that
their import identifier conflicts with user-defined packages (i.e. GoType).
* fix: update only/onlyID comments
this patch updates the Only/OnlyID methods in the builder template from:
> // Returns a *NotSingularError when exactly one {{ $.Name }} entity is not found.
to
> // Returns a *NotSingularError when more than exactly one {{ $.Name }} ID is found.
in an effort to be more explicit in the explanation of the behavior of the methods.
* fix: update wording to be more concise from suggestion
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
* fix: update Only wording to be more concicse
* fix: generate new files
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
For example, in PostgreSQL, every statement is executed within a transaction. Therefore, we can avoid creating transaction
blocks manually (group of statements surrounded by BEGIN and COMMIT) for CreateNode operation with single SQL statement.
Benchmark was improved from:
(4000 BatchInserts) 17.16s 4289178 ns/op 412893 B/op 4913 allocs/op
To:
(4000 BatchInserts) 9.16s 2288807 ns/op 412142 B/op 4899 allocs/op
* added aws-appsync.md to doc/website/blog
* completed introduction for serverless graphql using aws blog article
* Update doc/website/blog/serverless-graphql-using-aws.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
* Update doc/website/blog/serverless-graphql-using-aws.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
* Update doc/website/blog/serverless-graphql-using-aws.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
* Update doc/website/blog/serverless-graphql-using-aws.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
* added graphql schema
* made title in AddTodoInput required
* added setup of entgo project
* added screenshots for setting up AWS AppSync
* added go, graphql, resolver template code
* added description for setting up AWS AppSync API
* completed AWS Lambda set up section
* added description to configuring ent Lambda as AppSync data source
* completed first draft of blog article
* added missing screenshots
* proof read of the tutorial
* Update doc/website/blog/serverless-graphql-using-aws.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
* incorporated some feedback from code review
* added comments to Go code, line highlighting for Todo schema, incorporated feedback from Ariel
* prefixed serverless blog article with publication date, simplified go
project setup commands
* Update doc/website/blog/2022-01-04-serverless-graphql-using-aws.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>