cheny-alf
2840921231
dialect/sql: fix escape issue occurred in fuzzy testing ( #3115 )
...
* fix(builder):fix escape method
* fix(builder):fix escape method
Co-authored-by: chenfuqing <chenfuqing@laiye.com >
2022-11-26 13:26:14 +02:00
Karsten Köhler
05de3fb096
doc/md: fix typo in Atlas link ( #3116 )
2022-11-26 11:14:05 +02:00
Ariel Mashraki
b6a475f066
entc/gen: skip generating edge-schema unique indexes if defined
2022-11-23 18:56:02 +02:00
Ariel Mashraki
2d980550db
doc/edges: document the new edges behavior
2022-11-20 17:37:08 +02:00
Ariel Mashraki
f46dd7ace8
dialect/sql/sqlgraph: add support for edge-schema in create-bulk
2022-11-20 17:37:08 +02:00
Ariel Mashraki
aa3d21f01a
dialect/sql/sqlgraph: changing the M2M creation semantic from Add to Connect
...
Thus, calling AddE with the same edge values, ignore and not throw an error.
For edge-schemas with extra fields, we maintain the same logic because we cannot
determine if the extra fields have different values that what exist in the database
2022-11-20 17:37:08 +02:00
dependabot[bot]
4c9d61cf16
build(deps): bump go.opencensus.io from 0.23.0 to 0.24.0 ( #3074 )
...
Bumps [go.opencensus.io](https://github.com/census-instrumentation/opencensus-go ) from 0.23.0 to 0.24.0.
- [Release notes](https://github.com/census-instrumentation/opencensus-go/releases )
- [Commits](https://github.com/census-instrumentation/opencensus-go/compare/v0.23.0...v0.24.0 )
---
updated-dependencies:
- dependency-name: go.opencensus.io
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-19 22:24:05 +02:00
dependabot[bot]
fe1ebc55ab
build(deps): bump golangci/golangci-lint-action from 3.3.0 to 3.3.1 ( #3091 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.3.0...v3.3.1 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-19 22:23:44 +02:00
dependabot[bot]
dfb675bf32
build(deps): bump loader-utils from 2.0.0 to 2.0.4 in /doc/website ( #3097 )
...
Bumps [loader-utils](https://github.com/webpack/loader-utils ) from 2.0.0 to 2.0.4.
- [Release notes](https://github.com/webpack/loader-utils/releases )
- [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md )
- [Commits](https://github.com/webpack/loader-utils/compare/v2.0.0...v2.0.4 )
---
updated-dependencies:
- dependency-name: loader-utils
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-19 22:23:27 +02:00
Ariel Mashraki
4dd6b5bb74
entc/gen: minor imporvements to make goimports work easier ( #3106 )
2022-11-18 22:54:17 +02:00
Ariel Mashraki
da9322fd2e
entc/gen: remove unnecessary import from templates ( #3105 )
2022-11-18 21:45:48 +02:00
Ariel Mashraki
209d446859
Delete .bencher directory ( #3103 )
2022-11-18 21:45:34 +02:00
Rotem Tamir
a5aadd7737
doc/md/versioned: fixes to tutorial ( #3102 )
2022-11-17 11:04:53 +02:00
Ariel Mashraki
5954fa8b15
dialect/sql/schema: normalize ent/schema (desired state) on replay mode ( #3100 )
2022-11-16 20:01:36 +02:00
Rotem Tamir
cd60f84853
doc/md/versioned: upgrading to versioned migrations ( #3095 )
2022-11-16 10:59:06 +02:00
Ariel Mashraki
8a8c72f377
example/migration: improve atlas migration example ( #3092 )
2022-11-14 13:58:35 +02:00
Ariel Mashraki
891fc8fecf
dialect/sql/schema: support setting default value expressions on id fields ( #3089 )
2022-11-13 18:55:04 +02:00
Ariel Mashraki
53bdc325c0
entc/gen/schemaconfig: set alternate edge-schema names from config ( #3087 )
...
Fixed https://github.com/ent/ent/issues/3082
2022-11-12 21:42:57 +02:00
Ariel Mashraki
25021635a0
doc/fields: document default values using annotations
2022-11-12 14:38:33 +02:00
Ariel Mashraki
1e5f68646f
dialect/sql/entsql: support setting expression as column default value
...
Fixed https://github.com/ent/ent/issues/3069
2022-11-12 14:38:33 +02:00
Ariel Mashraki
3b5a535801
dialect/sql/schema: allow setting JSON default values on pg, sqlite and maria ( #3081 )
2022-11-11 07:41:21 +02:00
Ariel Mashraki
b86bc12db9
doc: document custom index operator classes ( #3079 )
2022-11-09 20:50:45 +02:00
Weilence
b0eb20f0f7
entc/gen: enable BuildFlags in *.go ( #3075 )
...
Co-authored-by: Weilence <weilence163.com>
2022-11-08 18:32:40 +02:00
Ariel Mashraki
eae7d390a9
dialect/sql: add support for index operator-class using atlasgo.io ( #3073 )
2022-11-08 14:08:10 +02:00
nzlov
942eb56b2a
cmd/ent: add comments to 'describe' command ( #3067 )
2022-11-07 16:23:07 +02:00
Ariel Mashraki
a91aabe3ef
entc/gen: ensure foreign-key constraints are unique in codegen ( #3066 )
2022-11-05 07:28:50 +02:00
Ronen Lubin
5d4f02620d
dialect/sql/sqljson: add ValueIsNotNull predicate ( #3058 )
...
* dialect/sql: add json ValueIsNotNull predicate
* get rid of false positive dupl linter warning
* add json valueIsNotNull case to integration tests
* fix rejects
2022-11-02 11:18:15 +02:00
Ariel Mashraki
35d0d4c3db
dialect/sql/sqlgraph: handle edge-schema in M2O/O2Oi calls entql
2022-11-01 19:46:33 +02:00
Ariel Mashraki
521f9b57bc
entc/gen: copy annotations to the Through meta-edge
2022-10-31 15:55:57 +02:00
Ariel Mashraki
c063978d68
entc/gen: ensure edge.StorageKey and edge.Field do not conflict
...
Fixed https://github.com/ent/ent/issues/2205 .
v0.11.4
2022-10-30 00:08:44 +03:00
Ariel Mashraki
e7ce44adb1
dialect/sql: support mapping non-lowercased tags
2022-10-27 23:03:32 +03:00
dependabot[bot]
f1223dc879
build(deps): bump github.com/mattn/go-sqlite3 from 1.14.15 to 1.14.16
...
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3 ) from 1.14.15 to 1.14.16.
- [Release notes](https://github.com/mattn/go-sqlite3/releases )
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.15...v1.14.16 )
---
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 >
2022-10-27 22:53:25 +03:00
Ariel Mashraki
3ddcb76ba0
entc/gen: fix codegen typo
2022-10-26 21:08:39 +03:00
Ariel Mashraki
fc9a4f9c6e
dialect/sql: add example for OrderExpr on postgres
2022-10-26 21:08:39 +03:00
dependabot[bot]
2d22f7e706
build(deps): bump golangci/golangci-lint-action from 3.2.0 to 3.3.0
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v3.2.0...v3.3.0 )
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 15:43:53 +03:00
dependabot[bot]
3e596ce2fb
build(deps): bump github.com/spf13/cobra from 1.6.0 to 1.6.1
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.6.0...v1.6.1 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2022-10-25 15:43:39 +03:00
Ariel Mashraki
1d957101fc
doc/aggregate: add examples for <T>Query.Aggregate
2022-10-23 09:50:23 +03:00
Ariel Mashraki
765ec09d31
entc/gen: add Aggregate to <T>Select and <T>Query
2022-10-23 09:50:23 +03:00
Ariel Mashraki
1bc4d48a51
dialect/sql: support scanning json fields ( #3022 )
2022-10-18 16:18:50 +03:00
Satoshi Morita
d17c28bee0
doc: update tutorial-todo-gql-field-collection.md ( #3021 )
...
refs: https://github.com/ent/contrib/pull/385
2022-10-17 13:55:37 +03:00
Ariel Mashraki
8d40edf24b
dialect/sql: add support for LIMIT in update statement ( #3018 )
2022-10-17 10:02:53 +03:00
Ariel Mashraki
bbdfea319d
dialect/sql: support the RETURNING clause in UPDATE ( #3016 )
...
* dialect/sql: support the RETURNING clause in UPDATE
2022-10-16 17:55:01 +03:00
Joe Wreschnig
ac725a61b7
entc: add BuildFlags to schema loader configuration ( #2801 )
...
This allows passing arbitrary build flags to the schema package loader,
which in turn can be used to pass build constraints affecting what
schema types and/or methods are visible.
As a particular use case, this should make it easier to implement
two-pass code generation to deal with circular imports in hooks (#892 ).
2022-10-16 16:53:47 +03:00
Cyril Brulebois
9ff209d1f3
doc: remove executable flag for md, mdx, png, js, and .gitignore files ( #3015 )
...
Spotted by lintian running against a Debian package: the executable flag
is strange for all those files in the doc directory.
2022-10-16 16:47:56 +03:00
dependabot[bot]
f674c72103
build(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 ( #3011 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.0 )
---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-12 10:15:49 +03:00
Andrey Elenskiy
fe4b19a355
dialect/sql: add Window function to be able to customize function clause for window statements ( #2994 )
2022-10-11 23:45:49 +03:00
Ariel Mashraki
a1e6f06094
go: upgrade ariga.io/atlas ( #3010 )
2022-10-11 23:25:19 +03:00
Rotem Tamir
09114208be
doc/website/blog: fixes to json append post ( #3009 )
2022-10-11 22:26:34 +03:00
Rotem Tamir
96e1325e44
doc/website/blog: json append blogpost ( #3006 )
2022-10-11 18:12:30 +03:00
Ariel Mashraki
cf137c665a
dialect/sql/sqljson: cast marshaled args as json ( #3008 )
2022-10-11 14:15:01 +03:00