Shivam Sandbhor
554b9d0850
doc/website: add docs for HAVING + GROUP BY clause ( #2326 )
...
* Add docs for HAVING + GROUP BY clause
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com >
* Make review changes for docs
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com >
2022-02-15 10:21:16 +02:00
allcontributors[bot]
a7beb5c834
docs: add crossworth as a contributor for code ( #2320 )
...
* docs: update doc/md/contributors.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-02-10 16:17:57 +02:00
Pedro Henrique
f45d29ba4b
entc/gen: allow if field to use field.Other with custom types ( #2309 )
...
* fix ID with field.Other comparing with zero
* fix lint
* Update entc/integration/customid/ent/schema/other.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* re-generate code
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-02-10 16:17:16 +02:00
Ariel Mashraki
e84c3d33fe
go: update atlas to latest ( #2317 )
2022-02-09 14:14:39 +02:00
Sasha Melentyev
52d4c6986f
doc: change install command ( #2314 )
2022-02-09 14:09:11 +02:00
Giau. Tran Minh
74e988616a
doc/tutorial: document the new Bind/Unbind behavior ( #2315 )
...
* Update tutorial-todo-gql-field-collection.md
* Update doc/md/tutorial-todo-gql-field-collection.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-02-06 17:48:02 +02:00
유용환
8e9e6343f4
schema/edge: fix grammar in godoc ( #2313 )
2022-02-06 12:37:02 +02:00
Ariel Mashraki
770e4d24e9
entc/gen: add Type.IsInt64 helper function for fields
2022-02-04 22:46:17 +02:00
Ariel Mashraki
1d3f1819ae
entc/gen: replace Type.Alias with Type.PackageAlias
2022-02-04 22:46:17 +02:00
Andy Day
2e906bffa2
cmd/ent: Add check that model file doesn't already exist on ent init ( #2307 )
...
Previously if you run it would overwrite an existing file if that already existed. Now checks if that file already exists, and returns an error if so.
2022-02-03 01:44:04 +02:00
Ariel Mashraki
0e49dd1d9f
entc/gen: support local package names for generated packages
...
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).
2022-02-02 15:50:00 +02:00
Ariel Mashraki
51663407cf
dialect/sql/schema: support DESC indexes using atlasgo.io
2022-01-31 15:18:09 +02:00
Ariel Mashraki
94499bd141
dialect/entsql: add support for DESC indexes annotation
2022-01-31 15:18:09 +02:00
allcontributors[bot]
25f6af1e11
docs: add hezhizhen as a contributor for code ( #2302 )
...
* docs: update doc/md/contributors.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-01-29 10:32:56 +02:00
Zhizhen He
9da36e461f
all: fix typos ( #2301 )
2022-01-29 10:30:31 +02:00
Sasha Melentyev
c7e544c959
ci: bump golangci-lint version ( #2294 )
2022-01-27 13:19:36 +02:00
MasseElch
1049e874ac
doc/md: Adding entoas to popular extensions. ( #2293 )
2022-01-25 11:12:15 +02:00
Ariel Mashraki
f8c0f02803
schema/field: add support for type-aware Default and UpdateDefault in time fields ( #2289 )
2022-01-24 14:27:57 +02:00
Ariel Mashraki
898991ac79
entc/gen: set foreign-key columns non-nullable for required edges ( #1703 )
...
Note, this only applies to edges without circular references.
Fixed #1688 and #1374
2022-01-23 22:23:37 +02:00
allcontributors[bot]
1901cba436
docs: add iamnande as a contributor for code ( #2285 )
...
* docs: update doc/md/contributors.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-01-23 19:08:08 +02:00
Nicholas Anderson
896f2b202d
entc/gen: update NotSingularError godoc ( #2274 )
...
* 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 >
2022-01-23 19:07:10 +02:00
Ariel Mashraki
84aac96a1c
go: update atlas to latest ( #2281 )
v0.10.0
2022-01-21 01:01:20 +02:00
Ariel Mashraki
339e3600a5
website/blog: ent v0.10 ( #2280 )
2022-01-20 23:03:01 +02:00
Ariel Mashraki
60e03285d0
dialect/sql/schema: hello ariga.io/atlas ( #2279 )
2022-01-20 17:20:50 +02:00
dependabot[bot]
05590433a7
build(deps): bump aws-actions/configure-aws-credentials ( #2275 )
...
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials ) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases )
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/master/CHANGELOG.md )
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1.6.0...v1.6.1 )
---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-01-19 09:15:05 +02:00
Ariel Mashraki
b70754d12f
dialect/sql/sqlgraph: avoid creating tx blocks for single statement batch-create operation ( #2272 )
...
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
2022-01-15 23:04:37 +02:00
allcontributors[bot]
3a426390de
docs: add cjraa as a contributor for code ( #2267 )
...
* docs: update doc/md/contributors.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-01-13 13:39:42 +02:00
Clarence
eca70b8490
schema/field: array types are nillable ( #2266 )
...
* all: type fixes
* schema/field: remove array check from goType
2022-01-13 13:39:11 +02:00
allcontributors[bot]
565e4ffdfc
docs: add genevieve as a contributor for code ( #2265 )
...
* docs: update doc/md/contributors.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-01-13 12:52:45 +02:00
Genevieve
16e57a92c5
entc/gen: spelling fix in error message ( #2262 )
2022-01-13 12:51:37 +02:00
Ariel Mashraki
08ba217a28
entc/integration: rename uuid to optional_uuid to allow nillable setters for array types ( #2264 )
2022-01-13 12:41:35 +02:00
s-takehana
0fd6143979
dialect/sql/schema: support time with time zone and time without time zone ( #2257 )
...
* dialect/sql/schema: support `time with time zone` and `time without time zone`
* fix test
* fix test
2022-01-12 14:33:26 +02:00
allcontributors[bot]
3f6121b013
docs: add Laconty as a contributor for code ( #2261 )
...
* docs: update doc/md/contributors.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-01-12 14:32:36 +02:00
Roman Maklakov
84070a0f07
entc/gen: add ctx in client.BeginTx ( #2260 )
...
* doc: fix docker-compose up command(#2253 )
* entc/gen: add ctx in TxBegin & run go generate (#2253 )
* entc/integration: add tests for TxBegin Commit and Rollback (#2253 )
* entc/integration: uncomment accidentally commented code(#2253 )
* entc/integration: fixes after code-review (#2253 )
* entc/integration: remove blank lines, code-review (#2253 )
* examples: run code gen (#2253 )
2022-01-12 14:28:55 +02:00
Ariel Mashraki
6848f3fc7b
dialect/sql/schema: do not sort primary-key columns before diff ( #2254 )
...
PKs are indexes and therefore, the order does matter.
Thanks to ariga.io/atlas we found this issue.
2022-01-09 15:37:21 +02:00
Sasha Melentyev
f5fed28782
all: fix typos ( #2243 )
...
* refactor(all): Fix typo and small refactor
* refactor(all): Fix typo
2022-01-05 16:10:28 +02:00
MasseElch
84ca961938
entc/gen: there was a typo in Ty interfaces ( #2251 )
2022-01-05 16:09:48 +02:00
Bodo Kaiser
6dc452f23d
website/blog: add article for using ent in serverless GraphQL using AWS ( #2206 )
...
* 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 >
2022-01-04 14:07:40 +02:00
vecpeng
938ce8c16b
doc: modify some Chinese translation
2021-12-30 17:59:53 +02:00
dependabot[bot]
ffd9d9f885
build(deps): bump actions/setup-node from 2.5.0 to 2.5.1
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 2.5.0 to 2.5.1.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v2.5.0...v2.5.1 )
---
updated-dependencies:
- dependency-name: actions/setup-node
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-30 12:15:56 +02:00
dependabot[bot]
fe7bbd6e5e
build(deps): bump github.com/mattn/go-sqlite3 from 1.14.9 to 1.14.10
...
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3 ) from 1.14.9 to 1.14.10.
- [Release notes](https://github.com/mattn/go-sqlite3/releases )
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.9...v1.14.10 )
---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2021-12-30 12:15:47 +02:00
Ariel Mashraki
deb63d0292
dialect/sql: support passing selectors to basic predicates
...
Closed https://github.com/ent/ent/issues/2236
2021-12-25 15:02:49 +02:00
Ariel Mashraki
d9cdec1094
go: update golang.org/x/tools to latest
2021-12-21 15:25:45 +02:00
Mehmet Yılmaz
4d01a56b8d
dialect/sql/schema: allow adding DEFAULT to columns on migration #1758 ( #2199 )
...
* add feature to SET DEFAULT value when add new default value to a existing column
* refactoring unit tests
* correct misspells
* code review refactors
* refactors
* Update dialect/sql/schema/postgres.go
* Update dialect/sql/schema/postgres.go
* Update dialect/sql/schema/postgres.go
* Update dialect/sql/schema/postgres.go
* Update dialect/sql/schema/postgres.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2021-12-20 11:29:07 +02:00
allcontributors[bot]
71af8263d7
docs: add m3hm3t as a contributor for code ( #2225 )
...
* docs: update doc/md/contributors.md [skip ci]
* docs: update .all-contributorsrc [skip ci]
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-12-20 11:23:18 +02:00
Mehmet Yılmaz
8a6ff230c8
dialect/sql/schema: convert column type string to lower case ( #2222 )
...
Fixed #2209
* convert column type string to lower case
* Update dialect/sql/schema/sqlite.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2021-12-19 21:02:06 +02:00
Ariel Mashraki
1c263c7abd
dialect/sql: add support for SelectExpr ( #2220 )
2021-12-16 13:50:03 +02:00
Sungyun Hur
f0ca97d309
doc/indexes: add storage key section ( #2218 )
2021-12-14 19:14:04 +02:00
MasseElch
76770e8a52
entc/gen: don't rely on descriptor when retrieving enum values or names to ease extension testibility ( #2211 )
...
Trying to add tests to some extensions and this is complicating things a lot because `Field.def` is unexported. Not taking the length of `def.Enums` but `Enums` directly fixes this. It technically is also more correct, because `f.Enums` could be greater than `f.def.Enums`.
2021-12-11 14:25:02 +02:00
Jeremy Maxey-Vesperman
5dddeef736
doc/website/blog: add list blogpost ( #2207 )
2021-12-09 16:33:08 +02:00