Commit Graph

1893 Commits

Author SHA1 Message Date
dependabot[bot]
dc44b9f6fe build(deps): bump github.com/lib/pq from 1.10.6 to 1.10.7 (#2909)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.6 to 1.10.7.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.6...v1.10.7)

---
updated-dependencies:
- dependency-name: github.com/lib/pq
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 22:11:06 +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
Giau. Tran Minh
2cdb627c0d dialect/sql/sqljson: quote non-identifiers (#2910)
* dialect/sql: fixed invalid json path quote

* fix: fixed empty string

* fix: fixed lint issue

* Apply suggestions from code review

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

* fix: added test to new case

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-09-07 14:49:11 +03: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
Aagosh
326fe42d49 entc/gen: use FirstID instead of Count for Exist calls (#2896)
* Improve sqlexist template

* Address review comment and regenerate files

* Regenerate using go1.19

* Run go generate for examples dir

* Address review comment

* Update entc/gen/template/dialect/sql/query.tmpl

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-09-04 10:04:57 +03:00
Aagosh
b5976fbe6a go: update go version in go.mod (#2898) 2022-09-03 11:17:39 +03:00
Ariel Mashraki
2969796669 dialect/sql/sqlgraph: support batch-upadte for edge-schemas (#2897) 2022-09-02 15:33:41 +03:00
Abirdcfly
3b1b75b9d7 dialect/sql/sqljson: remove duplicate word in comments (#2892)
Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2022-08-30 10:19:04 +03:00
Weilence
f797ac2d14 entc/gen: remove repeated template fragment (#2890) 2022-08-30 07:50:15 +03:00
dependabot[bot]
2615b3a4b3 build(deps): bump github.com/mattn/go-sqlite3 from 1.14.14 to 1.14.15 (#2862)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.14 to 1.14.15.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.14...v1.14.15)

---
updated-dependencies:
- dependency-name: github.com/mattn/go-sqlite3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 07:45:27 +03:00
dependabot[bot]
9200dcdcc0 build(deps): bump minimist from 1.2.5 to 1.2.6 in /doc/website (#2872)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-30 07:45:14 +03:00
Ryo Yamada
015effdcc1 dialect/sql/builder: added FullJoin (#2885)
* dialect/sql/builder: added FullJoin

* fix comment casing

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

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-08-30 07:39:35 +03:00
Ariel Mashraki
bedbea6665 dialct/sql/sqljson: fix HasKey implementation for SQLite (#2887) 2022-08-29 23:37:30 +03:00
Ariel Mashraki
1cf4fc88c7 schema/field: ensure DefaultFunc argument is type func (#2884) 2022-08-28 20:56:10 +03:00
Ariel Mashraki
79fe0ebcd6 sql/sqljson: add support for ValueIn/ValueNotIn (#2882) 2022-08-24 17:58:44 +03:00
Bill Mill
f3b6dd9d7e doc/md: add -mod=mod to 'go run' commands in documentation (#2881)
https://go.dev/ref/mod#build-commands is the documentation for the -mod flag. It seems that basically -mod=mod is never harmful in ent's case, all it does is tell the go command that it can add ent to the go.mod file if it's not already present
2022-08-23 21:15:30 +03:00
allcontributors[bot]
4467021c6c docs: add water-a as a contributor for bug (#2879)
* docs: update doc/md/contributors.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-08-21 11:10:55 +03:00
Ariel Mashraki
f40cdf84f4 entc/gen: ensure immutability is consistent between edge and their fields (#2877) 2022-08-20 19:30:27 +03:00
Ariel Mashraki
b18ca9ca6f schema/edge: allow setting immutable edges (#2876) 2022-08-20 19:10:16 +03:00
Ariel Mashraki
461ab4a3e4 entc/gen: unexpose upsert setters for immutable fields (#2875) 2022-08-20 18:09:12 +03:00
Ariel Mashraki
2c63d1d70e all: gofmt -w -r 'interface{} -> any' (#2874) 2022-08-19 18:23:04 +03:00
Jannik Clausen
b6c185a660 dialect/sql/schema: make use of new atlas migration directories and r… (#2873)
* dialect/sql/schema: make use of new atlas migration directories and remove examples for custom formatters

* typo
2022-08-19 14:42:54 +02:00
Jannik Clausen
a46edf3ac7 all: update atlas (#2871)
resolves #2866
2022-08-19 12:49:24 +02:00
Yash Diniz
67a266300d doc/md: a typo under the Mutation section (#2869) 2022-08-19 11:14:50 +03:00
Rotem Tamir
b02de28afc doc/md: minor fixes to ci examples (#2867) 2022-08-19 09:41:30 +03:00
Rotem Tamir
50d4c62057 doc/md: add instructions for migration dir linting in ci page (#2865) 2022-08-18 14:41:00 +03:00
Pedro Henrique
2b54aadcce dialect/sql: escape EqualFold on Postgres (#2860)
* adds tests for equalFold predicates

* ensure EqualFold escapes the argument on Postgres

* adds tests on builder as well
2022-08-16 10:09:06 +03:00
dependabot[bot]
4d11fe3383 build(deps): bump ansi-regex from 5.0.0 to 5.0.1 in /doc/website (#2855)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-15 22:28:18 +03:00
dependabot[bot]
bd1a311e50 build(deps): bump trim from 0.0.1 to 0.0.3 in /doc/website (#2848)
Bumps [trim](https://github.com/Trott/trim) from 0.0.1 to 0.0.3.
- [Release notes](https://github.com/Trott/trim/releases)
- [Changelog](https://github.com/Trott/trim/blob/main/CHANGELOG.md)
- [Commits](https://github.com/Trott/trim/compare/0.0.1...v0.0.3)

---
updated-dependencies:
- dependency-name: trim
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-08-15 22:27:45 +03:00
Rotem Tamir
cb01c2831f doc/md/ci: fix yaml (#2859) 2022-08-15 14:20:54 +03:00
Rotem Tamir
c53251cbf6 doc/md/ci: fix weird sentence (#2858) 2022-08-15 10:09:32 +03:00
Ariel Mashraki
6637cbf68e examples/migration: add doc about migration linting (#2856) 2022-08-15 09:45:36 +03:00
Rotem Tamir
94226c9093 doc: entci (#2853)
* doc: entci

* Update doc/md/ci.mdx

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

* Update doc/md/ci.mdx

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

* Update sidebars.js

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-08-14 18:22:39 +03:00
Ariel Mashraki
5b3bcfa609 go: update ariga.io/atlas (#2854) 2022-08-14 15:47:38 +03:00
Ariel Mashraki
0350da3267 doc/md: add missing codereview comment (#2852) 2022-08-14 14:45:16 +03:00
Ariel Mashraki
01a4906931 doc/migration: improve versioned migration workflow example (#2851) 2022-08-14 14:42:11 +03:00
Ariel Mashraki
94b19ac973 dialect/sql: use raw NULL value in statements rather than passing nil arguments 2022-08-14 11:10:36 +03:00
Ariel Mashraki
5c2013b5fd entc/integration: example for #2846 2022-08-14 11:10:36 +03:00
Ariel Mashraki
757fc94985 doc/md: trigger master build 2022-08-13 20:17:44 +03:00
Ariel Mashraki
0298893924 .github/cd: update node version 2022-08-13 20:15:16 +03:00
Ariel Mashraki
8fc8d65a16 doc/fields: add section for nillable-required fields 2022-08-13 20:12:28 +03:00
Ariel Mashraki
b207429f15 entc/gen: allow setting required fields as nillable 2022-08-13 20:12:28 +03:00
Ariel Mashraki
c8fc927f0d entc/gen: add tests for bulk-upsert fix in #2840 (#2845) 2022-08-12 21:12:34 +03:00
Viktoriia Dlugopolskaia
7eb1ccd274 entc/gen: ignore immutable fields updating during bulk upsert (#2840) 2022-08-12 19:50:05 +03:00
Ariel Mashraki
24d1fad3b8 examples: add ent init --template example 2022-08-11 16:37:11 +03:00
Ariel Mashraki
0066eb986d entc/gen: extend sql/modify to UPDATE statements v0.11.2 2022-08-05 14:42:04 +03:00
Ariel Mashraki
0fd641333c dialect/sql/sqlgraph: support custom modifiers in UPDATE commands 2022-08-05 14:42:04 +03:00
Ariel Mashraki
9f481d8716 dialect/sql: support setting ORDER BY for UPDATE statements 2022-08-05 14:42:04 +03:00
Ariel Mashraki
47972774c5 go: bump go/packages version ci to 1.18+1.19 (#2832)
* bumped pkg golang.org/x/tools version to address issue #2826

* .github: update go1.19 in go generate

Co-authored-by: Ankit Patial <ankitpatial@gmail.com>
2022-08-05 11:17:53 +03:00