Ariel Mashraki
b340ed78cf
dialect/sql: append selector alias only if defined ( #3399 )
2023-03-19 12:07:41 +02:00
Ariel Mashraki
3f1063c77e
schema/field: add support or external ValueScanner ( #3391 )
2023-03-16 22:18:54 +02:00
Doron Cohen
a264ffcac1
doc/md: fix multi driver missing method ( #3390 )
2023-03-15 14:57:14 +02:00
Ariel Mashraki
acc4c5aac6
entc/gen: remove todo from template ( #3385 )
2023-03-13 18:57:12 +02:00
Anton Telyshev
148f7d51a0
entc/gen: add redundant any() to withHooks to make linters work ( #3360 )
...
See https://github.com/golang/go/issues/58633 for more info.
v0.11.10
2023-03-12 11:47:07 +02:00
Ariel Mashraki
bbbedf53af
entc/gen: add EqualFold and ContainsFold to string IDs ( #3382 )
2023-03-12 11:42:13 +02:00
Ariel Mashraki
81eb431081
schema/field: allow using JSON fields with type 'any' ( #3380 )
...
Fixed https://github.com/ent/ent/issues/3104
2023-03-10 10:20:51 +02:00
Michael Caulley
4a60f52cf4
doc: fix typo in privacy ( #3378 )
...
fix a typo in the privacy docs
2023-03-10 07:44:41 +02:00
Ariel Mashraki
546789b7d5
entc/gen: minor cleaning to codegen ( #3377 )
2023-03-09 22:08:18 +02:00
dependabot[bot]
3d41cfdb6e
build(deps): bump aws-actions/configure-aws-credentials ( #3370 )
...
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials ) from 1.7.0 to 2.0.0.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases )
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/main/CHANGELOG.md )
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1.7.0...v2.0.0 )
---
updated-dependencies:
- dependency-name: aws-actions/configure-aws-credentials
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-08 13:17:06 +02:00
Ariel Mashraki
db5adf9124
doc/faq: update the readwriter driver example ( #3368 )
2023-03-08 13:16:50 +02:00
Jannik Clausen
55e98b5b9b
dialect/sql/schema: mock result in write driver if returning clause is present ( #3369 )
2023-03-07 10:43:01 +01:00
Jannik Clausen
809b22be7c
dialect/sql/schema: strip returning from seed ( #3367 )
2023-03-07 07:46:34 +01:00
Ariel Mashraki
7e2da46e09
dialect/sql/schema: expand fmt.Stringer args in WriteDriver ( #3366 )
2023-03-04 23:05:16 +02:00
Ariel Mashraki
3b7715b552
dialect/sql/schema: allow setting table comments ( #3365 )
2023-03-04 20:50:26 +02:00
Ariel Mashraki
f16451eab8
dialect/sql/schema: allow planning with indentation ( #3363 )
2023-03-04 10:06:53 +02:00
Ariel Mashraki
9517200cb6
schema/field: fallback to native validator if not configured one ( #3359 )
v0.11.9
2023-03-01 12:09:26 +02:00
Ariel Mashraki
89e2d52000
entc/gen: merge context.go contents to ent.go file ( #3355 )
2023-02-28 11:55:34 +02:00
Rotem Tamir
5a93d8934b
doc/website/blog: fix broken page ( #3354 )
2023-02-27 15:45:46 +02:00
Rotem Tamir
5fd8469e8e
doc/website/blog: webapp with ent ( #3351 )
2023-02-27 15:24:17 +02:00
dependabot[bot]
00830f7cbd
build(deps): bump github.com/stretchr/testify from 1.8.1 to 1.8.2 ( #3353 )
...
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify ) from 1.8.1 to 1.8.2.
- [Release notes](https://github.com/stretchr/testify/releases )
- [Commits](https://github.com/stretchr/testify/compare/v1.8.1...v1.8.2 )
---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
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>
2023-02-27 15:03:06 +02:00
Ariel Mashraki
9020d2b961
doc/versioned: mention the globalid option in migrate-diff ( #3350 )
2023-02-25 21:10:17 +02:00
Noam Cattan
a151f7cb27
doc/md: update versioned-migrations ( #3341 )
...
* Update versioned-migrations.mdx
* Update versioned-migrations.mdx
2023-02-24 09:55:37 +02:00
dependabot[bot]
d3dc7d05cd
build(deps): bump golang.org/x/text from 0.3.7 to 0.3.8 ( #3346 )
...
Bumps [golang.org/x/text](https://github.com/golang/text ) from 0.3.7 to 0.3.8.
- [Release notes](https://github.com/golang/text/releases )
- [Commits](https://github.com/golang/text/compare/v0.3.7...v0.3.8 )
---
updated-dependencies:
- dependency-name: golang.org/x/text
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-23 11:12:43 +02:00
Ariel Mashraki
9c40fbc07b
entc/gen: fix inconsistent goimports formatting ( #3344 )
2023-02-22 21:29:15 +02:00
Ariel Mashraki
71e31bc0d7
doc: add entgql.MultiOrder annotation ( #3342 )
2023-02-22 19:50:21 +02:00
Travis Cline
4abb259989
cmd/ent: Attach Funcs for ent new templates ( #3336 )
2023-02-21 06:57:31 +02:00
Rotem Tamir
eeccc754d3
doc/md: updating versioned migrations tutorial ( #3334 )
...
* doc/md: updating versioned migrations tutorial
* Apply suggestions from code review
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
---------
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
2023-02-20 17:10:10 +02:00
Rotem Tamir
102f60ac12
cmd/internal/base: fix type on print sub-command ( #3335 )
2023-02-20 13:52:09 +02:00
Ariel Mashraki
4432754144
doc: add migrate diff command to in-depth section ( #3330 )
2023-02-19 16:39:02 +02:00
Ariel Mashraki
639e1093a0
doc: upadte migrate diff command ( #3329 )
...
* doc: upadte migrate diff command
* Update doc/md/components/_installation_instructions.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/getting-started.mdx
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/md/versioned-migrations.mdx
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com >
* Update doc/md/versioned-migrations.mdx
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com >
---------
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com >
2023-02-19 16:20:59 +02:00
Rotem Tamir
e671138bb8
doc/md/tutorial: ext grpc service example ( #3323 )
2023-02-16 23:57:15 +02:00
Ariel Mashraki
bd6f26aa7c
dialect/sql/schema: allow configuring Atlas to return ErrNoPlan ( #3322 )
2023-02-16 21:56:51 +02:00
Ariel Mashraki
8a31204259
entc/gen: reduce codegen lines ( #3321 )
2023-02-16 14:19:54 +02:00
Ariel Mashraki
770bb0f1a2
entc/gen: merge generate config.go file with client.go ( #3319 )
2023-02-16 12:08:41 +02:00
Ariel Mashraki
4e05f76717
dialect/sql: minor changes to allow using Migrate externally ( #3316 )
2023-02-14 15:06:36 +02:00
Ariel Mashraki
4c87e262a6
dialect/sql/schema: use the Atlas as state reader ( #3314 )
2023-02-14 10:20:34 +02:00
Zhizhen He
7aea5a82bc
golangci: remove deprecated linters ( #3315 )
2023-02-14 08:18:03 +02:00
blukai
fc28e223f8
go: update ariga.io/atlas ( #3313 )
...
For https://github.com/ent/ent/pull/3310
2023-02-13 16:47:29 +02:00
Giau. Tran Minh
f4bdc36e85
cmd/ent: rename init to new ( #3311 )
...
* cmd: rename init to new
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
* doc: update guide to use new command
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
---------
Signed-off-by: Giau. Tran Minh <hello@giautm.dev >
v0.11.8
2023-02-12 13:56:18 +02:00
blukai
349b950978
dialect/sql/schema: ensure consistency of NotCleanError ( #3310 )
...
* dialect/sql/schema: ensure consistency of NotCleanError
For https://github.com/ariga/atlas/pull/1454
* get rid of cerr var
https://github.com/ariga/atlas/pull/1454#discussion_r1102391750
2023-02-10 13:25:53 +01:00
Noam Cattan
cf2428d49a
doc: add an instruction to create a migrations directory ( #3308 )
...
* Update versioned-migrations.mdx
* Update versioned-migrations.mdx
2023-02-07 16:25:06 +02:00
Ariel Mashraki
baec350ed4
entc/gen: support type-based matching for edge-schema columns ( #3306 )
...
In case of no match by foreign-keys, we search by edge-type. This can happen if the type (edge owner)
is named T, but the edge-schema E names its edge field as u_id. We consider it as a match if
there is only one usage of T in E.
2023-02-07 10:58:20 +02:00
Ariel Mashraki
939c7cff1a
entc/gen: reduce the usage of DISTINCT in queries ( #3305 )
...
Most queries are not graph traversals but rather regular table scans,
in which case the DISTINCT clause is not needed as duplicates cannot be
returned (unless query was modified by the user).
2023-02-06 22:40:50 +02:00
Ariel Mashraki
138bd2bc1d
entc/gen: <T>Query.IDs should not return duplicates ( #3304 )
2023-02-06 21:19:05 +02:00
Ariel Mashraki
8022271f12
entc/integration: add example for composite unique index ( #3302 )
2023-02-06 11:17:33 +02:00
KaiserBh
9881f575ce
doc/graphql: fix typo ( #3299 )
2023-02-06 11:17:18 +02:00
Ariel Mashraki
0e6ef32505
dialect/sql/sqlgraph: add update spec builder ( #3301 )
2023-02-06 07:13:06 +02:00
dependabot[bot]
ca7408e81c
build(deps): bump http-cache-semantics in /doc/website ( #3297 )
...
Bumps [http-cache-semantics](https://github.com/kornelski/http-cache-semantics ) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/kornelski/http-cache-semantics/releases )
- [Commits](https://github.com/kornelski/http-cache-semantics/compare/v4.1.0...v4.1.1 )
---
updated-dependencies:
- dependency-name: http-cache-semantics
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-02-04 11:31:33 +02:00
Omar Kohl
331ec4e3ce
doc/md: fix broken privacy.md links ( #3296 )
...
privacy.md was renamed to privacy.mdx in commit f226627d67 .
When trying to click on one of the 'privacy' links on the features page
you get the following error:
<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>15DQ15S3VAEQA8PW</RequestId>
<HostId>
HxNShnveIK1dyPbqjFK/v7/x/VqKyysl4XWBPiEr75PgLkjl0CZjWN0PRzQcFMI0uZWPOpHS49Q=
</HostId>
</Error>
2023-02-03 14:11:45 +02:00