Pedro Henrique
604c4942a4
dialect/sql: improve support for subqueries ( #3274 )
2023-01-26 09:43:07 +02:00
dependabot[bot]
5e852a16f7
build(deps): bump golangci/golangci-lint-action from 3.3.1 to 3.4.0 ( #3269 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3.3.1 to 3.4.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.3.1...v3.4.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
v0.11.7
2023-01-24 15:10:37 +02:00
Ariel Mashraki
d66350ae40
entc/gen: add support for DeleteOne with predicates ( #3271 )
...
Also, fixed a bug in DeleteOne.Exec where it was skipping NotFoundError
2023-01-24 15:10:20 +02:00
Ariel Mashraki
b95c3c5251
examples: go generate ( #3270 )
2023-01-24 10:09:02 +02:00
Ariel Mashraki
307eb5e30b
doc/edges: add erds to examples ( #3268 )
2023-01-23 15:53:33 +02:00
sisterdong
c9445d2794
entc/gen: make interceptor works for eager loading m2m edges ( #3257 )
...
* entc/gen: make interceptor works for eager loading m2m edges
* entc/gen: make interceptor works for eager loading m2m edges
* entc/gen: fix indent
* entc/gen: go generate example
2023-01-23 15:42:08 +02:00
Ariel Mashraki
6db3e0a59b
entc/load: better error reporting for import cycles ( #3266 )
2023-01-22 18:36:22 +02:00
Ariel Mashraki
8ca8f682a4
go: update ariga.io/atlas ( #3260 )
v0.11.6
2023-01-19 17:12:15 +02:00
Ariel Mashraki
7ed84a86a8
dialect/sql/schema: skip destructive table changes ( #3253 )
...
This will be fixed also in Atlas, but having this extra safety here feels safer
2023-01-19 15:33:17 +02:00
Ariel Mashraki
a85377846f
doc/versioned: more examples on how to install and execute migrate lint ( #3249 )
2023-01-17 16:30:27 +02:00
Ariel Mashraki
990bf269ff
examples/encryptfield: add an example using go.cloud ( #3246 )
2023-01-16 11:48:09 +02:00
Travis Cline
cb320767c4
entc/load: return errors from all loaded packages ( #3243 )
2023-01-16 10:59:49 +02:00
Ariel Mashraki
c5e08f20c1
doc/interceptors: document ent.QueryContext usage
2023-01-14 22:47:54 +02:00
Ariel Mashraki
ef0427550f
ent: add additional fields to QueryContext
2023-01-14 22:47:54 +02:00
Ariel Mashraki
20d92f240f
examples: go mod examples directory ( #3234 )
2023-01-11 14:15:02 +02:00
Ariel Mashraki
236cd2920c
entc/gen: use consistent per-node client names ( #3233 )
...
Fixed https://github.com/ent/ent/issues/3230
2023-01-11 12:09:13 +02:00
Henrique Corrêa
efa74d81fc
doc/md: fix two broken links on dialects.md ( #3228 )
2023-01-10 18:52:22 +02:00
Ariel Mashraki
64180cce90
entc/gen: avoid codegen conflict with one letter (n) receivers ( #3227 )
2023-01-10 15:10:22 +02:00
Ariel Mashraki
fa1cf83fdd
dialect/sql/sqlgraph: ignore ORDER BY clauses in COUNT queries ( #3226 )
2023-01-10 14:03:29 +02:00
dependabot[bot]
27a9db528b
build(deps): bump json5 from 2.2.1 to 2.2.3 in /doc/website ( #3218 )
...
Bumps [json5](https://github.com/json5/json5 ) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases )
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md )
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3 )
---
updated-dependencies:
- dependency-name: json5
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-09 11:58:55 +02:00
Ido Salomon
861532c350
doc/md: fix broken link to Field Collection tutorial ( #3216 )
2023-01-09 00:09:08 +07:00
Tetsuya Yamamoto
19670ad4b5
doc: fix typo annotation to annotations in schema-indexes ( #3215 )
2023-01-08 15:27:40 +02:00
Ariel Mashraki
b88f45aa78
entc/gen: skip executing sub-query for empty set of edges ( #3212 )
2023-01-07 08:54:18 +02:00
Ryan Hall
b7da6253b6
entc/gen: do not increment idx for interceptors when a policy is present ( #3211 )
v0.11.5
2023-01-06 22:05:20 +02:00
Ariel Mashraki
430114433a
entc/gen: explicitly import node packages in generate ent.go file ( #3209 )
...
Fixed https://github.com/ent/ent/issues/3208
2023-01-04 10:47:04 +02:00
Ariel Mashraki
542f36d4ab
entc/gen: skip checking required fields with db-based default values ( #3204 )
2023-01-02 22:59:27 +02:00
Ariel Mashraki
41bf915604
entc/gen: support setting default values/exprs for edge-fields ( #3203 )
2023-01-02 14:19:01 +02:00
Journey K
c07eff2260
doc: fix typo in versioned migrations instructions( #3200 )
2023-01-01 08:53:52 +02:00
Shani
1a0ffe6441
doc: change newsletter link to Substack ( #3195 )
...
Co-authored-by: Shani Cohen <shanicohen@Shanis-MacBook-Air.local >
2022-12-28 10:58:55 +02:00
Pedro Henrique
8307c2eaba
entc/gen: copies interceptors on Clone ( #3194 )
2022-12-28 06:29:48 +02:00
Ariel Mashraki
c868f4a174
doc: add entsql.WithComments annotation ( #3192 )
2022-12-26 16:56:49 +02:00
Ariel Mashraki
136807549d
dialect/entsql: supports setting SQL column comments ( #3191 )
...
* feat: Add column comment in SQL DDL, using EntSQL annotations to achieve it.
* Update annotation.go
* fix lint
* Add table primary key column comment
* entsql.Comment(string) is unnecessary
* entc/gen: minor changes to entsql.WithComments + add tests
Co-authored-by: chenghonour <wantto@outlook.com >
2022-12-26 14:48:37 +02:00
Dany Henriquez
038cc0cace
Fix documentation (Remove deprecated call) ( #3181 )
2022-12-22 12:21:26 +02:00
Ariel Mashraki
33478c5fca
examples/jsonencode: skip nodes without edges in template ( #3187 )
2022-12-21 15:43:51 +02:00
Ariel Mashraki
92bacc10e4
entc/gen: add typed traversers and interceptors ( #3182 )
2022-12-20 11:12:19 +02:00
Ariel Mashraki
34bd0b7b6f
entc/gen: move mutation hooks logic to a shared generic function ( #3180 )
2022-12-19 17:36:29 +02:00
Yoni Davidson
4e662b9e51
doc/md: update join community page ( #3178 )
2022-12-19 15:18:53 +02:00
Giau. Tran Minh
2d01111f48
doc/md: create edges with mutation ( #3170 )
...
* doc/md: create edges with mutation
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
* fix: move new content to the end
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
* chore: apply suggestions from code review
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
2022-12-19 15:12:28 +02:00
Ariel Mashraki
68a4533574
entc/gen: use new sql predicates to reduce codegen size ( #3179 )
2022-12-19 11:40:39 +02:00
Ariel Mashraki
f226627d67
ent: export query interceptors ( #3157 )
2022-12-19 10:17:10 +02:00
Ariel Mashraki
3328201ba8
go: update ariga.io/atlas version ( #3169 )
2022-12-12 22:08:03 +02:00
Andy Day
63c123f36c
schema: add Comment annotation ( #3164 )
...
* Add schema.CommentAnnotation (resolves #3155 )
Adds new mechanism for customizing a model's godoc comment in code (via an Annotation).
* feedback
2022-12-10 23:30:45 +02:00
dependabot[bot]
dcc16c5763
build(deps): bump github.com/go-sql-driver/mysql from 1.6.0 to 1.7.0 ( #3148 )
...
Bumps [github.com/go-sql-driver/mysql](https://github.com/go-sql-driver/mysql ) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/go-sql-driver/mysql/releases )
- [Changelog](https://github.com/go-sql-driver/mysql/blob/master/CHANGELOG.md )
- [Commits](https://github.com/go-sql-driver/mysql/compare/v1.6.0...v1.7.0 )
---
updated-dependencies:
- dependency-name: github.com/go-sql-driver/mysql
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-09 21:19:13 +02:00
Ariel Mashraki
d0c5afa705
entc/gen: make generated client to implement the ent.Mutator interface ( #3161 )
2022-12-09 21:18:25 +02:00
Pedro Henrique
3f4916ff8b
dialect/sql/schema: fix issue with WriteDriver when using Postgres with Query ( #3162 )
2022-12-09 21:08:55 +02:00
Christopher Schmitt
d7f2f3a098
entc/gen: add driver as a reserved field word ( #3158 )
2022-12-09 08:08:30 +02:00
Bumsik Kim
d5aa8d20f8
doc: tutorial typo fix ( #3153 )
...
* doc/md: Fix import path in example
* doc/md: Fix old contrib package doc path
2022-12-08 08:47:20 +02:00
Pedro Henrique
0f20a3d007
entc/integration: test with Postgres 15 ( #3152 )
2022-12-07 11:55:06 +02:00
mori yuta
b3ef46d768
doc: fix typo on versioned migration tutorial ( #3139 )
...
* fix typo
codegn -> code-gen
* Update doc/md/versioned/07-verifying-safety.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-12-07 11:52:35 +02:00
Ariel Mashraki
381483e45c
entc/gen: remove unnecessary sqlgraph.To step on HasE predicates ( #3144 )
...
Predicate that checks existence-only do not need the 'other' table
2022-12-04 13:15:16 +02:00