Giau. Tran Minh
630ab6b914
schema/field: add Blob to use io.Reader
2026-05-05 07:21:16 +00:00
Giau. Tran Minh
7a21ec2e29
entc: support schema/blob annotation
2026-05-04 09:32:30 +00:00
Ariel Mashraki
1391816b77
entc/gen: move most mutation logic to be per type package ( #4493 )
2026-04-25 23:01:25 +03:00
Jannik Clausen
ab0540611e
entc/gen: support external ValueScanner for id field ( #4487 )
2026-02-18 07:41:35 +01:00
eiixy
21ecfa0872
entc: update groupReceiver and selectReceiver ( #4395 )
...
* update GroupReceiver and SelectReceiver
* update examples
* update entc/integration generated code
* Update entc/gen/type.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
---------
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2025-05-23 15:20:27 +07:00
Giau. Tran Minh
ce61476d6d
entc/gen/template: remove receiver conflict handling logic ( #4356 )
...
* examples: ensure tests is stable
* entc/gen/template: remove receiver conflict handling logic
* examples: codegen
* entc/integration: codegen
2025-03-19 15:35:03 +07:00
Giau. Tran Minh
153dfa1782
entc/gen: change receivers to static one ( #4355 )
...
* entc/gen: change receivers to static one
* entc/integration: codegen
* examples: codegen
* chore: fixed spacing
2025-03-19 15:10:47 +07:00
Giau. Tran Minh
088bfd75ad
entc/gen/template: allow nested template access Receiver ( #4354 )
2025-03-17 17:16:05 +07:00
Aman Bansal
a85a229311
entc.gen: support adding extra fields to mutations ( #4281 )
...
* ability to add additional fiels to type xxMutation {}
* Update entc/gen/template.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* Update entc/gen/template/builder/mutation.tmpl
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
---------
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2024-12-22 21:00:06 +02:00
Ariel Mashraki
459b772567
entc/gen/template: clone modifiers if enabled ( #4189 )
...
Fixed https://github.com/ent/ent/issues/4026
2024-08-23 11:55:49 +03:00
Ariel Mashraki
15bebe8d89
ent: support schema view ( #4157 )
2024-07-28 19:00:47 +03:00
Ariel Mashraki
a1a79186fd
entc/gen/template: improve goimports time by adding missing imports ( #4103 )
2024-06-17 12:03:34 +03:00
Ariel Mashraki
61751fc92c
entc/gen: fix conflict between set_id edge field and mutation fields ( #4062 )
2024-05-19 14:26:59 +03:00
Ariel Mashraki
5d43d62c65
entc/gen: use query ops in generated code ( #4005 )
2024-04-05 15:05:56 +03:00
Ariel Mashraki
8a848a6475
entc/gen: nillable update setters for non-optional fields ( #3788 )
2023-10-12 21:26:07 +03:00
Ariel Mashraki
dc8ea50747
entc/gen: add support for MapBulkCreate ( #3696 )
2023-08-16 11:46:14 +03:00
Yasser Sobhy
0b0cc90245
entc/gen: mark field as cleared when clearing edges ( #3651 )
...
* mark field as cleared when clearing edges
* regenerate examples
* run go generate in entc/integration
* runn go mod tidy
2023-07-21 16:17:39 +03:00
Ariel Mashraki
633d021f48
entc/gen: avoid conflict between package and receiver names ( #3563 )
2023-05-25 14:45:57 +03:00
Ariel Mashraki
0aaaad6ccc
entc/gen: fix conflicts between fields named 'op' and Mutation.Op ( #3550 )
2023-05-20 10:28:59 +03:00
Ariel Mashraki
a675412c96
entc/gen: remoev unnecessary type arguments ( #3503 )
2023-04-25 13:46:29 +03:00
Ariel Mashraki
da69615bd0
entc/gen: rename <type>.Order to <type>.OrderOption ( #3468 )
...
Also, avoid generting predicate without op in case a field named: order_option
2023-04-11 08:23:29 +03:00
Ariel Mashraki
064c9118b7
entc/gen: add fluent-api for order options ( #3449 )
2023-04-09 10:37:42 +03:00
Zhizhen He
6f847a3492
ci: add spell checker and fix existing typo ( #3420 )
...
* ci: add spell checker and fix existing typo
* chore: move typos.toml to .github
* fix: correct config file path
2023-03-30 11:38:29 +03:00
Ariel Mashraki
9517200cb6
schema/field: fallback to native validator if not configured one ( #3359 )
2023-03-01 12:09:26 +02:00
Ariel Mashraki
9c40fbc07b
entc/gen: fix inconsistent goimports formatting ( #3344 )
2023-02-22 21:29:15 +02:00
Ariel Mashraki
138bd2bc1d
entc/gen: <T>Query.IDs should not return duplicates ( #3304 )
2023-02-06 21:19:05 +02:00
Ariel Mashraki
d11122592a
entc/gen: add support for UpdateOne with predicates ( #3286 )
2023-01-29 13:09:16 +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
ef0427550f
ent: add additional fields to QueryContext
2023-01-14 22:47:54 +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
542f36d4ab
entc/gen: skip checking required fields with db-based default values ( #3204 )
2023-01-02 22:59:27 +02:00
Pedro Henrique
8307c2eaba
entc/gen: copies interceptors on Clone ( #3194 )
2022-12-28 06:29:48 +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
Ariel Mashraki
f226627d67
ent: export query interceptors ( #3157 )
2022-12-19 10:17:10 +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
Ariel Mashraki
f1205ce95f
entc/gen: remove driver specific implementation for Exist ( #3136 )
2022-12-01 17:39:52 +02:00
Ariel Mashraki
765ec09d31
entc/gen: add Aggregate to <T>Select and <T>Query
2022-10-23 09:50:23 +03:00
Ariel Mashraki
13bf27bdd6
entc/gen: support Append<F> for JSON array fields ( #2975 )
2022-09-29 16:57:54 +03:00
Giau. Tran Minh
679109f5c2
entc/gen: remove space around continue for 1.18 compatible ( #2962 )
...
Related: https://github.com/golang/go/issues/51670
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
2022-09-26 21:10:15 +03:00
Weilence
f797ac2d14
entc/gen: remove repeated template fragment ( #2890 )
2022-08-30 07:50:15 +03:00
Ariel Mashraki
b18ca9ca6f
schema/edge: allow setting immutable edges ( #2876 )
2022-08-20 19:10:16 +03:00
Ariel Mashraki
2c63d1d70e
all: gofmt -w -r 'interface{} -> any' ( #2874 )
2022-08-19 18:23:04 +03:00
Ariel Mashraki
0066eb986d
entc/gen: extend sql/modify to UPDATE statements
2022-08-05 14:42:04 +03:00
Ariel Mashraki
b60e0f9eac
entc/gen: add support for WithNamed<E> feature-flag ( #2792 )
...
* entc/gen: struct fields and methods for NamedEdge api
* entc/gen: generate WithNamedEdge methods for named-edges
* entc/gen: implement eager-loading for named-edges
* entc/gen: simplify eager-loading template
* entc/gen: drop support for unqiue edges in named-based loading
* all: codegen
* doc/website: named-edges feature-flag
* Update doc/md/eager-load.mdx
* Update doc/md/eager-load.mdx
2022-07-24 18:41:07 +03:00
Ariel Mashraki
e1c5277483
ent: initial support for edge schemas ( #2560 )
2022-05-25 15:46:00 +03:00
Justin Johnson
38d4d5fb5c
entc/gen: propagate nodes post-save mutations ( #2525 )
...
* Failing test
* Fix propagating entirely models from OpCreate hook
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* whitespace
* Failing test for updateone
* fix for updateone
* Regnerate
* regen from root
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-05-05 11:19:21 +03:00
Ariel Mashraki
a7c1df2d0a
entc/gen: move selectbuilder scan functions to shared struct ( #2412 )
2022-03-18 07:59:04 +02:00
MrParano1d
a75e9c5a8f
entc/gen: fix missing unique field in query builder template ( #2332 )
...
* 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
2022-02-15 22:31:05 +02:00
Ariel Mashraki
1d3f1819ae
entc/gen: replace Type.Alias with Type.PackageAlias
2022-02-04 22:46:17 +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