Ariel Mashraki
|
fd955654a0
|
entc/gen: change codegen signature from entc to ent (#2627)
|
2022-06-07 17:48:17 +03:00 |
|
Ariel Mashraki
|
dab95be855
|
doc/md: example and test for migration apply hooks (#2514)
|
2022-05-02 14:25:22 +03:00 |
|
Ariel Mashraki
|
04e0dc936b
|
entc/integration/migrate: add example for renaming columns (#2496)
|
2022-04-24 22:36:33 +03:00 |
|
Ariel Mashraki
|
6e4e4da896
|
entc/integration/migrate: update atlas and test custom time precision (#2462)
|
2022-04-08 11:27:30 +03:00 |
|
Ariel Mashraki
|
317594ec80
|
dialect/sql/schema: prefix sqlite unique indexes with table name (#2433)
Fixed https://github.com/ent/ent/issues/2421
|
2022-03-28 12:54:39 +03:00 |
|
Ariel Mashraki
|
caa673826a
|
entc/gen/mutation: add IDs method for mutations
|
2021-11-03 23:16:56 +02:00 |
|
Ariel Mashraki
|
88b168ad09
|
entc/gen: exposing filter/where api on mutations
|
2021-07-18 18:19:41 +03:00 |
|
Ivan Vanderbyl
|
4ba56ea901
|
entc/gen: delete removal edges from mutation (#1654)
* Remove Edge IDs from internal Mutation state
* Update template gen
* Update integration tests
* Update examples
|
2021-06-24 11:26:22 +03:00 |
|
Ariel Mashraki
|
66871c9806
|
dialect/sql/schema: add support for index prefixes in mysql
|
2021-06-09 22:52:31 +03:00 |
|
Ariel Mashraki
|
11567a3926
|
entc/gen: update mutation-id on post mutation
|
2021-05-31 20:31:51 +03:00 |
|
Ariel Mashraki
|
8d7bb7fad6
|
entc/gen: check edge-field on mutation-cleared calls for edges
Fixed #1445
|
2021-04-10 14:56:34 +03:00 |
|
Ariel Mashraki
|
745afde770
|
dialect/entsql: add support for column default using annotation
Fixed #1033
|
2021-04-03 21:53:56 +03:00 |
|
Ariel Mashraki
|
dd4792f5b3
|
go: rename module from github.com/facebook/ent => entgo.io/ent (#1226)
|
2021-02-02 23:03:04 +02:00 |
|
Nathaniel Peiffer
|
b8b82f80a4
|
entc/gen: fix grammar and language usage in function comments (#1126)
* fix grammar and english usage in templates
* bindata gen
* codegen
* go generate ./again...
|
2021-01-04 14:34:40 +02:00 |
|
Ciaran Liedeman
|
7320b0d16c
|
dialect/sql/schema: add pg user defined type for schema introspect (#994)
* Added user defined fields
* pr feedback
* added integration test
* run generate
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* Update dialect/sql/schema/postgres_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
|
2020-12-27 20:00:47 +02:00 |
|
BrentChesny
|
263bc0b08f
|
entc/gen: add missing braces in mutation template (#1014)
|
2020-12-04 08:02:52 +02:00 |
|
Ariel Mashraki
|
013c185b4a
|
entc/integ: minor style changes in integration (#978)
|
2020-11-24 19:47:24 +02:00 |
|
Ciaran Liedeman
|
bbd41dbc87
|
dialect/sql/schema: integer to string (#954)
* Allow migrations from integer to string with max length
* switched to entsql.Annotation
* removed manual conversion size checks
* fixed unit tests
|
2020-11-24 18:09:40 +02:00 |
|
Ciaran Liedeman
|
e26d81d9a5
|
dialect/sql/schema: allow migrations from integer to string without size limit (#952)
* Allow migrations from integer to string without size limit
* Update entc/integration/migrate/entv1/schema/user.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* run generate
* Update entc/integration/migrate/entv2/schema/user.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
|
2020-11-16 11:44:04 +02:00 |
|
Ariel Mashraki
|
2128d0baee
|
dialect/sql/schema: apply size-check only if it is defined in schema (#855)
|
2020-10-15 14:17:32 +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
|
c2cdc52946
|
entc/gen: move predicates to mutation object (#825)
|
2020-10-07 14:22:14 +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
|
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
|
16d98d1acc
|
dialect/sql/schema: accept default values for enum fields (#646)
Fixed #644
|
2020-07-28 12:55:02 +03:00 |
|
Alex Snast
|
7df2e02343
|
ci/lint: enabling goheader linter ensuring the existance of a license header in go files (#593)
Signed-off-by: Alex Snast <alexsn@fb.com>
|
2020-07-07 15:36:09 +03:00 |
|
Ariel Mashraki
|
cedeef653a
|
dialect/sql/schema: accept convert from string2enum and enum2stirng (#587)
|
2020-07-05 22:22:50 +03:00 |
|
Ariel Mashraki
|
c5503d76ad
|
entc/integration: fix issue with storage-key and inverse-edges (#556)
|
2020-06-17 18:17:09 +03:00 |
|
Ariel Mashraki
|
47f1a203aa
|
schema/edge: an storage-key option for edges (#545)
* schema/edge: an storage-key option for edges
* schema/edge: use Column(s) with functional options
|
2020-06-15 23:06:00 +03:00 |
|
Ariel Mashraki
|
dbf6bb8006
|
entc/mutation: explain when object is fetched from db (#496)
|
2020-05-21 10:10:52 +03:00 |
|
Ariel Mashraki
|
5ed339839a
|
entc/mutation: reject querying old values of finished mutations (#495)
|
2020-05-20 17:28:39 +03:00 |
|
Ariel Mashraki
|
b0e43f01f0
|
entc/mutation: avoid generting empty switch statements for edges (#493)
|
2020-05-17 17:58:22 +03:00 |
|
Ariel Mashraki
|
7da6ba804d
|
entc/mutation: avoid generting empty switch statements (#492)
|
2020-05-17 14:48:56 +03:00 |
|
Ariel Mashraki
|
ef7285b917
|
entc/gen: add api for getting field old values (#491)
|
2020-05-17 14:23:36 +03:00 |
|
Ariel Mashraki
|
08289b3570
|
entc/gen: fix method conflicts in mutation builders (#479)
Fixed #475
|
2020-05-08 21:02:21 +03:00 |
|
Alex Snast
|
25fdb52a03
|
entc/gen: use a set when tracking cleared fields in mutation template
Signed-off-by: Alex Snast <alexsn@fb.com>
|
2020-03-17 12:00:15 +02:00 |
|
Ariel Mashraki
|
81a2f60e47
|
entc/gen: add facebookincubator/ent to mutation.tmpl imports (#390)
|
2020-03-17 10:33:58 +02:00 |
|
Ariel Mashraki
|
7988d3084d
|
entc/hooks: initial work for mutations and hooks (#377)
* entc/hooks: initial work for mutations and hooks
* ent/schema: adding policy to schema
* ent: change op string to uint
* entc: move entschema to runtime and enable smooth transition
* entc/privacy: adding privacy template
* all: goimports
* intg/hooks: mutation client/tx and basic schema tests
* ent/privacy: adding more verbose decisions
* entc/gen: edge-ids getter and additional tests
* all: regen assets
* entc/gen: fix client hookd propagation
* intg: add deletion example
* intg/privacy: remove old entschema package
* typed privacy
* ent/privacy: hooks shouldn't be called on privacy deny
* entc/gen: fix schema hooks invocation order
* remove read policy from public api
* update circleci go orb
Co-authored-by: Ariel Mashraki <ariel@mashraki.co.il>
|
2020-03-16 00:19:27 +02:00 |
|