Commit Graph

1247 Commits

Author SHA1 Message Date
Ariel Mashraki
f5c284787f dialect/sql: allow appending select columns to query 2021-06-01 11:50:16 +03:00
allcontributors[bot]
fdc5f2b7e9 docs: add Sacro as a contributor (#1615)
* 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-05-31 22:19:31 +03:00
Ariel Mashraki
6b24f38abb Update .all-contributorsrc 2021-05-31 22:18:36 +03:00
Ariel Mashraki
a29e2bee10 all-contributorsrc: add Sacro for code 2021-05-31 22:17:26 +03:00
Ariel Mashraki
11567a3926 entc/gen: update mutation-id on post mutation 2021-05-31 20:31:51 +03:00
Rotem Tamir
ca7aa4b742 doc/md: adding a guide on contribution of docs to ent 2021-05-31 20:21:56 +03:00
Ariel Mashraki
c750e6e5c5 doc/predicate: extend custom predicates section 2021-05-31 20:20:35 +03:00
Ariel Mashraki
46cf7ad36a schema/field: store reflect type info in json fields 2021-05-31 10:04:50 +03:00
Ariel Mashraki
5eb5f501f0 entc/integration: add test case to check nillable values 2021-05-28 21:23:04 +03:00
dependabot[bot]
78ef693802 build(deps): bump actions/cache from 2.1.5 to 2.1.6
Bumps [actions/cache](https://github.com/actions/cache) from 2.1.5 to 2.1.6.
- [Release notes](https://github.com/actions/cache/releases)
- [Commits](https://github.com/actions/cache/compare/v2.1.5...v2.1.6)

Signed-off-by: dependabot[bot] <support@github.com>
2021-05-28 09:43:11 +03:00
Ariel Mashraki
69c4e2387e dialect/sql: add (not)exists predicate for builder 2021-05-27 21:56:56 +03:00
Rotem Tamir
649548e447 doc/website: announce user survey in announcement (#1605) 2021-05-27 13:59:00 +03:00
Ciaran Liedeman
844f63015d entc/gen: remove internal rollback function from templates (#1602) 2021-05-26 20:17:12 +03:00
dependabot[bot]
0e5635941f build(deps): bump golang.org/x/tools from 0.1.1 to 0.1.2 (#1601)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.1...v0.1.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-26 16:22:51 +03:00
Ariel Mashraki
961dc08d14 examples/fs: add example for recursive traversals (#1599) 2021-05-25 20:45:37 +03:00
Ariel Mashraki
02452aad89 dialect/sql: add option to prefix select queries (#1598) 2021-05-25 18:38:06 +03:00
Ariel Mashraki
5d3cc575b3 dialect/sql: add union and with-recursive api for builder (#1595) 2021-05-25 18:27:32 +03:00
Ariel Mashraki
b46a6f0d69 dialect/sql/sqlgraph: prefix entql idents with table/select name (#1592) 2021-05-23 18:12:16 +03:00
Ariel Mashraki
af73543265 schema/field: change NamedValues documentation (#1591) 2021-05-23 12:12:00 +03:00
allcontributors[bot]
ca6d15d64d docs: add y-yagi as a contributor (#1590)
* 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-05-22 12:16:28 +03:00
y-yagi
414dc89605 doc: update supported dialects (#1589)
* MariaDB 10.3 has supported by https://github.com/ent/ent/pull/1407.
* PostgreSQL 13 has supported by https://github.com/ent/ent/pull/961.
2021-05-22 12:15:33 +03:00
y-yagi
a46277d412 docs: change github.com/facebook/ent to github.com/ent/ent (#1588)
This reduces an unneeded redirect.
2021-05-22 12:14:41 +03:00
Andy Day
237799dd2e schema/field: allow non-string ValueScanner types for enum fields (#1577)
* Make non-string ValueScanner types work with enum fields

This change fixes #1575 which now makes it possible to specify a GoType
for an enum that is not a string alias. It requires that if the specified
type is not a string alias, the type must satisfy the Stringer interface.

* remove default, rename field

* wip

* remove comment

* go generate

* make optional

* generate 🤦

* handle NULL case

* turns out mysql stores strings as []uint8
2021-05-20 23:29:47 +03:00
Rotem Tamir
da20bba97d doc/md/slack: documentation on how to join the slack channel (#1581) 2021-05-20 13:39:05 +03:00
Benjamin Bourgeais
d114942589 dialect/sql: improve equalfold implementation (#1572) 2021-05-19 22:30:50 +03:00
Ariel Mashraki
6691e6a28c entc/gen: import custom types in mutation template (#1576) 2021-05-19 15:53:47 +03:00
allcontributors[bot]
40c60a28aa docs: add uta-mori as a contributor (#1571)
* 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-05-18 12:18:55 +03:00
allcontributors[bot]
6adc97bed3 docs: add 8ayac as a contributor (#1570)
* 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-05-18 12:18:44 +03:00
8ayac(Yoshinori Hayashi)
af9a5acfee doc: add a Japanese version of README.md (#1560)
* doc: add README_jp.md

* docs: fix a wrong link.
2021-05-18 12:16:37 +03:00
allcontributors[bot]
385483affc docs: add BrentChesny as a contributor (#1569)
* 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-05-18 12:14:55 +03:00
BrentChesny
8e1b449f78 docs/md: add index edge fields example to docs (#1566) 2021-05-18 12:14:06 +03:00
dependabot[bot]
6ebafe8870 build(deps): bump github.com/lib/pq from 1.10.1 to 1.10.2 (#1563)
Bumps [github.com/lib/pq](https://github.com/lib/pq) from 1.10.1 to 1.10.2.
- [Release notes](https://github.com/lib/pq/releases)
- [Commits](https://github.com/lib/pq/compare/v1.10.1...v1.10.2)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-18 10:57:14 +03:00
allcontributors[bot]
5c13296f3e docs: add sywesk as a contributor (#1568)
* 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-05-18 10:56:57 +03:00
Benjamin Bourgeais
56d8c77e5c schema/index: add support for annotations (#1562)
* index: Add support for annotations

* entc loader: Add support for index annotations
2021-05-18 10:55:53 +03:00
Ariel Mashraki
4ebbc0cd55 doc/faq: mention gqlgen integration for xid 2021-05-16 17:55:04 +03:00
dependabot[bot]
a821d80707 build(deps): bump golang.org/x/tools from 0.1.0 to 0.1.1 (#1558)
Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.1.0 to 0.1.1.
- [Release notes](https://github.com/golang/tools/releases)
- [Commits](https://github.com/golang/tools/compare/v0.1.0...v0.1.1)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-16 10:49:18 +03:00
dependabot[bot]
b759fd2e0b build(deps): bump actions/checkout from 2 to 2.3.4 (#1557)
Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 2.3.4.
- [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...v2.3.4)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-16 10:49:06 +03:00
dependabot[bot]
502331f82e build(deps): bump aws-actions/configure-aws-credentials from 1 to 1.5.9 (#1556)
Bumps [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) from 1 to 1.5.9.
- [Release notes](https://github.com/aws-actions/configure-aws-credentials/releases)
- [Changelog](https://github.com/aws-actions/configure-aws-credentials/blob/master/CHANGELOG.md)
- [Commits](https://github.com/aws-actions/configure-aws-credentials/compare/v1...v1.5.9)

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-16 10:48:54 +03:00
Ariel Mashraki
f7db15ccbb dialect/sql/schema: add field collation support for postgres 2021-05-10 20:32:45 +03:00
allcontributors[bot]
53e885cbff docs: add mahmud2011 as a contributor (#1550)
* 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-05-09 18:17:25 +03:00
Mahmudul Haque
ba954ebeec dialect/sql/schema: add field collation support (#1548)
* specific field collation support

* go generate ./...
2021-05-09 18:09:08 +03:00
allcontributors[bot]
a2a6af4cd8 docs: add shanna as a contributor (#1549)
* 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-05-09 18:00:46 +03:00
Shane Hanna
8cf853e4dc Add github.com/rs/xid usage to FAQ documentation. (#1542)
* Add github.com/rs/xid usage to FAQ documentation.

Package xid is a globally unique ID generator library that uses the
Mongo Object ID algorithm to generate 12 byte, 20 character IDs
with no configuration.

* Fix FAQ index wrapping.
2021-05-09 17:59:36 +03:00
Ariel Mashraki
37d4b9e2cb dialect/sql/schema: do not set timestamp to nullable columns on MySQLv8.* (#1547)
Fixed #1541
2021-05-08 21:29:35 +03:00
Ariel Mashraki
0bfaa11e2f schema/field: support valuescanner types for uuid fields (#1538)
Fixed #1485
2021-05-07 16:22:46 +03:00
陈杨文
be59ad6d3f dialect.sql/schema.Column ScanDefault allowed uuid default to function (#1537) 2021-05-07 16:15:29 +03:00
Rotem Tamir
8837b53115 doc/website/blog/: announcing the schema import initiative blog post 2021-05-06 10:43:26 +03:00
陈杨文
6d3df1469c dialect/sql: include nested builder errors on join (#1533)
* sql.Builder Join include Querier's error

* sql.Builder Join ignore nil error

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

Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
2021-05-05 17:09:55 +03:00
Rotem Tamir
1910b0b614 doc/md: documentation for entgo.io/contrib/schemast 2021-05-05 14:01:39 +03:00
AlonDavidBehr
110bfd97ca dialect/sql/schema: fixed spelling mistakes in schema.go (#1532) 2021-05-03 21:02:52 +03:00