Jannik Clausen
8b85c83e00
dialect/sql/schema: add multi schema and view support for schema dump ( #4335 )
2025-02-21 15:16:17 +01:00
Jannik Clausen
6cfa2288bb
entc: global id feature ( #4293 )
...
Feature to add annotations to ent schema to ensure sql tables have sequential auto-increment id columns. Meant to be a better alternative for entgql / gqlgen globally unique id feature.
2025-01-13 20:49:28 +01:00
Ariel Mashraki
9aba4ae091
entc/gen: initial work for multi-schema migration using atlasgo.io ( #3821 )
2023-11-13 12:35:31 +02:00
Ariel Mashraki
3f1063c77e
schema/field: add support or external ValueScanner ( #3391 )
2023-03-16 22:18:54 +02:00
Ariel Mashraki
8a31204259
entc/gen: reduce codegen lines ( #3321 )
2023-02-16 14:19:54 +02:00
Giau. Tran Minh
e49d88379a
ent/entc: add HCL as initialism ( #3289 )
2023-01-31 17:36:38 +07:00
Ariel Mashraki
1e5f68646f
dialect/sql/entsql: support setting expression as column default value
...
Fixed https://github.com/ent/ent/issues/3069
2022-11-12 14:38:33 +02:00
Ariel Mashraki
1773fc465e
dialect/sql: add support for statement prefix in update builder ( #2904 )
2022-09-06 17:34:53 +03:00
Weilence
1e12537a35
entc/gen: support custom Acronym ( #2900 )
2022-09-06 15:13:41 +03:00
Ariel Mashraki
2c63d1d70e
all: gofmt -w -r 'interface{} -> any' ( #2874 )
2022-08-19 18:23:04 +03:00
Sasha Melentyev
5daf02bc73
go: small refactoring for maps ( #2619 )
2022-07-19 18:07:55 +03:00
Ariel Mashraki
6ddeb93649
entc/gen: use gotypw pkgname as alias in case it does not match pkgpath ( #2686 )
2022-06-25 11:05:15 +03:00
Ariel Mashraki
c071898395
entc/gen: move column default quoting to template ( #2406 )
2022-03-16 13:41:19 +02:00
Ariel Mashraki
4c2faf2282
entc/gen: allow spaces in enum fields
2021-09-23 23:23:28 +03:00
Ariel Mashraki
6a7b3c8e7a
entc/gen: add feature-flag and implementation for sql/lock
...
Fixed #358
2021-07-21 11:50:06 +03:00
Ariel Mashraki
d3a0b89864
entc/gen: simplify the way to get gen.Field operation
...
External templates should not deal with storage configuration
2021-06-27 11:07:38 +03:00
Ariel Mashraki
2cc1c628dc
schema/field: use actual go type in generated interfaces ( #1428 )
2021-04-07 09:53:44 +03: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
31bee10942
entc/gen: support zero value as default argument in schema migration ( #1287 )
2021-03-01 14:42:09 +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
25b7a05543
entc/gen: remove unused template function
2021-01-19 09:11:37 +02:00
Ariel Mashraki
76c5e48ef8
entc/gen: move migrate annotation creation to init ( #1165 )
...
* fix issue with pointer values in Annotation
* entc/gen: move migrate annotation creation to init
Co-authored-by: Ruben de Vries <ruben@rubensayshi.com >
2021-01-13 12:00:30 +02:00
Ariel Mashraki
45020a877b
entc/gen: minor changes to annotation tests ( #948 )
2020-11-13 22:41:45 +02:00
Harold.Luo
b71fc2714b
dialect/entsql: add Size to Annotation ( #947 )
2020-11-13 20:44:42 +02:00
Ariel Mashraki
762df65f11
dialect/entsql: use annotation in schema builder ( #929 )
2020-11-08 11:26:44 +02:00
Ariel Mashraki
17abe2d60f
entc/gen: less sophisticated naming logic ( #774 )
...
Closed #772
2020-09-17 09:19:55 +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
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
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
54f0a6769b
schema/field: add annotation option to schema field ( #622 )
2020-07-19 18:01:04 +03:00
Alex Snast
f7d4a52e68
entc: adding fail method to template engine
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-07-12 13:56:03 +03:00
Alex Snast
ef402679b4
Adding hook conditions ( #589 )
...
* entc/gen: adding hook condition tests
Signed-off-by: Alex Snast <alexsn@fb.com >
* Revert "entc/gen: adding hook condition tests"
This reverts commit 3a46ea6cbf .
* entc/gen: adding hook conditions
Signed-off-by: Alex Snast <alexsn@fb.com >
* entc/gen: adding hook condition tests
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-07-06 16:40:51 +03:00
Ariel Mashraki
1a8d98f507
entc/gen: add option to extend existing templates ( #583 )
2020-07-05 14:48:18 +03:00
Alex Snast
361b796e90
entc/gen: make enum names pascal case regadless of value case
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-07-04 15:19:46 +03:00
Ariel Mashraki
8a754fb795
entc/gen: fix template func for receiver names ( #527 )
...
Fixed #525
2020-06-05 19:20:30 +03:00
Ariel Mashraki
5c5dee7e6f
entc/gen: minor changes to template functions ( #518 )
2020-06-02 21:19:58 +03:00
Ariel Mashraki
bf566aa3ac
entc/gen: support valuescanner in go-types ( #510 )
2020-05-28 18:23:14 +03: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
bb852ad093
intgeration: add pg and mysql test for customids ( #342 )
2020-02-12 20:42:03 +02:00
Alex Snast
15ee3d889f
entc/gen: adding list func to template engine
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-01-30 20:00:15 +01:00
Alex Snast
c62025d548
entc/gen: adding dict implementation to template engine
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-01-26 13:39:50 +01:00
Alex Snast
b840ea3f81
entc/gen: adding tagLookup / strings.Split functions to template engine
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-01-23 15:07:06 +02:00
Ariel Mashraki
7fde9b7642
entc/gen: move sql-update-one to sqlgraph
2019-12-22 13:32:51 +02:00
Ariel Mashraki
bc4284cf2c
ent/gen: trim invalid tokens in identifier prefix
...
Reviewed By: alexsn
Differential Revision: D18636356
fbshipit-source-id: f5ea4b4d003ec09d1351782e7691e9e657d15ed6
2019-11-21 08:49:58 -08:00
Ariel Mashraki
d9da7243f9
entc/gen: initial support for user-defined ids
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/162
Reviewed By: alexsn
Differential Revision: D18485086
fbshipit-source-id: 9bb6ccff592bc0cb8b218625161ed492f67bc170
2019-11-14 08:21:31 -08:00
Ariel Mashraki
b64330e475
ent/gen: remove redundant nillable check
...
Summary: nillable must be optional
Reviewed By: alexsn
Differential Revision: D17763004
fbshipit-source-id: 9c134e1648d1a387d90a5f2353de855a1aa3464f
2019-10-05 11:03:05 -07:00
Ariel Mashraki
480eb714d3
entc/gen: replace goimports with golang.org/x/tools/imports
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/53
Reviewed By: alexsn
Differential Revision: D17738814
fbshipit-source-id: 9865bc3c8eec766bd5c8e02db5c7afcaadb48c1f
2019-10-03 12:08:34 -07:00
Ariel Mashraki
1ebfa489c5
ent: add support for enum types
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/45
Reviewed By: alexsn
Differential Revision: D17715085
fbshipit-source-id: 7472e1bd9cf7a8a5bd98f96e6e884c0e27f36803
2019-10-02 12:55:28 -07:00
Ariel Mashraki
c3955a08f1
schema/field: json type support ( #38 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/38
Only `IsNil` and `NotNil` predicates are supported this moment
Reviewed By: alexsn
Differential Revision: D17444976
fbshipit-source-id: 37336fa0bc7749af995933baee2e23bb7366dd78
2019-09-19 05:00:11 -07:00
Ariel Mashraki
ade72ced0d
entc/integration: test external templates with node interface ( #31 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/31
node template is just a template used for testing.
Reviewed By: dlvhdr
Differential Revision: D17327549
fbshipit-source-id: 803ac26df1b866e721edee97999d199b0935098b
2019-09-12 01:24:16 -07:00