Commit Graph

1309 Commits

Author SHA1 Message Date
Ariel Mashraki
6310a5fdd7 examples/version: provide an optimistic locking example 2021-07-18 18:19:41 +03:00
Ariel Mashraki
88b168ad09 entc/gen: exposing filter/where api on mutations 2021-07-18 18:19:41 +03:00
Ariel Mashraki
92f4e83714 website: star Ent at GitHub header 2021-07-17 15:38:35 +03:00
Ariel Mashraki
430a3ee8b3 entc/gen: add example for uuid edge-field and fix #1723 (#1731) 2021-07-16 22:33:28 +03:00
Ariel Mashraki
79716e47d0 dialect/sql/schema: remove unneeded nolint rule 2021-07-16 14:07:40 +03:00
Ruben de Vries
1ea718f7bf dialect/sql/schema: add support for postgres and mysql numeric and decimal types in migrations (#1721)
* improve error message when failing to generate changeset

* support migrations for postgres and mysql numeric fields
2021-07-16 13:57:53 +03:00
dependabot[bot]
137c83a685 build(deps): bump github.com/mattn/go-sqlite3 from 1.14.7 to 1.14.8 (#1726)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.7 to 1.14.8.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.7...v1.14.8)

---
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-07-16 10:16:44 +03:00
dependabot[bot]
637950e725 build(deps): bump golang.org/x/tools from 0.1.4 to 0.1.5 (#1717)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.4 to 0.1.5.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.4...v0.1.5)

---
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-07-15 12:27:04 +03:00
Ariel Mashraki
4eefbb6af9 schema/field: support validator for Bytes fields
Fixed #1714
2021-07-13 21:42:50 +03:00
Zeev Manilovich
c8ed4e9d7a doc/md: making the getting started section more consistent and clearer (#1713)
* doc/md: making the getting started section more consistent and clerer

* Update doc/md/getting-started.md

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

* cr changes

* cr changes

* removing imports

* Update doc/md/getting-started.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-07-13 14:32:55 +03:00
dependabot[bot]
a5d0088ca6 build(deps): bump github.com/google/uuid from 1.2.0 to 1.3.0 (#1712)
Bumps [github.com/google/uuid](https://github.com/google/uuid) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/google/uuid/releases)
- [Commits](https://github.com/google/uuid/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: github.com/google/uuid
  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-07-13 11:14:14 +03:00
Ariel Mashraki
0b10a44f71 entc/gen: allow scanning zero or more fields on Select 2021-07-12 22:44:50 +03:00
Ariel Mashraki
e1e197483c doc/tutorial: add page about filter inputs (#1706)
* doc/tutorial: add page about filter inputs

Also, fixed some issues in website configuration

* Update doc/md/tutorial-todo-gql-filter-input.md

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

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-07-11 16:08:26 +03:00
Ariel Mashraki
095ef5b4e6 doc/graphql: change mutation-input example to extension 2021-07-10 22:01:16 +03:00
Ariel Mashraki
ac9f801259 doc/graphql: switch default example from templates to extension 2021-07-10 14:37:00 +03:00
allcontributors[bot]
4f97976d2b docs: add akfaew as a contributor for code (#1702)
* docs: update doc/md/contributors.md 

* docs: update .all-contributorsrc

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2021-07-09 16:17:40 +03:00
Ariel Mashraki
297067712f entc/gen: pass referenced columns schema-type to fk columns
Fixed #1699
2021-07-09 15:40:52 +03:00
Ariel Mashraki
560560a7a0 doc/schema-fields: fix incorrect support for UUID type 2021-07-09 15:40:29 +03:00
Ariel Mashraki
fe5d98aae1 doc/schema-fields: add example for id with custom storage-key 2021-07-09 09:54:12 +03:00
Ariel Mashraki
99a9d6cf9b dialect/sql: introduce lock config options 2021-07-08 16:41:01 +03:00
Giau. Tran Minh
052d406136 website/blog: update where input to camel (#1696) 2021-07-07 22:37:06 +03:00
Ariel Mashraki
d2a99137f7 doc/md: update codegen introduction page (#1693)
Add missing package.
2021-07-06 21:57:49 +03:00
Ariel Mashraki
dbce277b68 doc/schema-fields: fix grammar errors (#1686) 2021-07-04 13:18:30 +03:00
allcontributors[bot]
55edc0012b doc/md: add MONAKA0721 as a contributor for doc (#1685)
* 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-07-04 12:14:00 +03:00
allcontributors[bot]
6cb46cec4d doc/md: update doc/md/contributors.md
* 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-07-04 12:11:01 +03:00
Yuya Sumie
d1c44ef0cb website/tutorial: fix GraphQL tutorial (#1680) 2021-07-03 08:19:36 +03:00
Ariel Mashraki
1e90c51eb5 website/blog: fix code example (#1678) 2021-07-02 07:41:53 +03:00
Ariel Mashraki
d29b07d3f1 website/blog: automatic graphql filters generation (#1675)
* website/blog: automatic graphql filters generation

* typo

* doc/website/blog: automatic-graphql-filter-generation

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-07-01 22:49:07 +03:00
dependabot[bot]
72e5b43200 build(deps): bump actions/setup-node from 2.1.5 to 2.2.0 (#1674)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 2.1.5 to 2.2.0.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v2.1.5...v2.2.0)

---
updated-dependencies:
- dependency-name: actions/setup-node
  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-07-01 12:47:41 +03:00
Ariel Mashraki
a19a89a141 entc: change default extension implementation 2021-06-30 13:47:30 +03:00
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