Commit Graph

33 Commits

Author SHA1 Message Date
Ariel Mashraki
5cd2ede22d dialect/entsql: add Skip annotation (#4156) 2024-07-26 23:03:21 +03:00
Ariel Mashraki
c2ff3ff3bc dialect/entsql: add schema to package annotation (#3817) 2023-11-10 10:57:26 +02:00
Ariel Mashraki
37f57d9a97 dialect/entsql: add helper function for creating table annotation (#3816) 2023-11-10 10:44:14 +02:00
Giau. Tran Minh
baaa22d018 entsql: added OnDelete annotation (#3459)
Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-04-09 23:36:35 +07:00
Ariel Mashraki
136807549d dialect/entsql: supports setting SQL column comments (#3191)
* feat: Add column comment in SQL DDL, using EntSQL annotations to achieve it.

* Update annotation.go

* fix lint

* Add table primary key column comment

* entsql.Comment(string)  is unnecessary

* entc/gen: minor changes to entsql.WithComments + add tests

Co-authored-by: chenghonour <wantto@outlook.com>
2022-12-26 14:48:37 +02:00
Ariel Mashraki
8a8c72f377 example/migration: improve atlas migration example (#3092) 2022-11-14 13:58:35 +02:00
Ariel Mashraki
25021635a0 doc/fields: document default values using annotations 2022-11-12 14:38:33 +02: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
eae7d390a9 dialect/sql: add support for index operator-class using atlasgo.io (#3073) 2022-11-08 14:08:10 +02:00
Ariel Mashraki
3fc4ba6f15 dialect/entsql: add support for partial indexes (#2944) 2022-09-20 15:07:28 +03:00
Ariel Mashraki
cfb038810d dialect/sql/entsql: support including non-key columns in postgres indexes (#2912) 2022-09-07 22:09:48 +03:00
Sasha Melentyev
dd4519f935 dialect/entsql: rename annotation vars (#2614) 2022-06-06 11:20:56 +03:00
Ariel Mashraki
fe2511fc8d dialect/entsql: add support for index-type annotation 2022-02-22 16:24:30 +02:00
Ariel Mashraki
51663407cf dialect/sql/schema: support DESC indexes using atlasgo.io 2022-01-31 15:18:09 +02:00
Ariel Mashraki
94499bd141 dialect/entsql: add support for DESC indexes annotation 2022-01-31 15:18:09 +02:00
Zhizhen He
9da36e461f all: fix typos (#2301) 2022-01-29 10:30:31 +02:00
Alexander Melentyev
147b1f59ae all: small typo fixes (#2095) 2021-11-01 17:47:06 +02:00
Ariel Mashraki
909d24cfc4 entc/gen: support merging dep annotations
This will make it possible to get dependencies
from external extensions.
2021-10-28 11:08:05 +03:00
Ariel Mashraki
42a2c67cc4 dialect/entsql: add support for table checks in schema/migration 2021-06-17 23:22:37 +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
1635a66cdd dialect/entsql: add check constraint annotation (#1519)
* added Check constraint annotation

* Update dialect/entsql/annotation.go

Co-authored-by: davebehr1 <davebehr1@gmail.com>
2021-04-29 22:25:27 +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
9685066b83 entc/gen: support on-delete annotation in migrate/schema 2021-03-16 15:29:21 +02:00
Ariel Mashraki
75c4ac189b dialect/entsql: add on-delete annotation 2021-03-16 15:29:21 +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
Santi Aguilera
75d93200e9 dialect/sql/entsql: allow non incremental primary keys (#1074)
* Allow non incremental PKs

* Format code with gofmt

* Update entc/integration/config/config_test.go

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update entc/integration/config/config_test.go

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update entc/integration/config/config_test.go

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Update entc/integration/config/config_test.go

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>

* Sort imports

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2020-12-28 17:34:27 +02:00
Ariel Mashraki
be9955a860 entc/load: merge annotations from the same type 2020-12-13 19:16:54 +02:00
Ariel Mashraki
ad01a0aadb dialect/entsql: implement merge for annotations 2020-12-13 19:16:54 +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
Daven
534dbbe590 dialect/entsql: add support for table-options in annotation (#938) 2020-11-10 20:40:56 +02:00
Ariel Mashraki
dea48a78ea entc/gen: merge list of entsql annotation to one (#928) 2020-11-08 10:57:31 +02:00
Ariel Mashraki
ed48f15429 dialect/entsql: add entsql annotation (#876) 2020-10-23 16:39:58 +03:00