Ariel Mashraki
ebfc1a4f36
entc/gen: move builder naming to Go api ( #653 )
...
Fixed #652
2020-08-01 18:43:39 +03:00
Ariel Mashraki
5ed339839a
entc/mutation: reject querying old values of finished mutations ( #495 )
2020-05-20 17:28:39 +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
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
Ariel Mashraki
7a480e3943
entc/gen: use more go-ish names for generated error types ( #321 )
...
* entc/gen: use more go-ish names for generated error types
* entc/gen: add NotLodedError type for eager-load api
2020-01-28 11:04:27 +02:00
Ariel Mashraki
e85b10be36
entc/gen: remove multi storage support
2019-12-15 14:48:55 +02:00
Ariel Mashraki
0c46ce4e5e
entc/gen: move multistorage logic to Go code
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/94
Reviewed By: alexsn
Differential Revision: D17926186
fbshipit-source-id: b59dc418703bc4faca5230a7354edea1423b7d35
2019-10-15 06:42:44 -07:00
Ariel Mashraki
83d0063437
entc/gen: returns affected rows in delete
...
Summary: Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1455
Reviewed By: alexsn
Differential Revision: D17396880
fbshipit-source-id: 3a3a9849b816777bd0ef94cf55b2291705a37df6
2019-09-16 08:47:42 -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
Alex Snast
dfadb3e27b
entc: drop switch statements on single storage ( #12 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/12
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1256
Reviewed By: a8m
Differential Revision: D16667212
fbshipit-source-id: e9f8a51986de5fe97356285e23946a61578d8164
2019-08-06 07:52:21 -07:00
Ariel Mashraki
cef32f1fb4
entc: add option to override codegen header
...
Summary:
Set the standard header ("Code generated by entc, DO NOT EDIT.") as default, and override it using option in graph.
No changes to graph except the `generate.go` file.
Reviewed By: idoshveki
Differential Revision: D16642348
fbshipit-source-id: d9fd1d2046e2fd96acbb100ef061fda75d99ce52
2019-08-04 05:12:33 -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
Ariel Mashraki
2cfda7564f
type safe predicates
...
Reviewed By: alexsn
Differential Revision: D16452717
fbshipit-source-id: da0a07275434d95d73a5a26830a2e5535c3abf47
2019-07-24 08:35:51 -07:00
facebook-github-bot
267e3c15bd
Initial commit
...
fbshipit-source-id: c79a38536e3c128dce1b2948615b72ec9779ed22
2019-06-16 04:37:51 -07:00