Commit Graph

1501 Commits

Author SHA1 Message Date
Ariel Mashraki
963bd669fd dialect/sql: add example to SIMILAR TO predicate (#2055) 2021-10-21 12:01:58 +03:00
Rotem Tamir
8c752862cf website/blog: sqlcomment share photo (#2051) 2021-10-20 14:56:35 +03:00
Ariel Mashraki
d199a7c267 website/blog: fix sqlcomment post title 2021-10-20 14:13:46 +03:00
Rotem Tamir
ccd6e9f18b Update 2021-10-19-sqlcomment-support-for-ent.md (#2050)
* Update 2021-10-19-sqlcomment-support-for-ent.md

* Update 2021-10-19-sqlcomment-support-for-ent.md
2021-10-20 13:56:07 +03:00
Amit Shani
6b293968c1 ent/blog: sqlcomment post by hedwigz (#2043)
* ent/blog: sqlcomment blog post

* ent/blog: rev 2

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* ent/blog: fix image link

* dashboard example image

* ent/blog: replace dashboard example

* ent/blog: fix syntax error

* ent/blog: fix broken link

* ent/blog: fix markdown snippet

* ent/blog: some minors

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>

* ent/blog: fix tutorial snippet

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

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

* Update doc/website/blog/2021-10-19-sqlcomment-support-for-ent.md

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com>
Co-authored-by: Giau. Tran Minh <giau.tmg@gmail.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-10-20 13:39:53 +03:00
dependabot[bot]
2305b15727 build(deps): bump github.com/mattn/go-sqlite3 from 1.14.8 to 1.14.9 (#2049)
Bumps [github.com/mattn/go-sqlite3](https://github.com/mattn/go-sqlite3) from 1.14.8 to 1.14.9.
- [Release notes](https://github.com/mattn/go-sqlite3/releases)
- [Commits](https://github.com/mattn/go-sqlite3/compare/v1.14.8...v1.14.9)

---
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-10-20 10:30:08 +03:00
Hila Kashai
f32957e81a .github: fix typo in bug template (#2047) 2021-10-20 09:40:10 +03:00
Hila Kashai
d6ebb40f03 .github/issues: add link to ent/bug (#2045) 2021-10-19 18:35:35 +03:00
Ariel Mashraki
535e61fc4f .github: update issue template 2021-10-19 17:42:25 +03:00
Lenu Gan
2f0d9de45f doc/faq: add read-write separation example (#2032) 2021-10-19 15:45:31 +03:00
dependabot[bot]
0a6de9457f build(deps): bump actions/checkout from 2.3.4 to 2.3.5 (#2038)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2.3.4 to 2.3.5.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v2.3.4...v2.3.5)

---
updated-dependencies:
- dependency-name: actions/checkout
  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-10-19 15:44:14 +03:00
Ariel Mashraki
aa8d2ecb58 entc/gen/integ: add example for using query modifiers in multischema mode 2021-10-18 18:52:44 +03:00
Amit Shani
2c9a175f06 website/blog/entviz: add import on entc.go snippet (#2040)
* blog/entviz: add import on entc.go snippet

* Update doc/website/blog/2021-08-26-visualizing-your-data-graph-using-entviz.md

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

* blog/entviz: full code snippet for `entc.go`

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-10-18 12:31:08 +03:00
Ariel Mashraki
3e6c40886d entc/gen: support count with field selection
Fixed https://github.com/ent/ent/issues/2036
2021-10-17 19:03:49 +03:00
Ariel Mashraki
732b2a7d6e website/blog: minor fix to the entcache post 2021-10-14 23:13:01 +03:00
Ariel Mashraki
5646717544 website/blog: introducing entcache post (#2034) 2021-10-14 21:33:26 +03:00
Ariel Mashraki
899e9f0e50 dialect/sql: wraps the sql.Rows with ColumnScanner interface 2021-10-14 09:32:30 +03:00
Ariel Mashraki
123930c362 entc/integ: add example for o2o with edge field 2021-10-12 20:54:23 +03:00
Rotem Tamir
960aac547a doc/blog: removing uneeded colon from title 2021-10-12 16:53:05 +03:00
Zeev Manilovich
a80349d61a doc/website/blog: post about importing database schema to ent - using entimport (#2026) 2021-10-12 15:58:03 +03:00
allcontributors[bot]
efba15f6a7 docs: add mookjp as a contributor for code (#2027)
* 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-10-12 10:30:41 +03:00
mook
076e1269e8 entc/gen: fix example code in comment (#2025) 2021-10-12 10:29:58 +03:00
allcontributors[bot]
058e40abcf docs: add sivchari as a contributor for code (#2024)
* 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-10-11 14:09:52 +03:00
sivchari
eee77df5a6 entc/integration/template: fix go vet errors (#2021)
* fix govet

* fix template and receiver argument
2021-10-11 13:38:45 +03:00
Ariel Mashraki
9e809635b2 entc/gen: ignore immutable fields on Upsert<T>.UpdateNewValues
Also, for some reason, the TimeMixin.UpdateTime was an immutable field,
but this was incorrent, because the codegen just skip generating
update setters to it. Removing the Immutable modifier allows users
to set this field explicitly.
2021-10-08 08:20:05 +03:00
Alexander Melentyev
b47b46ee6d ci: bump golangci-lint version (#2018)
* Bump golangci-lint version

* Fix linters issues

* Add exclude-rules for schema and test

* Fix cfg
2021-10-07 20:06:38 +03:00
Ariel Mashraki
f30a17edd4 all: fix linting issues before migrating to golangci v1.42 (#2019) 2021-10-07 19:54:43 +03:00
Alexander Melentyev
f5834b6fe6 Remove deprecated linter (#2017) 2021-10-07 18:58:07 +03:00
allcontributors[bot]
b518a2b4f5 docs: add ThinkontrolSY as a contributor for code (#2014)
* 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-10-06 21:47:09 +03:00
Shen Yang
65cf307b10 dialect/sql/schema: add support for tstzrange and interval and in postgres (#2013)
Fixes #1989
2021-10-06 21:46:34 +03:00
Yoni Davidson
68793d3f99 doc/graphql: update gql prefix to genereated files (#2009) 2021-10-05 12:27:33 +03:00
Eyal Posener
0b5b39b152 doc/blog: fix example in elk post (#2008)
* update elk doc

I guess that the API have changed. When I run the current example I get:

```
$ go generate .
go: finding module for package github.com/masseelch/elk
go: downloading github.com/masseelch/elk v0.4.8
go: downloading entgo.io/ent v0.9.2-0.20210822190728-d84ac191b1c7
go: downloading github.com/mailru/easyjson v0.7.7
go: downloading github.com/stoewer/go-strcase v1.2.0
2021/10/04 21:35:46 creating elk extension: no generator enabled: enable one by providing either "GenerateSpec()" or "GenerateHandlers()" to "NewExtension()"
exit status 1
be/ent/generate.go:4: running "go": exit status 1
```

* Update doc/website/blog/2021-07-29-generate-a-fully-working-go-crud-http-api-with-ent.md

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-10-04 21:57:16 +03:00
Ariel Mashraki
e2df06503d entc/integration: add postgres14 for integration/ci tests (#2006) 2021-10-04 17:34:12 +03:00
Ariel Mashraki
525e841882 bencher: add config and suppress failure 2021-10-03 16:29:11 +03:00
Ariel Mashraki
14cba0abb6 dialect/sql/schema: make Field.Unique and Index.Unique equal (#2004)
This will allow moving from:

	field.String(c).Unique()

To:

	index.Field(c).Unique()

And vice versa
2021-10-03 16:20:28 +03:00
Ariel Mashraki
842fc9df1c dialect: fix godoc for Driver (#2002) 2021-10-03 14:40:41 +03:00
Ariel Mashraki
87e2199309 entc/integration: add example for bytes id with custom comparable Go type 2021-09-29 18:31:01 +03:00
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