Ariel Mashraki
2bfb34fe82
doc/md: add example on how to group-by an edge
2021-04-19 14:28:40 +03:00
Ariel Mashraki
a51c50f6a3
entc/gen: allow group-by by relations
2021-04-19 14:28:40 +03:00
Ariel Mashraki
a1ad70c685
dialect/sql/schema: json column migration for mariadb10.3.13
...
See https://github.com/ent/ent/issues/1395\#issuecomment-809420881
Fixed #1395
2021-03-29 22:34:58 +03:00
Ariel Mashraki
21989f4aa4
entc/gen: chagne column-check error format
2021-03-29 15:29:45 +03:00
Ariel Mashraki
f12ef91829
entc/gen: privatize table columns check
2021-03-29 14:35:38 +03:00
Ariel Mashraki
e92dfee33f
entc/gen: filter duplicate ids when loading m2m edges
2021-03-16 08:44:27 +02:00
Ariel Mashraki
5d70144f44
entc/gen: allow selecting partial fields on update-one
2021-03-14 23:17:30 +02:00
Rotem Tamir
36e3492718
dialect/sql/sqlgraph: adding unit tests for IsConstraintError ( #1318 )
...
* dialect/sql/sqlgraph: adding unit tests for IsConstraintError group of checks in second phase of #1310
* renaming test for loop variable names
* use backtick strings to improve readability
2021-03-10 18:23:24 +02:00
Rotem Tamir
bc04816c38
entc/gen/template/dialect/sql: cleaning up isSQLConstraintError ( #1319 )
...
* entc/gen/template/dialect/sql: cleaning up isSQLConstraintError in generated ent.go to use new sqlgraph IsConstraintError checks.
Adding IsFK and IsUniqueness methods to the generated ent.ConstraintError (on SQL dialects) struct to allow users to glean more information about the specific constraint violation.
Fixes #1310
* fix indentation in tmpl file
regen files
rm new methods from generated code
* regen
2021-03-10 14:07:00 +02:00
Rotem Tamir
2a17dba983
dialect/sql/sqlgraph: add constraint error checks ( #1316 )
...
Initial work on #1310
2021-03-09 15:56:47 +02:00
Ariel Mashraki
c0fd7c1305
entc/gen: add edge-field api for schema and codegen ( #1213 )
2021-03-07 22:51:17 +02:00
Ariel Mashraki
dd4792f5b3
go: rename module from github.com/facebook/ent => entgo.io/ent ( #1226 )
2021-02-02 23:03:04 +02:00
Ariel Mashraki
a761561c9c
entc/gen: support field selections with eager-loading ( #1100 )
2020-12-29 09:19:53 +02:00
Ariel Mashraki
37f9c30a12
entc/gen: apply field selection on builer types ( #1094 )
2020-12-28 14:38:20 +02:00
Ariel Mashraki
c4a43bc2be
entc/gen: move fields selection to top builder ( #1093 )
2020-12-28 12:28:07 +02:00
Ariel Mashraki
43fa0ae9bc
dialect/sql/sqlgraph: skip empty updates ( #1043 )
2020-12-14 10:16:21 +02:00
Ariel Mashraki
12b7549768
dialect/sql/schema: support mariadb json fields on migration ( #1011 )
2020-12-03 12:04:00 +02:00
Ciaran Liedeman
f655a59089
entc/integration: add postgres13 ( #961 )
2020-11-19 14:46:02 +02:00
Ariel Mashraki
119cdf207e
entc/gen: rename FirstXID to FirstIDX ( #854 )
2020-10-15 10:09:47 +03:00
Ariel Mashraki
ab9aa1fa45
schema/field: add annotations for overriding field struct-tags
2020-10-12 13:06:25 +03:00
Ariel Mashraki
f1a841d235
schema/edge: add annotation for configuring the Edges struct-field
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
5d2d2757a8
entc/gen: allow passing client-fields from multiple templates ( #819 )
2020-10-04 22:19:58 +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
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
3a2c897143
integration: add example for clear/remove and add edges ( #738 )
2020-09-08 12:05:43 +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
750a19c118
entc/gen: revert unwrapping logic for validation error ( #721 )
...
Fixed #698
2020-09-01 12:06:46 +03:00
Ariel Mashraki
673a049607
entc/gen: support custom go-type with default ( #714 )
2020-08-30 13:33:10 +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
875e6e516b
entc/gen: initial implementation for create-bulk #613
...
Closed #236
2020-07-24 20:16:31 +03:00
Ariel Mashraki
03fe39ab74
entc/integration: add tests for gql naming convention ( #636 )
2020-07-22 23:01:38 +03:00
Ariel Mashraki
daaa9f2db1
schema/field: add option to set the Go identifier for enums ( #635 )
2020-07-22 20:22:24 +03:00
Ariel Mashraki
54f0a6769b
schema/field: add annotation option to schema field ( #622 )
2020-07-19 18:01:04 +03:00
Ariel Mashraki
9d42b5ef40
entc/gen: rename OnlyXID to OnlyIDX in codegen ( #608 )
2020-07-16 17:21:41 +03:00
Ariel Mashraki
e6c91e1dbf
entc/gen: add support for tx hooks ( #575 )
2020-07-12 11:07:14 +03:00
Alex Snast
7b34abd8b4
entc/gen: adding singular variants of select query finishers ( #594 )
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-07-09 10:59:33 +03:00
Ariel Mashraki
e1c8ec1dce
entc/integration: truncate items table before each test ( #564 )
2020-06-23 16:12:49 +03:00
Ariel Mashraki
737fb4afda
entc/mutation: expose builder api for getting mutations ( #531 )
2020-06-08 15:16:56 +03:00
Ariel Mashraki
abc4e63efb
ci: change postgres12 listen port ( #521 )
2020-06-03 15:33:56 +03:00
Ariel Mashraki
05b068432a
entc/integ: fix writer implementation ( #473 )
2020-05-08 10:31:50 +03:00
Ariel Mashraki
f82236defe
entc/integ: verify no schema changes on multiple runs ( #472 )
2020-05-07 12:21:13 +03:00
Ariel Mashraki
08f8de6fb0
entc/integ: move integration tests to enttest ( #444 )
2020-04-21 17:56:30 +03:00
Ariel Mashraki
3342b85580
entc/gen: add support for storage txoptions ( #435 )
2020-04-17 12:57:57 +03:00
Alex Snast
d6d95dd363
entc/gen: adding tx callback support ( #414 )
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-03-31 18:58:10 +03:00
Ariel Mashraki
d9c8d9545d
entc/gen: use NotFoundError when updating non-exist node ( #348 )
...
Fixes #341
2020-02-16 13:26:13 +02:00
Alex Snast
e6ba06441b
entc/gen: change <E>Err signature to <E>OrErr ( #325 )
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-01-30 18:56:36 +02:00