Commit Graph

19 Commits

Author SHA1 Message Date
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
Ariel Mashraki
ba7f158a9c entc/gen: allow scanning dynamic sql values (#3432) 2023-04-03 17:07:24 +03:00
Ariel Mashraki
abafd91b2d dialect/sql: move columns check from codegen to sql package (#3431) 2023-04-02 13:57:21 +03:00
Ariel Mashraki
3f1063c77e schema/field: add support or external ValueScanner (#3391) 2023-03-16 22:18:54 +02:00
Anton Telyshev
148f7d51a0 entc/gen: add redundant any() to withHooks to make linters work (#3360)
See https://github.com/golang/go/issues/58633 for more info.
2023-03-12 11:47:07 +02:00
Ariel Mashraki
89e2d52000 entc/gen: merge context.go contents to ent.go file (#3355) 2023-02-28 11:55:34 +02:00
Ariel Mashraki
9c40fbc07b entc/gen: fix inconsistent goimports formatting (#3344) 2023-02-22 21:29:15 +02:00
Ariel Mashraki
770bb0f1a2 entc/gen: merge generate config.go file with client.go (#3319) 2023-02-16 12:08:41 +02:00
Ariel Mashraki
939c7cff1a entc/gen: reduce the usage of DISTINCT in queries (#3305)
Most queries are not graph traversals but rather regular table scans,
in which case the DISTINCT clause is not needed as duplicates cannot be
returned (unless query was modified by the user).
2023-02-06 22:40:50 +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
0e6ef32505 dialect/sql/sqlgraph: add update spec builder (#3301) 2023-02-06 07:13:06 +02:00
Ariel Mashraki
92cc7438f7 dialect/sql/sqlgraph: add deletion spec builder (#3291) 2023-02-01 11:55:00 +02:00
Ariel Mashraki
cb2f75932f entc/gen: change typo from Use to Intercept (#3290) 2023-02-01 11:43:17 +02:00
Ariel Mashraki
037b5a4bc3 dialect/sql/sqlgraph: add builders to create spec (#3288) 2023-01-31 09:37:51 +02:00
Ariel Mashraki
a0fad09539 entc/gen: remove unnecessary function from codegen (#3287) 2023-01-30 18:32:25 +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
990bf269ff examples/encryptfield: add an example using go.cloud (#3246) 2023-01-16 11:48:09 +02:00