Commit Graph

382 Commits

Author SHA1 Message Date
Giau. Tran Minh
2b1ad7e4b0 chore: bump x/tools to latest (#4329)
* chore: bump `x/tools` to latest

* chore: fixed lint on go1.24
2025-02-13 16:09:44 +07:00
Ariel Mashraki
c5db03c30e dialect/sql/schema: support setting schema name for migration (#4327) 2025-02-12 18:18:03 +02:00
Jannik Clausen
01e21a2c30 dialect/sql/schema: remove deprecated legacy migration engine (#4294) 2025-01-14 12:57:51 +01:00
Giau. Tran Minh
cb22300b38 chore: bump atlas to latest master (#4212) 2024-09-13 23:37:33 +07:00
Giau. Tran Minh
63596a9dca chore: pin Go to the minor version (1.23) (#4209)
* chore: pin Go to the minor version

* chore: ignore `hax`, `udo` and `leafs`
2024-09-13 14:16:26 +07:00
Tran Minh Luan
057c0ee063 go: update go to latest (#4188)
* go: update go to latest

* chore: fix lint
2024-08-23 11:46:59 +03:00
Ariel Mashraki
7aef607da4 website: add schema views doc (#4160) 2024-07-30 10:30:31 +03:00
Ariel Mashraki
15bebe8d89 ent: support schema view (#4157) 2024-07-28 19:00:47 +03:00
Ariel Mashraki
10de04eeaa doc: explain how to use functional indexes in migrations (#4149) 2024-07-20 11:48:52 +03:00
Carlos Tadeu Panato Junior
807b4a758b entc/gen/templates: update func godoc to match the method name (#4083)
Signed-off-by: cpanato <ctadeu@gmail.com>
2024-07-19 13:12:09 +03:00
Ariel Mashraki
9f61938bcc doc: explain how to use policies in migrations (#4141) 2024-07-14 14:53:22 +03:00
Ariel Mashraki
1073ce511e doc: explain how to use extensions in migrations (#4140) 2024-07-13 23:07:53 +03:00
Ariel Mashraki
94f69b0acb doc: explain how to use triggers in migrations (#4138) 2024-07-13 10:41:27 +03:00
Ariel Mashraki
4ce0013c76 doc: explain how to use enum types properly (#4137) 2024-07-12 18:27:08 +03:00
Ariel Mashraki
e57ff4adce doc: explain how to use composite types properly (#4136) 2024-07-12 14:38:08 +03:00
Ariel Mashraki
826aa41c27 doc: explain how to use domain types properly (#4134) 2024-07-12 12:45:42 +03:00
Ariel Mashraki
a1a79186fd entc/gen/template: improve goimports time by adding missing imports (#4103) 2024-06-17 12:03:34 +03:00
Ariel Mashraki
61751fc92c entc/gen: fix conflict between set_id edge field and mutation fields (#4062) 2024-05-19 14:26:59 +03:00
Ariel Mashraki
5d43d62c65 entc/gen: use query ops in generated code (#4005) 2024-04-05 15:05:56 +03:00
Ariel Mashraki
09dc9675a6 example/ent: add example for adding enums not at the end (#3980) 2024-03-17 12:30:45 +02:00
Ariel Mashraki
13437cba78 examples/migration: add column with default value (#3960) 2024-02-29 22:22:51 +02:00
Ronen Lubin
20f9fba3e6 go: update golang.org/x/sys (#3958)
* all: update golang.org/x/sys

* run go mod tidy
2024-02-26 22:11:45 +02:00
Ariel Mashraki
7284481be5 entc/gen: add feature-flag to set unique backref when their inverse is loaded (#3953) 2024-02-24 22:57:17 +02:00
Ariel Mashraki
744fed675e go: update golang.org/x/tools to latest (#3940) 2024-02-07 18:03:32 +02:00
Giau. Tran Minh
548edd248a chore: upgrade atlas to latest version (#3932) 2024-02-04 08:46:54 +07:00
Ariel Mashraki
40dfcc82ed examples/migration: hash card number/cvv (#3879) 2023-12-31 14:43:35 +02:00
Ariel Mashraki
e1d4e10939 examples: add session and session device (#3878) 2023-12-31 14:06:45 +02:00
Ariel Mashraki
8ce8a4160d examples/migration: append enum not at the end (#3877) 2023-12-31 12:30:45 +02:00
Ariel Mashraki
2341a71acb examples/migration: add payment entity (#3876) 2023-12-31 12:27:32 +02:00
Ariel Mashraki
bd8f9eac01 examples/migration: add unique pet name for each owner (#3875) 2023-12-31 12:00:46 +02:00
Ariel Mashraki
e875474929 examples/migration: add check constraint (#3873) 2023-12-31 11:05:58 +02:00
Jannik Clausen
5755614d3f entc/gen: support backticks in snapshot (#3851) 2023-12-07 21:35:48 +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
8a848a6475 entc/gen: nillable update setters for non-optional fields (#3788) 2023-10-12 21:26:07 +03:00
Ariel Mashraki
797534a0d1 go: update ariga.io/atlas to latest version (#3751) 2023-09-18 10:30:25 +03:00
Ariel Mashraki
dc8ea50747 entc/gen: add support for MapBulkCreate (#3696) 2023-08-16 11:46:14 +03:00
Yasser Sobhy
0b0cc90245 entc/gen: mark field as cleared when clearing edges (#3651)
* mark field as cleared when clearing edges

* regenerate examples

* run go generate in entc/integration

* runn go mod tidy
2023-07-21 16:17:39 +03:00
Ariel Mashraki
c46cf6317b entc/gen: allow catching nested tx attemps with errors.Is (#3636) 2023-07-08 12:03:37 +03:00
Ariel Mashraki
808edd134d dialect/sql: support capturing predicates in selectors
This allows custom predicates mutating the root querying and still respect the AND/OR/NOT semantics
2023-06-22 00:08:26 +03:00
Ariel Mashraki
4787899669 go: update ariga.io/atlas to latest version (#3610) 2023-06-21 12:24:05 +03:00
Ariel Mashraki
dcb84d8a9f ent/privacy: move some of the generated privacy helpers to ent/privacy (#3527) 2023-05-07 17:52:09 +03:00
Ariel Mashraki
f251400818 dialect/sql/schema: support passing schema diff options (#3516) 2023-05-03 11:28:10 +03:00
Ariel Mashraki
e04f07d447 examples: change atlas migrate lint command 2023-04-30 20:19:02 +03:00
Ariel Mashraki
9c677e538f entc/load: report 'go mod' errors on schema loading (#3511) 2023-04-30 18:02:44 +03:00
Ariel Mashraki
98eba0c261 doc: add schema inspection to getting-started page (#3510) 2023-04-30 16:17:44 +03:00
Ariel Mashraki
a675412c96 entc/gen: remoev unnecessary type arguments (#3503) 2023-04-25 13:46:29 +03:00
Ariel Mashraki
6198beb484 entc/gen: load referenced foreign-keys on eager-loading (#3497) 2023-04-20 17:26:37 +03:00
Ariel Mashraki
da69615bd0 entc/gen: rename <type>.Order to <type>.OrderOption (#3468)
Also, avoid generting predicate without op in case a field named: order_option
2023-04-11 08:23:29 +03:00
Ariel Mashraki
065cb9f9ff entc/gen: avoid ambiguous column names when joining the same table (#3461) 2023-04-10 06:29:17 +03:00
Ariel Mashraki
064c9118b7 entc/gen: add fluent-api for order options (#3449) 2023-04-09 10:37:42 +03:00