Commit Graph

1260 Commits

Author SHA1 Message Date
Ariel Mashraki
b8f4614bfd dialect/sql: allow adding check clauses in create table 2021-06-17 22:30:15 +03:00
Ariel Mashraki
754b56856a entc/gen: disallow immutable edge-fields
Until we add the immutable option for edges
2021-06-16 22:19:53 +03:00
Ariel Mashraki
b444535a13 doc/edges: mention the edge-field option in examples 2021-06-13 09:27:56 +03:00
dependabot[bot]
49d11cc774 build(deps): bump golang.org/x/tools from 0.1.2 to 0.1.3 (#1635)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.2...v0.1.3)

---
updated-dependencies:
- dependency-name: golang.org/x/tools
  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-06-11 10:04:38 +03:00
Ariel Mashraki
01e27a88bf doc/md: add example for decimal type using gotype 2021-06-10 17:55:25 +03:00
Ariel Mashraki
963ed444de doc/indexes: add example for index annotations 2021-06-10 11:28:57 +03:00
Ariel Mashraki
66871c9806 dialect/sql/schema: add support for index prefixes in mysql 2021-06-09 22:52:31 +03:00
Matthew Gabeler-Lee
110073c982 entc/gen: fix nil dereference (SIGSEGV) on db errors during Save with Hooks (#1629)
* entc/gen: check for errors before assuming success when save has hooks

* entc/integration,examples: update generated code
2021-06-09 08:56:11 +03:00
Ariel Mashraki
7428167a14 dialect/sql/schema: add testcase for unsigned decimal types (#1628) 2021-06-08 11:22:55 +03:00
dependabot[bot]
fe9b083288 build(deps): bump aws-actions/configure-aws-credentials (#1623)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1.5.9 to 1.5.10.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1.5.9...v1.5.10)

---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
  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-06-03 10:07:48 +03:00
allcontributors[bot]
f64402bdc8 docs: add wzyjerry as a contributor (#1622)
* 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-06-03 08:58:42 +03:00
WzyJerry
bbe54ede4e dialect/sql/sqljson: query in array of objects with Postgres backend #1594 (#1621) 2021-06-03 08:56:58 +03:00
Ariel Mashraki
e5bceccf1d entc/integration: add query modifier example 2021-06-01 17:00:40 +03:00
Ariel Mashraki
f5c284787f dialect/sql: allow appending select columns to query 2021-06-01 11:50:16 +03:00
allcontributors[bot]
fdc5f2b7e9 docs: add Sacro as a contributor (#1615)
* 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-05-31 22:19:31 +03:00
Ariel Mashraki
6b24f38abb Update .all-contributorsrc 2021-05-31 22:18:36 +03:00
Ariel Mashraki
a29e2bee10 all-contributorsrc: add Sacro for code 2021-05-31 22:17:26 +03:00
Ariel Mashraki
11567a3926 entc/gen: update mutation-id on post mutation 2021-05-31 20:31:51 +03:00
Rotem Tamir
ca7aa4b742 doc/md: adding a guide on contribution of docs to ent 2021-05-31 20:21:56 +03:00
Ariel Mashraki
c750e6e5c5 doc/predicate: extend custom predicates section 2021-05-31 20:20:35 +03:00
Ariel Mashraki
46cf7ad36a schema/field: store reflect type info in json fields 2021-05-31 10:04:50 +03:00
Ariel Mashraki
5eb5f501f0 entc/integration: add test case to check nillable values 2021-05-28 21:23:04 +03:00
dependabot[bot]
78ef693802 build(deps): bump actions/cache from 2.1.5 to 2.1.6
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.5...v2.1.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-28 09:43:11 +03:00
Ariel Mashraki
69c4e2387e dialect/sql: add (not)exists predicate for builder 2021-05-27 21:56:56 +03:00
Rotem Tamir
649548e447 doc/website: announce user survey in announcement (#1605) 2021-05-27 13:59:00 +03:00
Ciaran Liedeman
844f63015d entc/gen: remove internal rollback function from templates (#1602) 2021-05-26 20:17:12 +03:00
dependabot[bot]
0e5635941f build(deps): bump golang.org/x/tools from 0.1.1 to 0.1.2 (#1601)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.1...v0.1.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 16:22:51 +03:00
Ariel Mashraki
961dc08d14 examples/fs: add example for recursive traversals (#1599) 2021-05-25 20:45:37 +03:00
Ariel Mashraki
02452aad89 dialect/sql: add option to prefix select queries (#1598) 2021-05-25 18:38:06 +03:00
Ariel Mashraki
5d3cc575b3 dialect/sql: add union and with-recursive api for builder (#1595) 2021-05-25 18:27:32 +03:00
Ariel Mashraki
b46a6f0d69 dialect/sql/sqlgraph: prefix entql idents with table/select name (#1592) 2021-05-23 18:12:16 +03:00
Ariel Mashraki
af73543265 schema/field: change NamedValues documentation (#1591) 2021-05-23 12:12:00 +03:00
allcontributors[bot]
ca6d15d64d docs: add y-yagi as a contributor (#1590)
* 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-05-22 12:16:28 +03:00
y-yagi
414dc89605 doc: update supported dialects (#1589)
* MariaDB 10.3 has supported by https://github.com/ent/ent/pull/1407.
* PostgreSQL 13 has supported by https://github.com/ent/ent/pull/961.
2021-05-22 12:15:33 +03:00
y-yagi
a46277d412 docs: change github.com/facebook/ent to github.com/ent/ent (#1588)
This reduces an unneeded redirect.
2021-05-22 12:14:41 +03:00
Andy Day
237799dd2e schema/field: allow non-string ValueScanner types for enum fields (#1577)
* Make non-string ValueScanner types work with enum fields

This change fixes #1575 which now makes it possible to specify a GoType
for an enum that is not a string alias. It requires that if the specified
type is not a string alias, the type must satisfy the Stringer interface.

* remove default, rename field

* wip

* remove comment

* go generate

* make optional

* generate 🤦

* handle NULL case

* turns out mysql stores strings as []uint8
2021-05-20 23:29:47 +03:00
Rotem Tamir
da20bba97d doc/md/slack: documentation on how to join the slack channel (#1581) 2021-05-20 13:39:05 +03:00
Benjamin Bourgeais
d114942589 dialect/sql: improve equalfold implementation (#1572) 2021-05-19 22:30:50 +03:00
Ariel Mashraki
6691e6a28c entc/gen: import custom types in mutation template (#1576) 2021-05-19 15:53:47 +03:00
allcontributors[bot]
40c60a28aa docs: add uta-mori as a contributor (#1571)
* 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-05-18 12:18:55 +03:00
allcontributors[bot]
6adc97bed3 docs: add 8ayac as a contributor (#1570)
* 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-05-18 12:18:44 +03:00
8ayac(Yoshinori Hayashi)
af9a5acfee doc: add a Japanese version of README.md (#1560)
* doc: add README_jp.md

* docs: fix a wrong link.
2021-05-18 12:16:37 +03:00
allcontributors[bot]
385483affc docs: add BrentChesny as a contributor (#1569)
* 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-05-18 12:14:55 +03:00
BrentChesny
8e1b449f78 docs/md: add index edge fields example to docs (#1566) 2021-05-18 12:14:06 +03:00
dependabot[bot]
6ebafe8870 build(deps): bump github.com/lib/pq from 1.10.1 to 1.10.2 (#1563)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.1...v1.10.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 10:57:14 +03:00
allcontributors[bot]
5c13296f3e docs: add sywesk as a contributor (#1568)
* 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-05-18 10:56:57 +03:00
Benjamin Bourgeais
56d8c77e5c schema/index: add support for annotations (#1562)
* index: Add support for annotations

* entc loader: Add support for index annotations
2021-05-18 10:55:53 +03:00
Ariel Mashraki
4ebbc0cd55 doc/faq: mention gqlgen integration for xid 2021-05-16 17:55:04 +03:00
dependabot[bot]
a821d80707 build(deps): bump golang.org/x/tools from 0.1.0 to 0.1.1 (#1558)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.0...v0.1.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-16 10:49:18 +03:00
dependabot[bot]
b759fd2e0b build(deps): bump actions/checkout from 2 to 2.3.4 (#1557)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 2.3.4.
- [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...v2.3.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-16 10:49:06 +03:00