Commit Graph

1545 Commits

Author SHA1 Message Date
Ariel Mashraki
12feb4301d doc/predicates: fix json example doc 2021-11-11 20:26:01 +02:00
Ariel Mashraki
7456e95235 doc/predicates: fix json example doc 2021-11-11 20:15:58 +02:00
Ariel Mashraki
0dd7b0d7c3 dialect/sql/sqljson: fix sqlite haskey and add docs 2021-11-11 18:58:28 +02:00
Ariel Mashraki
3ba2b4e173 entc/integration/json: add tests for null literals 2021-11-10 17:24:51 +02:00
Ariel Mashraki
0c5398a11d dialect/sql/sqljson: support comparing values with null literal 2021-11-10 17:24:51 +02:00
Alexander Melentyev
f6c9428978 ci: bump golangci-lint version (#2106) 2021-11-09 20:53:30 +02:00
dependabot[bot]
39eb637a42 build(deps): bump github.com/lib/pq from 1.10.3 to 1.10.4 (#2121)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.3 to 1.10.4.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.3...v1.10.4)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-09 19:04:48 +02:00
Ariel Mashraki
ab207c499a entc/gen: minor codegen improvements 2021-11-08 15:56:15 +02:00
Ariel Mashraki
e915765f3b entc/gen: allow scanning nil valuescanner types directly from database
Fixed https://github.com/ent/ent/issues/2116
2021-11-07 23:09:02 +02:00
Ariel Mashraki
dd6c034c2a dialect/sql/schema: support mediumtext field in migration
Fixed https://github.com/ent/ent/issues/2113
2021-11-07 15:37:06 +02:00
Ariel Mashraki
8f88f58713 dialect/sql/sqlgraph: minor refactor changes 2021-11-07 14:01:54 +02:00
allcontributors[bot]
4720063afd docs: add tankbusta as a contributor for doc (#2111) 2021-11-05 13:19:47 +02:00
Christopher Schmitt
657c5c7bad chore: address #2102 by adding mention of Unwrap (#2110) 2021-11-05 10:08:39 +02:00
dependabot[bot]
dffc12d44a build(deps): bump actions/checkout from 2.3.5 to 2.4.0 (#2103)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.5 to 2.4.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.5...v2.4.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  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>
2021-11-04 12:33:46 +02:00
Ariel Mashraki
caa673826a entc/gen/mutation: add IDs method for mutations 2021-11-03 23:16:56 +02:00
Ariel Mashraki
e8e4401d27 dialect/sqltest: use postgres dialect in predicate tests 2021-11-03 13:39:39 +02:00
Ariel Mashraki
02203c3f91 dialect/sqltest: ensure predicates can be reused 2021-11-02 23:01:11 +02:00
Ariel Mashraki
924de2d341 website/blog: minor typo change 2021-11-02 14:35:57 +02:00
Ariel Mashraki
d0118b2da2 website/blog: sync objects in external databases 2021-11-02 14:04:02 +02:00
Alexander Melentyev
147b1f59ae all: small typo fixes (#2095) 2021-11-01 17:47:06 +02:00
Alexander Melentyev
681d03e896 entc/gen: fix DependencyName godoc (#2094) 2021-10-30 22:51:15 +03:00
Ariel Mashraki
51b63c17c0 entc/gen: fix module version extraction when running entc as a package 2021-10-29 09:13:16 +03:00
allcontributors[bot]
59069b7449 docs: add JeremyV2014 as a contributor for code (#2087)
* 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>
2021-10-28 21:35:57 +03:00
dependabot[bot]
b308091ed6 build(deps): bump ws from 6.2.1 to 6.2.2 in /doc/website (#2079)
Bumps [ws](https://github.com/websockets/ws) from 6.2.1 to 6.2.2.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/6.2.1...6.2.2)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:10:48 +03:00
dependabot[bot]
ec676018b9 build(deps): bump url-parse from 1.5.1 to 1.5.3 in /doc/website (#2078)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.1 to 1.5.3.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.1...1.5.3)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:10:09 +03:00
dependabot[bot]
adb4c4951e build(deps): bump dns-packet from 1.3.1 to 1.3.4 in /doc/website (#2077)
Bumps [dns-packet](https://github.com/mafintosh/dns-packet) from 1.3.1 to 1.3.4.
- [Release notes](https://github.com/mafintosh/dns-packet/releases)
- [Changelog](https://github.com/mafintosh/dns-packet/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mafintosh/dns-packet/compare/v1.3.1...v1.3.4)

---
updated-dependencies:
- dependency-name: dns-packet
  dependency-type: indirect
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:08:50 +03:00
dependabot[bot]
6759de9980 build(deps): bump path-parse from 1.0.6 to 1.0.7 in /doc/website (#2076)
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:08:38 +03:00
dependabot[bot]
51bed1009f build(deps): bump normalize-url from 4.5.0 to 4.5.1 in /doc/website (#2075)
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-28 11:08:27 +03:00
Ariel Mashraki
909d24cfc4 entc/gen: support merging dep annotations
This will make it possible to get dependencies
from external extensions.
2021-10-28 11:08:05 +03:00
allcontributors[bot]
4f331e0090 docs: add heliumbrain as a contributor for doc (#2084) 2021-10-28 07:51:25 +03:00
heliumbrain
b2367f2bf0 doc/md: fix typo in tutorial-grpc-generating-proto.md (#2082)
Found a VERY TINY typo when going through the gRPC tutorial :)
2021-10-28 07:48:03 +03:00
dependabot[bot]
49aa38a974 build(deps): bump immer from 8.0.1 to 9.0.6 in /doc/website (#2073)
Bumps [immer](https://github.com/immerjs/immer) from 8.0.1 to 9.0.6.
- [Release notes](https://github.com/immerjs/immer/releases)
- [Commits](https://github.com/immerjs/immer/compare/v8.0.1...v9.0.6)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-27 15:00:40 +03:00
Ariel Mashraki
6538efe71d doc/md: entc config example for codegen (#2074) 2021-10-27 14:24:41 +03:00
Ariel Mashraki
3d0e648356 website: upgrade docusaurus and improve announcement bar 2021-10-27 14:13:00 +03:00
Alexander Melentyev
56016d56d6 entc/gen: remove unused named return (#2069) 2021-10-27 12:37:47 +03:00
Jeffrey Stiles
a98798ebbc doc/tutorial: update todo-gql-mutation-input example (#2063)
* Update tutorial-todo-gql-mutation-input.md

Make example code match latest changes to https://github.com/a8m/ent-graphql-example:

- Renaming fields that accept IDs on mutation_inputs (including https://github.com/a8m/ent-graphql-example/pull/5)
- Removing duplicate fields when edge fields are used (https://github.com/a8m/ent-graphql-example/pull/3)

* Update tutorial-todo-gql-mutation-input.md

Add back the accidental removal of `$input` variable declaration.
2021-10-27 08:18:06 +03:00
Ariel Mashraki
4d1fceb976 doc/codegen: add doc and example for external dependencies.
See #2066
2021-10-27 08:16:20 +03:00
Ariel Mashraki
82eeeb5a1c entc/gen: introduce the entc.Dependency option 2021-10-26 20:33:04 +03:00
Ariel Mashraki
5bbd973ffa doc/graphql: replace templates with extensions (#2064) 2021-10-25 07:52:04 +03:00
Andrey Elenskiy
62d64f2b78 dialect/sql/sqlgraph: use selector's column instead of table's column in HasNeighbors (#2060)
Allows for HasNeighbors' selector to be a generic selector instead of *SelectTable.
A use case for this is doing HasNeighbors* function on materialized queries instead
of on concrete tables only.
2021-10-25 07:46:54 +03:00
Ariel Mashraki
a1f6de2793 dialect/sql: escape special characters in pattern matching
Resources:
- https://www.postgresql.org/docs/current/functions-matching.html\#FUNCTIONS-LIKE
- https://www.sqlite.org/lang_expr.html\#the_like_glob_regexp_and_match_operators
- https://dev.mysql.com/doc/refman/8.0/en/string-literals.html

Fixed https://github.com/ent/ent/issues/2059
2021-10-24 21:14:26 +03:00
Ariel Mashraki
4919889eb4 doc/fields: add example for json default values 2021-10-22 16:09:25 +03:00
Ariel Mashraki
e687246f7a schema/field: support default values for json and other 2021-10-21 22:57:04 +03:00
Hila Kashai
5c76254b5c doc/extension: add popular extensions (#2054)
* add popular extensions

* edit popular extensions

* Apply suggestions from code review

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

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-10-21 17:30:40 +03:00
Ariel Mashraki
963bd669fd dialect/sql: add example to SIMILAR TO predicate (#2055) 2021-10-21 12:01:58 +03:00
Rotem Tamir
8c752862cf website/blog: sqlcomment share photo (#2051) 2021-10-20 14:56:35 +03:00
Ariel Mashraki
d199a7c267 website/blog: fix sqlcomment post title 2021-10-20 14:13:46 +03:00
Rotem Tamir
ccd6e9f18b Update 2021-10-19-sqlcomment-support-for-ent.md (#2050)
* Update 2021-10-19-sqlcomment-support-for-ent.md

* Update 2021-10-19-sqlcomment-support-for-ent.md
2021-10-20 13:56:07 +03:00
Amit Shani
6b293968c1 ent/blog: sqlcomment post by hedwigz (#2043)
* ent/blog: sqlcomment blog post

* ent/blog: rev 2

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>

* ent/blog: fix image link

* dashboard example image

* ent/blog: replace dashboard example

* ent/blog: fix syntax error

* ent/blog: fix broken link

* ent/blog: fix markdown snippet

* ent/blog: some minors

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* ent/blog: fix tutorial snippet

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-10-20 13:39:53 +03:00
dependabot[bot]
2305b15727 build(deps): bump github.com/mattn/go-sqlite3 from 1.14.8 to 1.14.9 (#2049)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.8 to 1.14.9.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.8...v1.14.9)

---
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>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-20 10:30:08 +03:00