Commit Graph

1129 Commits

Author SHA1 Message Date
chris guo
1be783632f chore: update predicates docs about how to use predicates in subquery 2021-03-25 20:51:22 +02:00
Ariel Mashraki
2ba7d8e7a2 doc/website: small css changes to navbar 2021-03-25 16:37:40 +02:00
Ariel Mashraki
0c05e2abb5 doc/website: change crowdin file 2021-03-25 16:20:42 +02:00
Ariel Mashraki
4e7e975603 github/cd: pass crowdin token 2021-03-25 16:19:49 +02:00
Rotem Tamir
5abe74d752 Merge pull request #1391 from rotemtam/feat/enable-crowdin-translation
doc/website - add i18n support + crowdin sync
2021-03-25 16:13:15 +02:00
Rotem Tamir
eb77948ca2 enable crowdin translation 2021-03-25 14:01:27 +02:00
Ariel Mashraki
2d09c8f846 entc/gen/features/multischema: pass schema to count query (#1390)
Fixed #1385
2021-03-25 13:48:32 +02:00
Ariel Mashraki
d62b810096 doc/website: add link to slack channel (#1389) 2021-03-25 12:24:44 +02:00
Ariel Mashraki
e0117c7b40 doc/website/blog: fix image url (#1388) 2021-03-25 11:14:13 +02:00
Ariel Mashraki
0b53a83ca2 doc/website: navbar responsive alignment 2021-03-25 08:48:13 +02:00
Ariel Mashraki
d9f6c3ed9c doc/website: fix mobile/responsive formatting (#1387) 2021-03-25 08:43:29 +02:00
Ariel Mashraki
f83bb981ea doc/website: minor css changes to homepage (#1386)
* WIP - migrating entgo.io to docosaurus v2

* organizing pages a bit to be better suited for v2 site structure

* doc/website: finish migration to docusaurus v2

* doc/website: minor css changes to homepage

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-03-24 22:02:25 +02:00
Ariel Mashraki
d9faf21e05 doc/website: migration to docosaurus v2 (#1384)
* WIP - migrating entgo.io to docosaurus v2

* organizing pages a bit to be better suited for v2 site structure

* doc/website: finish migration to docusaurus v2

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-03-24 21:48:30 +02:00
Ariel Mashraki
3773738fd5 Revert "doc/website: migrate to docusaurus v2 (#1382)" (#1383)
This reverts commit 21c3fa83fc.
2021-03-24 21:18:44 +02:00
Ariel Mashraki
21c3fa83fc doc/website: migrate to docusaurus v2 (#1382)
* WIP - migrating entgo.io to docosaurus v2

* organizing pages a bit to be better suited for v2 site structure

* doc/website: finish migration to docusaurus v2

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-03-24 21:16:04 +02:00
Ariel Mashraki
305edd00e0 dialect/sql/schema: handle index prefix key limit in older versions of mariadb
Fixed #1378
2021-03-23 17:01:38 +02:00
Ariel Mashraki
56a0cf1e8b dialect/sql/sqlgraph: fix incorrect arg-list handling in entql
Fixed #1376
2021-03-22 20:27:12 +02:00
Ariel Mashraki
a3c536402a dialect/sql: add missing godoc comments (#1372) 2021-03-22 18:45:50 +02:00
Ariel Mashraki
cf8464cb28 entc/gen/template: allow disable DISTINCT in queries (#1371) 2021-03-22 16:36:05 +02:00
Ivan Vanderbyl
afa3beca6b dialect/sql: add on-conflict handling to sql builder (#1370)
* Adds conflict handling to sql builder

* Revert some builder tests

* Fix builder test

* Revert

* Revert another line

* Update dialect/sql/builder.go

* Move conflict ops

* Refactor conflict handling builder

Co-authored-by: Ivan Vanderbyl <ivanvanderbyl@gmail.com>
Co-authored-by: Ivan Vanderbyl <ivanvanderbyl@users.noreply.github.com>
2021-03-22 12:36:43 +02:00
dependabot[bot]
9520911f3d build(deps): bump github.com/jessevdk/go-flags from 1.4.0 to 1.5.0 (#1369)
Bumps [github.com/jessevdk/go-flags](https://github.com/jessevdk/go-flags) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/jessevdk/go-flags/releases)
- [Commits](https://github.com/jessevdk/go-flags/compare/v1.4.0...v1.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-22 12:10:53 +02:00
Ruben de Vries
68a6bd7fcd dialect/sql: add helpers for basic predicates for comparing 2 columns. (#1358) 2021-03-22 11:42:12 +02:00
Ariel Mashraki
6e3c3b6960 schema/field: add issue number to latest change (#1368) 2021-03-21 21:27:05 +02:00
Matthew Clemens
c1d7e8e480 schema/field: relax the Comparable result for TypeOther (#1304) 2021-03-21 14:44:20 +02:00
Rotem Tamir
ed14f1983c doc/website: fix formatting on gRPC blog (#1367) 2021-03-21 13:47:52 +02:00
Ariel Mashraki
0ed36ba188 doc/website: add social links to website (#1366) 2021-03-21 13:37:08 +02:00
Ariel Mashraki
970887b4d0 entc/gen/template: add extend-templates for all builders (#1364) 2021-03-20 21:46:15 +02:00
Ariel Mashraki
c84350a43a doc/website: few style changes for website logo (#1363) 2021-03-20 20:14:18 +02:00
Ariel Mashraki
693e8db207 entc/integration: set custom uuid identifier unique on database (#1362) 2021-03-20 18:33:04 +02:00
Ariel Mashraki
aee6785cba examples/entcpkg: add codegen-hook example (#1356) 2021-03-19 12:29:51 +02:00
Ariel Mashraki
4e60827cc0 doc/website/blog: move grpc image to s3 (#1353) 2021-03-19 11:24:56 +02:00
Rotem Tamir
fedce7b3c2 doc/website/blog: gRPC blog post (#1352) 2021-03-19 10:32:51 +02:00
Ariel Mashraki
b4ad29f7f3 dialect/sql/schema: fix postgres index migration (#1351)
Fix PostgreSQL index migration when table_name = type_name.
Closed #1344
2021-03-18 22:29:39 +02:00
Ariel Mashraki
14ed353ca9 dialect/sql: minor improvements to sql builder (#1343)
benchmark                                     old ns/op     new ns/op     delta
BenchmarkInsertBuilder_Default/default-16     6210          922           -85.15%

benchmark                                     old allocs     new allocs     delta
BenchmarkInsertBuilder_Default/default-16     86             16             -81.40%

benchmark                                     old bytes     new bytes     delta
BenchmarkInsertBuilder_Default/default-16     4098          1088          -73.45%
2021-03-17 14:36:09 +02:00
Ariel Mashraki
fc1a2a025c doc/annotation: add cascade deletion doc and example (#1340) 2021-03-16 15:55:36 +02:00
Ariel Mashraki
9685066b83 entc/gen: support on-delete annotation in migrate/schema 2021-03-16 15:29:21 +02:00
Ariel Mashraki
75c4ac189b dialect/entsql: add on-delete annotation 2021-03-16 15:29:21 +02:00
Ariel Mashraki
e92dfee33f entc/gen: filter duplicate ids when loading m2m edges 2021-03-16 08:44:27 +02:00
Ariel Mashraki
6ab0d01ea4 entc/gen: filter duplicate ids when loading o2m/m2o edges 2021-03-16 08:44:27 +02:00
Ariel Mashraki
0f7739d83b tutorial: finish the first graphql tutorial (#1332)
* tutorial: basic crud and node api for graphql tutorial

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

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

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

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

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

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

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

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

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

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

* Update doc/md/tutorial-todo-gql-field-collection.md

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

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

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

* Update doc/md/tutorial-todo-gql-field-collection.md

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

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

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

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

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

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

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

* Update doc/md/tutorial-todo-gql-node.md

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

* Update doc/md/tutorial-todo-gql-field-collection.md

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

* Update doc/md/tutorial-todo-gql-node.md

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

* Update doc/md/tutorial-todo-gql-node.md

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

* Update doc/md/tutorial-todo-gql-paginate.md

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

* doc/tutorial: code review comments

Co-authored-by: Rotem Tamir <rotemtamir@gmail.com>
2021-03-15 11:30:09 +02:00
Ariel Mashraki
6c4d34e91b doc/crud: field selection for update 2021-03-14 23:17:30 +02:00
Ariel Mashraki
5d70144f44 entc/gen: allow selecting partial fields on update-one 2021-03-14 23:17:30 +02:00
Ariel Mashraki
0cd637ceb2 doc/faq: add examples how to extend the generated builders (#1335) 2021-03-14 14:13:02 +02:00
dilipkk-foyernet
c80af29605 Add "how to define custom types in external templates" doc to FAQ (#1308)
* Add custom types doc to faq

Added documentation on How to define custom types in external templates?

* Update faq.md

Update link for how-to-define-custom-types-in-external-templates
2021-03-14 13:44:50 +02:00
Ariel Mashraki
76ffcc4adc entc/gen: allow extending config options from global templates (#1334) 2021-03-14 12:21:42 +02:00
Ariel Mashraki
5a3e6e7e79 examples/entcpkg: fix package name shadowing (#1327) 2021-03-12 17:07:25 +02:00
Ariel Mashraki
c33512bb94 examples/entcpkg: add graph function to example (#1326) 2021-03-12 16:41:12 +02:00
Rotem Tamir
5645e39a23 doc/website/blog - announcing edge field support in v0.7.0 (#1324)
* doc/website/blog - announcing edge field support in v0.7.0

* Update doc/website/blog/2021-03-12-announcing-edge-field-support.md

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

* Update doc/website/blog/2021-03-12-announcing-edge-field-support.md

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

* Update doc/website/blog/2021-03-12-announcing-edge-field-support.md

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

* Update doc/website/blog/2021-03-12-announcing-edge-field-support.md

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

* Update doc/website/blog/2021-03-12-announcing-edge-field-support.md

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

* more fixes

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-03-12 13:07:19 +02:00
Rotem Tamir
36e3492718 dialect/sql/sqlgraph: adding unit tests for IsConstraintError (#1318)
* dialect/sql/sqlgraph: adding unit tests for IsConstraintError group of checks in second phase of #1310

* renaming test for loop variable names

* use backtick strings to improve readability
v0.7.0
2021-03-10 18:23:24 +02:00
Giau. Tran Minh
17608fffd4 doc/features: fix incorrect type in example (#1321) 2021-03-10 14:12:48 +02:00