1927 Commits

Author SHA1 Message Date
Jannik Clausen
5330f87759 doc/md: add ci instructions for SQLite (#2970) v0.11.3 2022-09-28 12:08:21 +03:00
dependabot[bot]
b286a4b0ce build(deps): bump normalize-url from 4.5.0 to 4.5.1 in /doc/website (#2968)
Bumps [normalize-url](https://github.com/sindresorhus/normalize-url) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/sindresorhus/normalize-url/releases)
- [Commits](https://github.com/sindresorhus/normalize-url/commits)

---
updated-dependencies:
- dependency-name: normalize-url
  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-09-28 12:07:55 +03:00
dependabot[bot]
51d20e39f6 build(deps): bump path-parse from 1.0.6 to 1.0.7 in /doc/website (#2969)
Bumps [path-parse](https://github.com/jbgutierrez/path-parse) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases)
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7)

---
updated-dependencies:
- dependency-name: path-parse
  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-09-28 12:07:46 +03:00
Jannik Clausen
c41d223733 dialect/sql/schema: disable foreign keys before opening a transaction (#2966)
* dialect/sql/schema: disable foreign keys before opening a transaction

* dialect/sql/schema: disable foreign keys before opening a transaction

* fix tests

* add test for bug

* apply CR
2022-09-28 07:41:49 +02:00
Dan Kortschak
e02622a064 docs: various fixes to the graphql tutorial (#2965)
* doc/md: fix resolver diff and isolation example

* doc/md: fix updateTodo input field

* doc/md: add missing extension and fix paths

Without entgql.WithSchemaGenerator entc.go fails to run.

* doc/md: add file titles

Note that the where:TodoWhereInput parameter is pre-filled in the
generated ent.graphql file.

* doc/md: add context to conjunction/negation example

Only add for the first example to provide a lead to readers.
2022-09-27 10:02:16 +03:00
Dan Kortschak
bd80e069b9 doc: fix file name for required change (#2961) 2022-09-27 09:58:45 +03:00
Ariel Mashraki
e93e96ed1b dialect/sql/schema: use serial underlying types for fks (#2963) 2022-09-27 07:54:07 +03:00
Giau. Tran Minh
679109f5c2 entc/gen: remove space around continue for 1.18 compatible (#2962)
Related: https://github.com/golang/go/issues/51670
Signed-off-by: Giau. Tran Minh <hello@giautm.dev>

Signed-off-by: Giau. Tran Minh <hello@giautm.dev>
2022-09-26 21:10:15 +03:00
Dan Kortschak
7ad7df2d04 doc: make mutation and variable match todo.graphql (#2960)
Replay the same GraphQL change made in tutorial-todo-gql-node.md for
tutorial-todo-gql-paginate.md.
2022-09-26 13:42:41 +03:00
yuki2006
16f978298f doc/md: fix broken links to "GraphQL example" (#2959) 2022-09-26 12:21:50 +03:00
Dan Kortschak
192eace0f5 doc: make mutation and variable match todo.graphql (#2958)
Also remove section in gqlgen.yml that does not appear in the local file.
2022-09-26 10:31:26 +03:00
Ariel Mashraki
baa282dac7 doc/tx: improve WithTx example (#2952) 2022-09-24 20:19:14 +03:00
Jannik Clausen
139725ee00 dialect/sql/schema: no longer allocate a PK range for a join table (#2950)
* dialect/sql/schema: no longer allocate a PK range for a join table

* test that no breaking change is introduced
2022-09-23 13:40:36 +03:00
jiurenm
0f5cba6144 doc: update schema-edges.mdx (#2947) 2022-09-22 11:56:05 +03:00
Jannik Clausen
f43b06492f doc/md: add atlas migration import to versioned docs (#2942) 2022-09-21 11:07:39 +02:00
Ariel Mashraki
8502534ddf doc/indexes: add partial indexes example (#2945) 2022-09-20 15:35:12 +03:00
Ariel Mashraki
3fc4ba6f15 dialect/entsql: add support for partial indexes (#2944) 2022-09-20 15:07:28 +03:00
allcontributors[bot]
a3e38c5141 docs: add jhwz as a contributor (#2943)
* update doc/md/contributors.md [skip ci]

* update .all-contributorsrc [skip ci]

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-09-20 12:50:54 +02:00
jhwz
043fa71045 Docs spelling arguement -> argument (#2939) 2022-09-20 12:44:15 +02:00
Pedro Henrique
1f8e4ada01 entc/gen: allow package with alias on ID field (#2926)
* entc/gen: allow package with alias on ID field

* Update entc/gen/template/import.tmpl

Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>

Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>
2022-09-18 16:45:21 +03:00
Ikko Ashimine
b81db910a3 doc: minor fix Japanese README (#2935) 2022-09-18 12:13:48 +03:00
Ariel Mashraki
0adfb94c30 dialect/sql: support defining multiple FROM in query (#2933) 2022-09-16 00:10:11 +03:00
Ariel Mashraki
4425d1a6e1 cmd/ent: support 'ent describe' in edge-schemas (#2931) 2022-09-15 11:09:15 +03:00
Yun
d9b3004be7 doc/md: fix package name breaking generate (#2922) 2022-09-11 08:52:38 +03:00
Aagosh
d9c71d7f67 schema/mixin: fix comments in godoc (#2921) 2022-09-10 13:41:26 +03:00
Ariel Mashraki
9e56543bfc doc/graphql: improve relay connection annotation (#2920) 2022-09-09 11:59:38 +03:00
Ariel Mashraki
ac937f8a6e entc/gen: allow using 'client' and 'tx' as schema field names (#2919) 2022-09-09 10:38:25 +03:00
Jannik Clausen
366aaaad7a doc/md: change default execution engine to Atlas in documentation (#2916) 2022-09-08 20:29:44 +03:00
Ariel Mashraki
d0bce8aee4 doc/graphql: link to tutorial basic setup (#2918) 2022-09-08 20:23:15 +03:00
Ariel Mashraki
31e41da792 doc: link from graphql doc to tutorial (#2917) 2022-09-08 20:04:36 +03:00
thuan1412
29aa179c67 doc/md: update schema-indexes doc (#2914)
Co-authored-by: Thuấn Đỗ Hoàng <thuan.dh@teko.vn>
2022-09-08 17:57:34 +03:00
Ariel Mashraki
82ee525676 doc/tutorial: update entgql + gqlgen integration (#2915) 2022-09-08 17:56:11 +03:00
Rotem Tamir
d0943109b5 doc/website/blog: fix ci link (#2913) 2022-09-08 13:59:07 +03:00
Rotem Tamir
346af30254 doc/website/blog: ci blogpost (#2903) 2022-09-08 12:09:23 +03:00
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