Ariel Mashraki
808edd134d
dialect/sql: support capturing predicates in selectors
...
This allows custom predicates mutating the root querying and still respect the AND/OR/NOT semantics
2023-06-22 00:08:26 +03:00
Ariel Mashraki
064c9118b7
entc/gen: add fluent-api for order options ( #3449 )
2023-04-09 10:37:42 +03: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
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
Ariel Mashraki
2c63d1d70e
all: gofmt -w -r 'interface{} -> any' ( #2874 )
2022-08-19 18:23:04 +03:00
Ariel Mashraki
047b804dcd
ent/gen: remove unnecessary if block in IN predicates ( #2758 )
2022-07-15 10:30:23 +03:00
Ryo Yamada
b00e549c88
dialect/sql: make sql.In() with empty args fallback to False() ( #2735 )
...
* dialect/sql/builder: make sql.In() with empty args fallback to False()
* fix indent
* added comment
* remove the equilvalent logic in the codegen side
* comment fix, run go generate
2022-07-12 00:15:36 +03:00
Ariel Mashraki
e1c5277483
ent: initial support for edge schemas ( #2560 )
2022-05-25 15:46:00 +03:00
Ariel Mashraki
34aabc0eb1
entc/gen/template: add goland-annotation for template data-types
2021-04-09 17:53:04 +03:00
Ariel Mashraki
aeb1ccc571
entc/gen: move schemaconfig template to feature-flag
2021-01-24 19:57:28 +02:00
Ariel Mashraki
4af9a331ae
entc/gen: fix niladic predicates for id fields ( #940 )
2020-11-11 09:40:29 +02:00
Ariel Mashraki
dd3cdc147d
entc/gen: correctly handle custom storage-key for id fields ( #643 )
...
Fixed #621
2020-07-28 10:14:21 +03:00
Ariel Mashraki
100d300094
schema/field: add GoType option for string fields ( #500 )
2020-05-25 20:05:17 +03:00
Ariel Mashraki
65f96b3593
entc/gen: remove legacy i2a support for ids ( #389 )
...
* entc/gen: remove legacy i2a support for ids
* integ: add customid tests for fk strings
2020-03-16 18:19:30 +02:00
Ariel Mashraki
9733051cc3
entc/gen: currently handle user-defined string ids ( #338 )
...
Fixes #127
2020-02-10 12:04:50 +02:00
Ariel Mashraki
0cc74b5297
all: move sqlgraph to its own package
2019-12-17 18:26:09 +02:00
Ariel Mashraki
1a73b8cf55
entc/gen: change neighbors-with check to use sqlgraph
...
Reviewed By: alexsn
Differential Revision: D18729648
fbshipit-source-id: 23eb95bdb0c34c811621a819be6581e1e6fcb474
2019-12-01 02:07:55 -08:00
Ariel Mashraki
f7ce61fc3c
entc/gen: change neighbors predicate to use sqlgraph
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/204
Reviewed By: alexsn
Differential Revision: D18726911
fbshipit-source-id: 6fe850bb0c0613c3f1c94e8bbcf3f0684dded9a6
2019-11-27 11:28:26 -08:00
Ariel Mashraki
53cfcb6e8b
dialect/sql: fix predicate builder on join
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/143
Reviewed By: idoshveki
Differential Revision: D18346652
fbshipit-source-id: e8c5d7eb3cefc16f52090de0d121e82cae058fc2
2019-11-06 05:21:26 -08:00
Ariel Mashraki
c259aee24b
entc/gen: generate sql builders with dialect option
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/130
Reviewed By: alexsn
Differential Revision: D18164397
fbshipit-source-id: 2858d69d3ff85c06b51382c01c3d4369ee2c3bdb
2019-10-27 21:53:50 -07:00
Ariel Mashraki
4323141fe2
ent: add license and copyright to template files
...
Reviewed By: alexsn
Differential Revision: D17149292
fbshipit-source-id: 837de5fad988de1e54438b47584701f2fc35326d
2019-09-01 03:03:15 -07:00
Ariel Mashraki
619b63d5f7
ent/schema: rename nullable to nillable
...
Reviewed By: idoshveki
Differential Revision: D16687892
fbshipit-source-id: e8cfaaf1241e94c2de0a9fe9077326339d593716
2019-08-07 06:56:33 -07:00
Ariel Mashraki
25f5a2ef01
entc/predicate: add isnull/notnull predicates for codegen
...
Reviewed By: idoshveki
Differential Revision: D16687226
fbshipit-source-id: 14a39e066447dbf77413e5c7f7318a2d61bddd32
2019-08-07 06:56:32 -07:00
Ariel Mashraki
2fd1b728f3
ent: add AND operator for type predicates
...
Reviewed By: alexsn
Differential Revision: D16668249
fbshipit-source-id: 1554c3af9779fd551a90218c604d23b5bf8b8c6b
2019-08-06 14:41:56 -07:00
Ariel Mashraki
2cc8286f5f
entc: add idtype option codegen
...
Reviewed By: alexsn
Differential Revision: D16601757
fbshipit-source-id: 35d5fbfb4ef40bae192e084ad4e067880175e71c
2019-08-04 03:13:01 -07:00
Ariel Mashraki
56656dfcb6
ent/entc: configure storage driver in codegen
...
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1229
Reviewed By: alexsn
Differential Revision: D16539934
fbshipit-source-id: b3a8bf1f1be6f65ad3f649cd921ea20fc24182bf
2019-07-30 02:49:22 -07:00