dependabot[bot]
0d97c736a7
build(deps): bump golang.org/x/tools from 0.1.6 to 0.1.7 ( #1997 )
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.6 to 0.1.7.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.6...v0.1.7 )
---
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-09-29 17:58:13 +03:00
Ariel Mashraki
de9bf4daf1
doc/upsert: add example for clearing and de/incrementing fields ( #1994 )
2021-09-28 22:31:19 +03:00
dependabot[bot]
1b071d7e01
build(deps): bump actions/setup-node from 2.4.0 to 2.4.1 ( #1993 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v2.4.0...v2.4.1 )
---
updated-dependencies:
- dependency-name: actions/setup-node
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-09-28 10:50:39 +03:00
Ariel Mashraki
4306643d16
dialect/sql/sqlgraph: support sql.Scanner types when scanning IDs ( #1987 )
...
Fixed https://github.com/ent/ent/issues/1985
2021-09-27 17:49:57 +03:00
allcontributors[bot]
0c4e9c78a7
docs: add attackordie as a contributor for doc ( #1988 )
2021-09-27 08:00:24 +03:00
Brian
3c3f328be7
doc/tutorial: fix imports in tutorial-grpc-setting-up.md ( #1984 )
...
Update import to remove this error: "Sticking to the "Quick Instruction" by "undeclared name: field" error #1931 "
2021-09-26 22:12:07 +03:00
allcontributors[bot]
7bec24c544
docs: add evanlurvey as a contributor for code ( #1983 )
...
* 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-09-25 23:22:49 +03:00
Evan Lurvey
300f0b5307
schema/field: add the Sensitive option to field.Bytes ( #1982 )
...
* Add Sensitive() option to bytesBuilder
I have a use case where I want to store bytes but I want to use the sensitive option.
* Added new field test and ran generation
Co-authored-by: Evan Lurvey <elurvey@Evans-Mac-mini.local >
2021-09-25 23:21:55 +03:00
Ariel Mashraki
625e422a08
entc/gen: fix bug with enum separators
...
Fixed https://github.com/ent/ent/issues/1961
2021-09-24 00:03:59 +03:00
Ariel Mashraki
4c2faf2282
entc/gen: allow spaces in enum fields
2021-09-23 23:23:28 +03:00
Ariel Mashraki
5262810d8c
entc/integ: move docker-compose to top directory
2021-09-22 17:06:06 +03:00
allcontributors[bot]
4e753f0c71
docs: add storyicon as a contributor for code ( #1974 )
...
* 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-09-22 16:03:15 +03:00
Ariel Mashraki
432af473aa
doc/extension: error should not end with punctuation ( #1973 )
2021-09-22 16:02:07 +03:00
storyicon
779594f7da
dialect/sql/schema: support mysql mediumtext type ( #1972 )
...
Signed-off-by: storyicon <yuanchao@bilibili.com >
2021-09-22 15:35:14 +03:00
allcontributors[bot]
073215901e
docs: add EndlessIdea as a contributor for code ( #1969 )
...
* 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-09-21 20:46:56 +03:00
Ariel Mashraki
2b128340d3
entc/gen: support unique field selection
...
Unique Field Selection - Merge #1959
2021-09-21 20:45:01 +03:00
Ariel Mashraki
207cbef60f
doc/fields: add examples for unique field selection
2021-09-21 20:33:53 +03:00
Ariel Mashraki
4314b3a9e8
entc/gen: add test cases for unique field selection
2021-09-21 20:31:03 +03:00
Ariel Mashraki
ac05c1357e
examples: run codegen for examples
2021-09-21 20:25:08 +03:00
Ariel Mashraki
a44885eaf0
Merge branch 'EndlessIdea-entc-select-distinct' into unique-select
2021-09-21 20:14:59 +03:00
Ariel Mashraki
fe7375fc7b
Merge branch 'entc-select-distinct' of https://github.com/EndlessIdea/ent into EndlessIdea-entc-select-distinct
2021-09-21 20:14:21 +03:00
Ariel Mashraki
5c7c36bf29
dialect/sql/schema: skip parsing expression default for postgres
...
Fixed https://github.com/ent/ent/issues/1962
2021-09-21 15:59:04 +03:00
dependabot[bot]
3b41914013
build(deps): bump prismjs from 1.24.1 to 1.25.0 in /doc/website ( #1966 )
...
Bumps [prismjs](https://github.com/PrismJS/prism ) from 1.24.1 to 1.25.0.
- [Release notes](https://github.com/PrismJS/prism/releases )
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md )
- [Commits](https://github.com/PrismJS/prism/compare/v1.24.1...v1.25.0 )
---
updated-dependencies:
- dependency-name: prismjs
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-21 13:35:39 +03:00
dependabot[bot]
0bb155253a
build(deps): bump golang.org/x/tools from 0.1.5 to 0.1.6 ( #1964 )
...
Bumps [golang.org/x/tools](https://github.com/golang/tools ) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/golang/tools/releases )
- [Commits](https://github.com/golang/tools/compare/v0.1.5...v0.1.6 )
---
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-09-21 13:35:23 +03:00
EndlessIdea
bfc0e7c575
go generate
2021-09-18 16:32:33 +08:00
Lining Guan
f42014f019
enable distinct in sqlQuery
2021-09-18 16:01:11 +08:00
Ariel Mashraki
5f31091dcd
entc/gen: support de/incrementing values on upsert
...
Fixed https://github.com/ent/ent/issues/1952 .
2021-09-17 14:25:34 +03:00
Risky Feryansyah
8cb468f979
doc/website: fix security concern transitive depedency in website docs ( #1957 )
2021-09-17 12:36:45 +03:00
Ariel Mashraki
912415e1e1
dialect/sql: add Add method to UpdateSet
2021-09-16 23:41:29 +03:00
Ariel Mashraki
3c650e507e
dialect/sql: use raw 0 in COALESCE function on Add calls
...
The second argument for COALESCE function is not a dynamic argument (always 0).
2021-09-16 23:07:45 +03:00
dependabot[bot]
65ddc56d46
build(deps): bump github.com/mitchellh/mapstructure from 1.4.1 to 1.4.2 ( #1948 )
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.1 to 1.4.2.
- [Release notes](https://github.com/mitchellh/mapstructure/releases )
- [Changelog](https://github.com/mitchellh/mapstructure/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mitchellh/mapstructure/compare/v1.4.1...v1.4.2 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
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-09-15 11:06:20 +03:00
Tarrence van As
f903c3a371
entc/gen: fix fk handling for bytes ( #1947 )
2021-09-14 22:42:48 +03:00
Ariel Mashraki
38925b6134
dialect/sql/schema: revert #1547 for mariadb
2021-09-14 13:07:49 +03:00
Benjamin Kane
06f9353734
doc/md: link to non-foreign-key join-table fields GH issue ( #1912 )
...
https://github.com/ent/ent/issues/1061 seems to be a common question ( also see [Slack](https://gophers.slack.com/archives/C01FMSQDT53/p1630519196046300 ), so link to it in the docs.
2021-09-13 12:11:33 +03:00
dependabot[bot]
9fdfd3b0f2
build(deps): bump github.com/modern-go/reflect2 from 1.0.1 to 1.0.2 ( #1941 )
...
Bumps [github.com/modern-go/reflect2](https://github.com/modern-go/reflect2 ) from 1.0.1 to 1.0.2.
- [Release notes](https://github.com/modern-go/reflect2/releases )
- [Commits](https://github.com/modern-go/reflect2/compare/1.0.1...v1.0.2 )
---
updated-dependencies:
- dependency-name: github.com/modern-go/reflect2
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-09-13 11:33:12 +03:00
MasseElch
fdf7b3f2f3
doc/website/blog: openapi generator ( #1936 )
2021-09-13 10:26:10 +03:00
allcontributors[bot]
12227e7ae5
docs: add s-takehana as a contributor for doc ( #1938 )
...
* 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-09-11 12:09:30 +03:00
s-takehana
4497656078
doc/md: add missing imports for getting-started page ( #1934 )
2021-09-11 12:08:26 +03:00
Ariel Mashraki
0864659844
dialect/sql/sqlgraph: avoid creating tx blocks for single UPDATE statements
...
In PostgreSQL, every statement is executed within a transaction. Therefore, we can avoid
creating transaction blocks manually (group of statements surrounded by BEGIN and COMMIT)
for UpdateNodes operation with a single UPDATE statement.
Benchmark for 2000 operations was improved from:
7.98s 3992160 ns/op 4887 B/op 116 allocs/op
To:
4.42s 2209659 ns/op 4435 B/op 104 allocs/op
---
MySQL and SQLite share the same behavior. Please see #1858 for more info.
2021-09-11 08:56:37 +03:00
allcontributors[bot]
52fa73a0d5
docs: add tsingsun as a contributor for code ( #1933 )
...
* 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-09-09 14:03:23 +03:00
Ariel Mashraki
139e8021e6
website: add link to ent discord server ( #1930 )
2021-09-09 12:24:51 +03:00
allcontributors[bot]
fc2b2f2823
docs: add isoppp as a contributor for doc ( #1929 )
...
* 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-09-08 19:44:00 +03:00
Hiroki Isogai
125bb0c00f
docs/md: fix unresolved reference ( #1928 )
2021-09-08 19:38:47 +03:00
Ariel Mashraki
c1fae17b6c
entc/gen: add schema type to generated validation errors
2021-09-07 18:33:32 +03:00
allcontributors[bot]
0d91f6396c
docs: add odeke-em as a contributor for code ( #1923 )
...
* 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-09-07 17:04:56 +03:00
Emmanuel T Odeke
9904bcb8c8
all: add (*testing.B).ReportAllocs() to all benchmarks ( #1919 )
...
This allows a full picture when continuous benchmarking
is added to this repository and when any changes are made
to the code in here.
Fixes #1918
2021-09-07 17:04:07 +03:00
Ariel Mashraki
b96dfa6d9b
doc/md: fix LIKE predicate example ( #1922 )
2021-09-07 15:03:59 +03:00
Sadman Sakib
0a9c4c4232
doc/md: custom predicate example for LIKE operator ( #1911 )
...
* fix typo on doc/md/crud.md
Signed-off-by: sadmansakib <ssadman8@gmail.com >
* add example for LIKE operator
Signed-off-by: sadmansakib <ssadman8@gmail.com >
* Update doc/md/predicates.md
* Update doc/md/predicates.md
* Update doc/md/predicates.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2021-09-07 09:04:40 +03:00
Yoni Davidson
9c7383f43b
doc/website: docs-security upgrade axios resolved version ( #1916 )
2021-09-05 17:48:01 +03:00
Giau. Tran Minh
2a40f27b2b
doc/md: update MaxRuneCount example ( #1915 )
...
* doc/md: update MaxRuneCount example
Update MaxRuneCount example with entsql.Annotation.
https://github.com/ent/ent/issues/1856
https://github.com/ent/ent/issues/1914
* update custom validator description
* Update doc/md/schema-fields.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com >
* Update doc/md/schema-fields.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com >
* Update doc/md/schema-fields.md
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com >
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com >
2021-09-05 15:19:39 +03:00