Commit Graph

1279 Commits

Author SHA1 Message Date
Ariel Mashraki
52663a4df1 entc: introduce the entc.Extension api 2021-06-30 12:39:27 +03:00
bshihr
4066255641 dialect/sql/schema: add IndexBuilder.IfNotExists and use for Create() case. (#1666)
Append-only mode creates tables with the `IF NOT EXISTS` annotation.
Make indices case symmetric with this.
2021-06-30 09:09:48 +03:00
Ariel Mashraki
7ffdce4cef sql/schema: support custom char type for field.Other
Fixed #1664
2021-06-29 16:31:57 +03:00
Rotem Tamir
7d55d70750 doc/website/blog: ent + grpc is ready for use (#1665) 2021-06-28 20:00:01 +03:00
Rotem Tamir
dbd420bff5 doc/md: a detailed tutorial on the gRPC integration (#1663) 2021-06-28 16:36:08 +03:00
Ariel Mashraki
d3a0b89864 entc/gen: simplify the way to get gen.Field operation
External templates should not deal with storage configuration
2021-06-27 11:07:38 +03:00
Ariel Mashraki
ded20a0e36 entc/gen: cleanup sql templates 2021-06-27 10:27:10 +03:00
Ariel Mashraki
b64f122afd doc/features: syntax highlight for codeblock 2021-06-26 14:20:59 +03:00
Ariel Mashraki
c40ae45aee entc/gen: add support for summing custom Go numeric types 2021-06-25 17:30:17 +03:00
Ariel Mashraki
ee4fa653fd doc/md: minor changes to website 2021-06-24 21:29:03 +03:00
Ariel Mashraki
7869e83a10 entc/integ: add test case for #1654 2021-06-24 12:01:51 +03:00
Ivan Vanderbyl
4ba56ea901 entc/gen: delete removal edges from mutation (#1654)
* Remove Edge IDs from internal Mutation state

* Update template gen

* Update integration tests

* Update examples
2021-06-24 11:26:22 +03:00
dependabot[bot]
a29784eb69 build(deps): bump golang.org/x/tools from 0.1.3 to 0.1.4 (#1656)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.3 to 0.1.4.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.3...v0.1.4)

---
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-24 11:07:05 +03:00
Ariel Mashraki
37de2bd3f6 entc/gen: add support for user-defined ids in gremlin (#1651) 2021-06-22 23:26:32 +03:00
allcontributors[bot]
5004265666 docs: add tarrencev as a contributor for doc (#1650)
* 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-21 17:59:50 +03:00
Tarrence van As
fd19261f58 doc/faq: add big.Int example (#1649)
* Add custom precision numeric field example

* fix formatting
2021-06-21 17:58:51 +03:00
Ariel Mashraki
a817be4143 doc/faq: document check(s) constraint annotation 2021-06-20 15:54:34 +03:00
Ariel Mashraki
1d661deb50 dialect/sql/schema: add mysql tests for checks annotation 2021-06-18 10:30:07 +03:00
Ariel Mashraki
42a2c67cc4 dialect/entsql: add support for table checks in schema/migration 2021-06-17 23:22:37 +03:00
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