Ariel Mashraki
c8a6527612
schema/mixin: add support for mixed-in annotations
2020-10-12 13:06:25 +03:00
Ariel Mashraki
85c4999472
ent: add annotations to type schema
2020-10-12 13:06:25 +03:00
Ariel Mashraki
fae1956828
entql: add typed-builder for field predicates
2020-10-11 14:41:03 +03:00
Ariel Mashraki
16e804a788
entql: add experimental implementation for entql
2020-10-11 14:41:03 +03:00
Ariel Mashraki
dfc4dee8a5
ent/privacy: initial privacy package ( #836 )
2020-10-11 14:27:29 +03:00
Ariel Mashraki
13b379d07c
dialect/sql/schema: properly handle indexes of tables with uncountable name ( #828 )
2020-10-08 23:24:54 +03:00
Ariel Mashraki
064c25609b
entc/gen: add option to check feature-flags in templates ( #826 )
2020-10-07 17:37:39 +03:00
Ariel Mashraki
c2cdc52946
entc/gen: move predicates to mutation object ( #825 )
2020-10-07 14:22:14 +03:00
Ariel Mashraki
48362e79cd
entc/gen: derive the id-type from the schema ( #823 )
...
if it was not provided
2020-10-06 16:29:09 +03:00
Ariel Mashraki
3f3debbe97
entc/gen: simplify policy execution ( #822 )
2020-10-06 12:16:31 +03:00
Ariel Mashraki
d5ae1b018e
schema/mixin: add privacy policy to mixin ( #821 )
2020-10-06 10:59:36 +03:00
Ariel Mashraki
5d2d2757a8
entc/gen: allow passing client-fields from multiple templates ( #819 )
2020-10-04 22:19:58 +03:00
Ariel Mashraki
d0a175f508
entc/gen: don't write assets on template failures ( #815 )
...
Calling {{ fail "error" }} from external template
should terminate the execution without local changes.
2020-10-04 12:07:55 +03:00
Ariel Mashraki
6cf2271c1b
entc/gen: initial version for feature-flags ( #803 )
2020-09-29 16:22:50 +03:00
Ariel Mashraki
142773b73d
dialect/sqlscan: support scanning []uint8 type ( #797 )
...
Fixed #796
2020-09-24 11:13:23 +03:00
Ariel Mashraki
49101d7d05
entc/gen: change eager-loading empty values ( #791 )
...
When loading relations (using edger-loading) and there are no changes,
the response should be an empty slice (and not nil). Similar to the
way we handle simple queries (e.g. All()).
Closed #790
2020-09-22 20:22:30 +03:00
Ariel Mashraki
38e769465c
entc/gen: import external packages in runtime package ( #775 )
...
Closed #773
2020-09-17 12:00:02 +03:00
Ariel Mashraki
17abe2d60f
entc/gen: less sophisticated naming logic ( #774 )
...
Closed #772
2020-09-17 09:19:55 +03:00
Ariel Mashraki
235973cc2d
entc/gen: merge all templates to global
2020-09-15 16:31:29 +03:00
Ariel Mashraki
e26e99b643
entc/gen: improve the api for custom templates
2020-09-15 16:31:29 +03:00
Ariel Mashraki
3578d73a8f
dialect/sql/sqljson: add length predicate ( #763 )
2020-09-15 11:53:54 +03:00
Ciaran Liedeman
54774960b2
entc/gen: add template for creating custom predicates ( #758 )
...
* Custom Predicates
* Update entc/integration/template/ent/template/where.tmpl
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2020-09-14 15:41:48 +03:00
Ariel Mashraki
3cb7824561
json predicates ( #760 )
...
* dialect/sql/sqljson: cast postgres non-string values
* entc/integration: test json predicates
2020-09-14 12:37:57 +03:00
Ariel Mashraki
d16f0abcc1
entc/gen: document fixture option default value ( #754 )
2020-09-13 11:39:46 +03:00
Kevin Pierce
46df885752
entc/gen: fix gen for type abbreviating to id ( #750 )
...
* cmd/ent: fix gen for type abbreviating to id
* Adding genc output changes to tests, examples
2020-09-12 09:47:39 +03:00
Ariel Mashraki
4cb544c8d0
entc/gen: fix naming conflict for builder fields
...
Closed #747
2020-09-12 01:58:07 +03:00
Ariel Mashraki
1dc90db3a4
entc/gen: add fields checks for groupfunc
2020-09-10 22:53:25 +03:00
Ariel Mashraki
6a7a5ef439
entc/gen: add fields checks for orderfuncs
2020-09-10 22:53:25 +03:00
Ariel Mashraki
8b8744022e
entc/gen: add column-check for selection and grouping ( #744 )
2020-09-09 12:27:28 +03:00
Ariel Mashraki
b4b4fa95d7
entc/gen: restructure hooks execution ( #741 )
...
Closed #739
2020-09-09 10:41:17 +03:00
Ariel Mashraki
3a2c897143
integration: add example for clear/remove and add edges ( #738 )
2020-09-08 12:05:43 +03:00
Ariel Mashraki
ce48ab99b8
dialect/sql/sqljson: move json predicates to a package ( #735 )
2020-09-07 21:22:12 +03:00
Ariel Mashraki
5450481513
entc/gen: add support for passing functions to external templates ( #732 )
...
Fixed #671
2020-09-07 12:02:22 +03:00
Ariel Mashraki
8e824c14eb
entc/gen: add an option for clearing non-unique edges ( #731 )
...
Closed #398
2020-09-06 20:22:42 +03:00
Ariel Mashraki
feed51d773
doc: add hook helpers to ent website ( #729 )
2020-09-06 10:07:41 +03:00
Ariel Mashraki
4cdfc7b57e
integration: test json predicates in ci ( #724 )
2020-09-03 11:15:31 +03:00
Ariel Mashraki
750a19c118
entc/gen: revert unwrapping logic for validation error ( #721 )
...
Fixed #698
2020-09-01 12:06:46 +03:00
Ariel Mashraki
027a0f6a35
schema/field: add the NamedValues option to the enum builder ( #715 )
2020-08-30 17:40:09 +03:00
Ariel Mashraki
673a049607
entc/gen: support custom go-type with default ( #714 )
2020-08-30 13:33:10 +03:00
Ariel Mashraki
c907c8bbbc
integ: add sqlite to json tests ( #686 )
2020-08-23 20:51:19 +03:00
Ariel Mashraki
fd481554a4
entc/gen: fix name conflicts in builder setters ( #680 )
2020-08-20 12:21:01 +03:00
Ariel Mashraki
5e56543133
schema/edge: fix edge annotations with to/from builders ( #679 )
2020-08-20 12:15:43 +03:00
Ariel Mashraki
b18716931d
dialect/sql: change boolean operators wrapping ( #678 )
...
The reason is to parentheses only when it's necessary.
2020-08-20 10:08:31 +03:00
Ariel Mashraki
fd0a7f9f02
all: facebookincubator/ent => facebook/ent ( #660 )
...
ent repository is going to be migrated to facebook organization
2020-08-18 11:05:08 +03:00
Ariel Mashraki
6fe7023d6a
entc/gen: fix validation error unwrapping ( #670 )
2020-08-14 20:45:04 +03:00
Ariel Mashraki
b5a9c66290
entc/gen: import siblings packages by default ( #655 )
...
Also, add missing pkg-path for non-value types.
2020-08-02 15:06:05 +03:00
Ariel Mashraki
ebfc1a4f36
entc/gen: move builder naming to Go api ( #653 )
...
Fixed #652
2020-08-01 18:43:39 +03:00
Ariel Mashraki
05dfd6b78b
schema/edge: add annotation support for edges ( #651 )
2020-08-01 15:38:47 +03:00
Joe Harvey
e9b406ca65
entc/gen: Split strings in pascal/camcelCase on - in addition to _ ( #631 )
2020-08-01 15:36:57 +03:00
Ariel Mashraki
e71a6de39b
entc/gen: fix hooks invocation on bulk-create ( #649 )
2020-07-29 18:35:21 +03:00