Commit Graph

512 Commits

Author SHA1 Message Date
Ariel Mashraki
b44d593861 doc/website: oss footer logo (#2678) 2022-06-23 15:30:06 +03:00
smizuno2018
b89b13bbdb doc/tutorial: fix typos (#2663) 2022-06-19 09:59:04 +03:00
Jannik Clausen
7017cbc898 dialect/sql/schema: file based type store (#2644)
* dialect/sql/schema: file based type store

This PR adds support for a file based type storage when using versioned migrations. The file called `.ent_types` is written to the migration directory alongside the migration files and will be kept in sync for every migration file generation run.

In order to not break existing code, where the type storage might differ for different deployment, global unique ID mut be enabled by using a new option. This will also be raised as an error to the user when attempting to use versioned migrations and global unique ID.

Documentation will be added to this PR once feedback on the code is gathered.

* apply CR

* fix tests

* change format of types file to exclude it from atlas.sum file

* docs and drift test

* apply CR
2022-06-15 16:10:15 +02:00
Will Bicks
cd1afb235c entc: improve generated comments for edges and fields (#2632)
* replace default field comment with user comment if defined
* use comments defined on edges in generated entities
* add docs for comment method on edges and fields
* update integration to reflect above changes
2022-06-13 15:52:47 +03:00
Dor Liberman
1572f1eb14 doc/md: fix NamedValues option in graphql tutorial (#2535)
* doc/md: fixing NamedValues option in Add Fields To The Schema example

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

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

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2022-06-12 12:12:25 +03:00
allcontributors[bot]
b2844fb88c docs: add hax10 as a contributor for code (#2637)
* 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-06-09 20:40:26 +03:00
Ariel Mashraki
fd955654a0 entc/gen: change codegen signature from entc to ent (#2627) 2022-06-07 17:48:17 +03:00
frederikhors
d9d63b5814 doc/md: use fmt.Errorf instead of errors.Wrapf (#2608)
* Use fmt.Errorf instead of errors.Wrapf

* Update transactions.md

* Update transactions.md
2022-06-07 10:33:25 +03:00
Sasha Melentyev
9e4660f104 doc: change golang docs links for actual (#2620) 2022-06-06 17:55:55 +03:00
frederikhors
2c3f65b528 doc/website: do not refer to sqlite3 anymore (#2593) 2022-06-01 18:55:07 +03:00
Amit Shani
63592f79c4 go: bump atlas to latest master (#2584) 2022-06-01 17:13:23 +03:00
Amit Shani
8fe8c748c5 doc/md: add more dialects to quickstart (#2588)
* doc/md: add more dialects to quickstart

* remove unnecessary spaces
2022-06-01 16:59:08 +03:00
Amit Shani
d071e0c70a doc/md: fix some broken links (#2589) 2022-06-01 16:44:25 +03:00
Ariel Mashraki
5d303d08b5 doc/privacy: add heading for filter rules section 2022-06-01 14:05:51 +03:00
Ariel Mashraki
e1c5277483 ent: initial support for edge schemas (#2560) 2022-05-25 15:46:00 +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
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
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
Ariel Mashraki
dab95be855 doc/md: example and test for migration apply hooks (#2514) 2022-05-02 14:25:22 +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
Ariel Mashraki
04e0dc936b entc/integration/migrate: add example for renaming columns (#2496) 2022-04-24 22:36:33 +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
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
dorlib
3683de1d36 doc/md: simplify graphql mutation usage (#2464) 2022-04-09 20:59:55 +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
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
Clarence
21ea376817 update example import (#2432) 2022-03-31 12:55:54 +02:00
Ariel Mashraki
cb7e0c1f1b doc/tutorial: add title with file names to code blocks (#2430) 2022-03-26 18:49:04 +03:00
allcontributors[bot]
a89d1ec40f docs: add iwata as a contributor for doc (#2427)
* 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-03-25 16:17:06 +01:00
Motonori Iwata
e1e47e61f3 Write a document for custom formatter of migrate (#2415)
* Write a document for custom formatter of migrate

closes https://github.com/ent/ent/issues/2408

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* more helpful code snippet

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

* Update doc/md/versioned-migrations.md

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>

Co-authored-by: MasseElch <12862103+masseelch@users.noreply.github.com>
2022-03-25 16:13:22 +01:00
Amit Shani
71020f8d7b doc/website/blog: tidb indentation fix (#2423) 2022-03-24 15:07:38 +02:00
Ariel Mashraki
55ed0508c7 doc: minor impronments to getting-started (#2422) 2022-03-24 12:42:57 +02:00
Frédéric G. MARAND
938233b191 doc: update installation in getting-started (#2414)
since Go 1.18 `go get` is no longer the way to download a command for any supported version: updated to use go install instead.
2022-03-20 11:47:06 +02:00
Frédéric G. MARAND
0d9173c0b9 doc: update schema-def to use proper method (#2416)
The exemple incorrectly adds an ignored `User.Index` method, although ent actually needs a `User.Indexes` method as part of `ent.Interface`
2022-03-20 11:46:06 +02:00
Rotem Tamir
865ddb8d47 doc/website/blog: small fixes 2022-03-17 14:54:57 +02:00
Amit Shani
683fe8cc3b doc/website/blog: TiDB announcement (#2396) 2022-03-17 14:42:15 +02:00