2343 Commits

Author SHA1 Message Date
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
Giau. Tran Minh
36d16536ea doc/md: update doc for OnDelete annotation (#3460)
Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2023-04-10 00:21:25 +07: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
bb30c098a2 doc: fix typos in paging.md (#3458) 2023-04-09 17:12:41 +03:00
Ariel Mashraki
ba51a5990e doc: change latest ent version (#3457) v0.12.0 2023-04-09 15:25:41 +03:00
Ariel Mashraki
5b1de3901a doc: update ordering fluent api (#3456) 2023-04-09 15:00:16 +03:00
Ariel Mashraki
064c9118b7 entc/gen: add fluent-api for order options (#3449) 2023-04-09 10:37:42 +03:00
Sasha Melentyev
6165bdea32 doc: update pgx version in example (#3451)
Signed-off-by: Sasha Melentyev <sasha@melentyev.io>
2023-04-08 18:17:39 +03:00
Rotem Tamir
00e9bba974 doc/md: update protoc plugin installation instructions (#3450) 2023-04-08 16:03:36 +03:00
Ariel Mashraki
02bb3269af dialect/sql: move order-by options to top-level driver package (#3446) 2023-04-07 00:35:20 +03:00
Yosep
b26c2fe1bc doc: fix typos in tutorial (#3445)
Co-authored-by: yoseplee <yoseplee@linecorp.com>
2023-04-06 12:50:36 +03:00
박세훈
5cc6ad65f9 readme : add korean language (#3443)
* readme : add korean language

* readme: change readme korean link
2023-04-05 22:58:17 +07:00
dependabot[bot]
648260780e build(deps): bump github.com/spf13/cobra from 1.6.1 to 1.7.0 (#3442)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.6.1...v1.7.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-04-05 17:27:48 +03:00
Ariel Mashraki
0e7203655e dialect/sql/sqlgraph: allow selecting order by terms (#3439) 2023-04-04 14:00:35 +03:00
Ariel Mashraki
4c332f7bba doc/features: add dynamic values support (#3436) 2023-04-03 17:55:28 +03:00
Ariel Mashraki
ba7f158a9c entc/gen: allow scanning dynamic sql values (#3432) 2023-04-03 17:07:24 +03:00
Ariel Mashraki
6065db39fa fix 2023-01-26-visualizing-with-entviz.md 2023-04-03 17:04:57 +03:00
Noam Cattan
d143432580 doc: replace diagram examples links (#3435)
* cmd/internal: fix help message for "new" command

* doc: replace example links
2023-04-03 16:38:57 +03:00
Rotem Tamir
e685413055 doc: slack channel links (#3433) 2023-04-03 11:00:34 +03:00
Ariel Mashraki
abafd91b2d dialect/sql: move columns check from codegen to sql package (#3431) 2023-04-02 13:57:21 +03:00
Ariel Mashraki
90289b7494 dialect/sql: additional predicate helpers (#3429) 2023-04-02 13:01:36 +03:00
Ariel Mashraki
27bc0470eb dialect/sql/sqlgraph: add Step helpers for edge types (#3428) 2023-04-01 21:34:42 +03:00
Ariel Mashraki
60bb939fc2 dialect/sql/sqlgraph: add function to order by edge terms (#3426) 2023-04-01 20:55:00 +03:00
Zhizhen He
6f847a3492 ci: add spell checker and fix existing typo (#3420)
* ci: add spell checker and fix existing typo

* chore: move typos.toml to .github

* fix: correct config file path
2023-03-30 11:38:29 +03:00
Ariel Mashraki
e3cee0adc2 dialect/sql/sqlgraph: add function to order by edge count (#3422) 2023-03-30 10:10:59 +03:00
Ariel Mashraki
651a2a166e dialect/sql: add Joined<T> helpers for Selector to avoid double joining (#3419) 2023-03-28 15:33:21 +03:00
Ariel Mashraki
427aaf7d45 dialect/sql: add Selector.HasJoins helper (#3418) 2023-03-28 14:31:43 +03:00
Ariel Mashraki
d9e7adfa05 dialect/sql/sqlgraph: catch SQLite INSERT errors executed with Driver.Query (#3415) 2023-03-27 22:21:47 +03:00
Ariel Mashraki
b435c97c99 entc/integration: move tests to a separate module (#3411) 2023-03-25 10:59:29 +03:00
Ariel Mashraki
c35f786f86 entc/gen: ensure edge-fields are selected when their edges are loaded (#3401) 2023-03-20 19:11:04 +02:00
Adam Zapaśnik
055d367984 doc/grpc: fix typo in tutorial-grpc-edges.md (#3400)
Co-authored-by: Adam Zapaśnik <adamzapasnik@users.noreply.github.com>
2023-03-19 14:14:55 +02:00
Ariel Mashraki
b340ed78cf dialect/sql: append selector alias only if defined (#3399) 2023-03-19 12:07:41 +02:00
Ariel Mashraki
3f1063c77e schema/field: add support or external ValueScanner (#3391) 2023-03-16 22:18:54 +02:00
Doron Cohen
a264ffcac1 doc/md: fix multi driver missing method (#3390) 2023-03-15 14:57:14 +02:00
Ariel Mashraki
acc4c5aac6 entc/gen: remove todo from template (#3385) 2023-03-13 18:57:12 +02:00
Anton Telyshev
148f7d51a0 entc/gen: add redundant any() to withHooks to make linters work (#3360)
See https://github.com/golang/go/issues/58633 for more info.
v0.11.10
2023-03-12 11:47:07 +02:00
Ariel Mashraki
bbbedf53af entc/gen: add EqualFold and ContainsFold to string IDs (#3382) 2023-03-12 11:42:13 +02:00
Ariel Mashraki
81eb431081 schema/field: allow using JSON fields with type 'any' (#3380)
Fixed https://github.com/ent/ent/issues/3104
2023-03-10 10:20:51 +02:00
Michael Caulley
4a60f52cf4 doc: fix typo in privacy (#3378)
fix a typo in the privacy docs
2023-03-10 07:44:41 +02:00
Ariel Mashraki
546789b7d5 entc/gen: minor cleaning to codegen (#3377) 2023-03-09 22:08:18 +02:00
dependabot[bot]
3d41cfdb6e build(deps): bump aws-actions/configure-aws-credentials (#3370)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1.7.0 to 2.0.0.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1.7.0...v2.0.0)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 13:17:06 +02:00
Ariel Mashraki
db5adf9124 doc/faq: update the readwriter driver example (#3368) 2023-03-08 13:16:50 +02:00
Jannik Clausen
55e98b5b9b dialect/sql/schema: mock result in write driver if returning clause is present (#3369) 2023-03-07 10:43:01 +01:00
Jannik Clausen
809b22be7c dialect/sql/schema: strip returning from seed (#3367) 2023-03-07 07:46:34 +01:00
Ariel Mashraki
7e2da46e09 dialect/sql/schema: expand fmt.Stringer args in WriteDriver (#3366) 2023-03-04 23:05:16 +02:00
Ariel Mashraki
3b7715b552 dialect/sql/schema: allow setting table comments (#3365) 2023-03-04 20:50:26 +02:00
Ariel Mashraki
f16451eab8 dialect/sql/schema: allow planning with indentation (#3363) 2023-03-04 10:06:53 +02:00
Ariel Mashraki
9517200cb6 schema/field: fallback to native validator if not configured one (#3359) v0.11.9 2023-03-01 12:09:26 +02:00
Ariel Mashraki
89e2d52000 entc/gen: merge context.go contents to ent.go file (#3355) 2023-02-28 11:55:34 +02:00