2343 Commits

Author SHA1 Message Date
Ariel Mashraki
797534a0d1 go: update ariga.io/atlas to latest version (#3751) v0.12.4 2023-09-18 10:30:25 +03:00
dorav
f822c5187f doc/ci: removed a reference to a hard coded go version (#3732)
Co-authored-by: dorav <dorav@ariga.io>
2023-09-05 10:03:32 +03:00
gedalyah-ariga
62a3e6f203 website/doc: remove unnecessary comma (#3685) 2023-08-19 20:52:00 +03:00
Luc van Kessel
d8774635e6 dialect/sql/sqlgraph: support nil errors in constraint checks (#3701)
* added nil checks to constraint errors

* removed whitespace from nil error checks

---------

Co-authored-by: Luc van Kessel <luc@klippa.com>
2023-08-18 22:13:38 +03:00
Ariel Mashraki
dc8ea50747 entc/gen: add support for MapBulkCreate (#3696) 2023-08-16 11:46:14 +03:00
Rotem Tamir
452aa79d90 doc/website/blog: vis with atlas (#3688) 2023-08-13 11:59:30 +03:00
Ariel Mashraki
91c7fcc685 dialect/sql/schema: allow only table creation modification in automatic schema planning (#3660) 2023-07-26 11:24:33 +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
Will Faught
da2ff50ff8 doc: remove useless wording (#3640) 2023-07-13 15:34:02 +03:00
Ariel Mashraki
c46cf6317b entc/gen: allow catching nested tx attemps with errors.Is (#3636) 2023-07-08 12:03:37 +03:00
Vijal Patel
1ec7523803 doc: fix new project instructions in tutorial-setup.md (#3622) 2023-07-02 18:14:15 +03:00
Mizuki Hashimoto
c151e305ca doc: fix edge.Annotations method name typo (#3618) 2023-06-27 07:56:04 +03:00
Ariel Mashraki
f0a81e2640 dialect/sql: add predicate to check hasprefix between columns/fields 2023-06-22 15:43:25 +03:00
Ariel Mashraki
0055559b1b dialect/sql: add tests to new logical predicate functions 2023-06-22 00:08:26 +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
56719b5c3f .github: bump go version (#3609) 2023-06-21 09:25:06 +03:00
Ariel Mashraki
b49d5f5924 dialect/sql/sqlgraph: expose standard modifier to eager-load N neighbors (#3603) 2023-06-17 12:23:57 +03:00
Ariel Mashraki
ee7a50bc48 entc/integration: add missing license header (#3594) 2023-06-09 09:19:57 +03:00
Ariel Mashraki
e8a2548915 entc/gen: allow naming ent/schemas as builder (#3593) 2023-06-09 01:16:56 +03:00
Ariel Mashraki
79820a3c93 entc/gen: quote index annotations in generated schemas (#3578)
Fixed https://github.com/ent/ent/issues/3558
2023-06-02 09:41:04 +03:00
Jannik Clausen
9f917c7263 schema/fields: validate for slices builder (#3566)
This PR changes the way slice types are built and adds the possibility to add a custom validation function to json slice types.
2023-05-30 10:02:27 +02:00
Ariel Mashraki
a8851db571 dialect/sql/sqljson: inline boolean values (#3570)
Some drivers like mysql encodes them as 0/1
2023-05-29 17:15:32 +03:00
Ariel Mashraki
633d021f48 entc/gen: avoid conflict between package and receiver names (#3563) 2023-05-25 14:45:57 +03:00
Ariel Mashraki
d7b3a6c4f4 ent: document ent.Value returned by mutations (#3556)
Fixed https://github.com/ent/ent/issues/3471
2023-05-23 14:54:18 +03:00
Ariel Mashraki
0aaaad6ccc entc/gen: fix conflicts between fields named 'op' and Mutation.Op (#3550) 2023-05-20 10:28:59 +03:00
Toshinori Sugita
0e29d0cf63 doc: update install instructions for atlas (#3526)
* fix-go-install-instruction

* Update _installation_instructions.mdx

Remove Go tab

* Update doc/md/components/_installation_instructions.mdx

* Update _installation_instructions.mdx
2023-05-17 23:11:02 +03:00
Ariel Mashraki
2924da5175 dialect/sql: expose the underyling builder of UpdateSet (#3541) 2023-05-16 00:00:56 +03:00
Giacomo Marinangeli
4231c8a98f doc: fix typo in migration plan (#3539)
Fix typo in docs: databaes into database
2023-05-15 17:28:59 +03:00
Ariel Mashraki
36553bbd8a entc/gen: avoid conflict between order by edge-count and fields end with _count (#3534) 2023-05-12 10:56:26 +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
fc8d095da8 dialect/sql: add OrderByRand option (#3518) 2023-05-04 12:13:24 +03:00
Ariel Mashraki
f251400818 dialect/sql/schema: support passing schema diff options (#3516) 2023-05-03 11:28:10 +03:00
Ariel Mashraki
a792f429a6 dialect/sql/schema: allow ariga.io/atlas schema diff to be extended (#3514)
By not relying on the SchemaDiff signature, we allow the schema.Differ to be extended without introducing breaking changes to ent
v0.12.3
2023-05-01 17:14:17 +03:00
Ariel Mashraki
e04f07d447 examples: change atlas migrate lint command 2023-04-30 20:19:02 +03:00
Giau. Tran Minh
ae8465e703 .github/workflow: sync action (#3513)
* .github/workflow: sync action

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: fixed main branch

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

---------

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-05-01 00:04:08 +07: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
Jannik Clausen
78c9c0d947 entc/gen/template: fix intercept package imports (#3507) 2023-04-28 16:26:17 +02:00
Jannik Clausen
af5ec59dbc Update graphql.md (#3506) 2023-04-28 10:02:21 +02:00
ASAKURA Kazuki
1c934c6ff5 doc/md/ci: fix broken link for ent/contrib/ci action's repo (#3504) 2023-04-26 23:53:05 +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) v0.12.2 2023-04-20 17:26:37 +03:00
Giau. Tran Minh
f6de6bb2e0 .github/workflow: added atlas-ci for examples (#3496)
* .github/workflow: added atlas-ci for example

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: fixed dir path

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: test ci

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

* chore: update branch and add paths

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

---------

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-04-20 19:36:50 +07:00
Ariel Mashraki
bc7d8c936f dialect/sql/sqlgraph: replace id IN with EXISTS for HasNeighbors predicates (#3492) 2023-04-19 17:52:01 +03:00
Ariel Mashraki
0508677ce7 cmd/ent: hide the --idtype flag from generate command (#3490)
The --idtype flag predates the field.<Type>(id) option.
See, https://entgo.io/docs/schema-fields\#id-field.
2023-04-18 15:54:14 +03:00
Ariel Mashraki
0d1257f5f2 doc: add entgql edge ordering (#3482) v0.12.1 2023-04-16 11:13:46 +03:00
Ariel Mashraki
8cb27bc7cf dialect/sql: add method for finding selection occurrences in queries (#3473) 2023-04-12 23:22:52 +03:00
Ariel Mashraki
44b8648720 dialect/sql/sqlgraph: allow query edge fields with alias (#3470) 2023-04-11 13:55:04 +03:00
Ariel Mashraki
36cd6a8a8b dialect/sql: skip formatting qualified columns (#3469) 2023-04-11 13:16:40 +03:00