Ariel Mashraki
f7771e730f
go: update ariga.io/atlas to latest master ( #2567 )
2022-05-26 09:17:31 +03:00
Ariel Mashraki
e1c5277483
ent: initial support for edge schemas ( #2560 )
2022-05-25 15:46:00 +03:00
Giau. Tran Minh
1e05ccc284
entgql: add Nil/NotNil for typed predicates ( #2556 )
...
* feat: add <Type>Func to allow using entgl.FieldNil
* fix: replace Func with Nil/NotNil
2022-05-21 23:31:14 +03:00
Ariel Mashraki
c3c8773908
go: update ariga.io/atlas to latest master ( #2555 )
2022-05-20 08:18:29 +03:00
Ariel Mashraki
f2e0bef7a8
entc/gen: add conditional-write option to external templates ( #2542 )
2022-05-12 07:36:15 +03:00
Jannik Clausen
fc03c8d283
doc/md: add note about versioned migration tool support requiring latest master ( #2537 )
2022-05-10 08:52:09 +02:00
Giau. Tran Minh
d8fdf3b512
doc/md: update GQL tutorial with schema generator ( #2528 )
...
* doc/md: update GQL tutorial
fixed the connections to Non-Null
fixed the name of WithWhereInputs()
* doc/md: initial Schema Generator tutorial
* update the tutorial
* fix: correct the line
* doc/md: apply suggestions from code review
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* doc/md: add more doc about `entgql.RelayConnection()`
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-05-09 18:09:21 +03:00
Jannik Clausen
63a2836ef2
doc/website/blog: share image to sum file blog post ( #2534 )
2022-05-09 16:17:06 +02:00
Jannik Clausen
b1ceb0a55a
doc/website/blog: fix document name ( #2533 )
2022-05-09 15:48:44 +02:00
Jannik Clausen
4142108d62
doc/website/blog: external tools and sum file ( #2489 )
...
* doc/website/blog: external tools and sum file
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* doc/website/blog: apply CR
* Apply suggestions from code review
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* doc/website/blog: minor fixes
* doc/website/blog: invoke atlas command by calling go run
* doc/website/blog: It's-a me, Jannik!
* Apply suggestions from code review
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com >
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
Co-authored-by: Rotem Tamir <rotemtamir@gmail.com >
2022-05-09 15:23:51 +02:00
Ariel Mashraki
91ba0c7cea
doc/website: minor css fixes ( #2532 )
2022-05-09 13:20:45 +03:00
Giau. Tran Minh
429a5e5d91
doc/md: update Discord server invite link ( #2530 )
2022-05-07 08:55:27 +03:00
Pedro Henrique
4d1c0af20d
entc/integration: add examples for sub-queries + minor fixed for selector builder ( #2509 )
...
* dialect/sql: move FROM to inside switch
* dialect/sql: adds simple example of subquery usage
* dialect/sql: adds a more complex example with join
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* dialect/sql: fix missing type and change modify to where
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-05-05 22:46:13 +03:00
Ikko Ashimine
0c75ffc007
doc: add README_jp.md link ( #2527 )
2022-05-05 20:10:06 +03:00
MasseElch
12b6659c72
dialect/sql/schema: respect sumfile when present and do not operate on checksum mismatch ( #2522 )
2022-05-05 10:43:20 +02:00
allcontributors[bot]
2fe8e053c1
docs: add booleangate as a contributor for code ( #2526 )
...
* 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>
2022-05-05 11:20:50 +03:00
Justin Johnson
38d4d5fb5c
entc/gen: propagate nodes post-save mutations ( #2525 )
...
* Failing test
* Fix propagating entirely models from OpCreate hook
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* whitespace
* Failing test for updateone
* fix for updateone
* Regnerate
* regen from root
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-05-05 11:19:21 +03:00
MasseElch
240a43e7a2
deps: bump atlas (issue with current version of atlas due to an argum… ( #2521 )
...
* deps: bump atlas (issue with current version of atlas due to an argument change in NewDriver)
* ci: do not run integration on master in a PR
* Revert "ci: do not run integration on master in a PR"
This reverts commit 6ba5b8e2d9 .
2022-05-05 08:30:29 +02:00
Amit Shani
4ac82f5bb3
doc/md: tidb tested on v6.0.0 ( #2502 )
...
* doc/md: tidb tested on v6.0.0
* up atlas
2022-05-02 14:30:20 +03:00
MasseElch
51f293fc54
entc/gen/template/sql/feature: add comment to feature field on config… ( #2515 )
...
* entc/gen/template/sql/feature: add comment to feature field on config and remove blank line
* all: go generate
2022-05-02 14:29:53 +03:00
Ariel Mashraki
dab95be855
doc/md: example and test for migration apply hooks ( #2514 )
2022-05-02 14:25:22 +03:00
Ariel Mashraki
2d291df2ec
readme: add discord shield
2022-05-01 17:57:33 +03:00
Pedro Henrique
9d992c4f41
doc/md: document custom graphql where filters ( #2507 )
...
* doc/md: document custom where filters
* Update doc/md/tutorial-todo-gql-filter-input.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-04-29 12:49:29 +03:00
MasseElch
e50d335c30
dialect/sql: support string based pk for mysql56 indexes (prevent err… ( #2506 )
...
* dialect/sql: support string based pk for mysql56 indexes (prevent error 1071)
* Update entc/integration/customid/ent/schema/revision.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-04-29 08:57:22 +02:00
MasseElch
4db0c544c2
dialect/sql: add New method to pass in a river without opening a *sql.DB before ( #2504 )
2022-04-28 13:12:34 +02:00
MasseElch
4e434b2b73
gen/template: allow overriding of client struct and initialization ( #2503 )
2022-04-28 09:07:44 +02:00
Ariel Mashraki
879bb8a905
entc/integration/json: add example for using interfaces in JSON fields ( #2497 )
2022-04-25 13:34:05 +03:00
Ariel Mashraki
04e0dc936b
entc/integration/migrate: add example for renaming columns ( #2496 )
2022-04-24 22:36:33 +03:00
dependabot[bot]
7d153c7683
build(deps): bump github.com/mitchellh/mapstructure from 1.4.3 to 1.5.0 ( #2488 )
...
Bumps [github.com/mitchellh/mapstructure](https://github.com/mitchellh/mapstructure ) from 1.4.3 to 1.5.0.
- [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.3...v1.5.0 )
---
updated-dependencies:
- dependency-name: github.com/mitchellh/mapstructure
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-04-21 10:22:42 +03:00
MasseElch
2c8e58ce94
entc/gen: skip Table() predicate and warn about reserved schema name (Client) ( #2486 )
...
* entc/gen: do no generate `Table()` predicate and warn the user in case of reserved schema name like `Client`.
* doc/md: document reserved schema name
* doc/md: revert reserved schema name as this was already working
* doc/md: rephrase
2022-04-20 16:30:59 +02:00
Thomas Meitz
4e1affecbc
doc/md - added usage note for golang-migrate ( #2482 )
...
* docs - added note for golang-migrate
* remove .vscode directory
* changed as proposed
2022-04-20 08:39:52 +02:00
MasseElch
f7a7da675f
doc/md: document atlas sum file usage ( #2471 )
...
* doc/md: document atlas sum file usage
* doc/md: apply CR
* doc/md: elaborate and images
2022-04-19 08:58:07 +02:00
allcontributors[bot]
6ce239cd39
docs: add thmeitz as a contributor for code, doc ( #2483 )
2022-04-18 21:39:41 +03:00
Amit Shani
72e454e5fc
doc/md: versioned migration typo fix ( #2481 )
2022-04-18 16:11:13 +03:00
Amit Shani
f1ea8def89
doc/md: fix typo ( #2480 )
2022-04-18 15:52:14 +03:00
dependabot[bot]
bac215a72a
build(deps): bump actions/setup-go from 2 to 3 ( #2465 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2 to 3.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/setup-go
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>
2022-04-14 20:10:00 +03:00
Ariel Mashraki
4cf6dd75ec
entc/gen: expose config on generated filters ( #2473 )
2022-04-14 20:00:52 +03:00
MasseElch
c1175719a2
dialect/sql/schema: option to enable atlas sum file ( #2470 )
...
* dialect/sql/schema: option to enable atlas checksum file
* entc/integration/migrate: add integration tests for versioned migrations
* entc/integration/migrate: apply CR
2022-04-13 21:36:57 +02:00
MasseElch
89dc83887c
doc/md: document usage of atlas supported migration tools ( #2467 )
...
* doc/md: document usage of atlas supported migration tools
* dialect/sql/schema: fix tests
2022-04-13 12:47:00 +02:00
dependabot[bot]
cb6e0e063d
build(deps): bump github.com/lib/pq from 1.10.4 to 1.10.5 ( #2461 )
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.10.4 to 1.10.5.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.10.4...v1.10.5 )
---
updated-dependencies:
- dependency-name: github.com/lib/pq
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>
2022-04-10 11:11:38 +03:00
dorlib
3683de1d36
doc/md: simplify graphql mutation usage ( #2464 )
2022-04-09 20:59:55 +03:00
Ariel Mashraki
6e4e4da896
entc/integration/migrate: update atlas and test custom time precision ( #2462 )
2022-04-08 11:27:30 +03:00
Carlos González
5dd5acc08d
dialect/sql: fixed a small typo in docs ( #2459 )
2022-04-07 19:54:43 +03:00
Amit Shani
5ee0a475e4
website/blog: enthistory fix typo ( #2458 )
...
* doc/blog: enthistory fix
* fix typo
2022-04-07 17:38:27 +03:00
Amit Shani
cf0b8560bc
doc/blog: enthistory fix ( #2457 )
2022-04-07 17:23:46 +03:00
Amit Shani
dec2216cb9
website/blog: enthistory blog post ( #2456 )
...
* doc/blog: enthistory blog post
* Apply suggestions from code review
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com >
* add maria example and longer SQL
* code style
* row -> field
* show off enthistory first
* minor
* CR
* closing content on tech explain
* assets
* title
* Update doc/website/blog/2022-04-07-how-twitter-can-implement.md
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* Update doc/website/blog/2022-04-07-how-twitter-can-implement.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* Update doc/website/blog/2022-04-07-how-twitter-can-implement.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* Update doc/website/blog/2022-04-07-how-twitter-can-implement.md
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* CR
* Update doc/website/blog/2022-04-07-how-twitter-can-implement.md
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
* share image
Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com >
Co-authored-by: Hila Kashai <73284641+hilakashai@users.noreply.github.com >
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-04-07 17:19:52 +03:00
Ariel Mashraki
d92984f744
doc/website: add sql/execquery feature-flag to document ( #2453 )
2022-04-06 14:10:33 +03:00
Ariel Mashraki
89c339209e
entc/gen: add the sql/execquery feature flag ( #2447 )
2022-04-06 13:34:22 +03:00
allcontributors[bot]
4f17a84dfa
docs: add CharlesGe129 as a contributor for code ( #2451 )
...
* 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>
2022-04-06 09:47:34 +02:00
Charles Ge
e463cbca55
init db version before executing diff ( #2440 )
...
What's the problem: Under versioned migration on MySQL 8.0, unique string field would be generated as type varchar(191) instead of varchar(255). This is because in generating migration files by NamedDiff(), sqlDialect's init() method is not called.
Further concern: For init() function, MySQL and Postgres's implementation checks the database version which is what I want. But SQLite's implementation checks the foreign_keys support. So I think there might be a better may to check the database version before doing Diff().
2022-04-06 09:43:13 +02:00