Ariel Mashraki
00bb44f4b9
doc/edges: add section for edge-field and migration to it ( #1313 )
2021-03-08 14:46:31 +02:00
dependabot[bot]
753fbe118a
build(deps): bump github.com/lib/pq from 1.9.0 to 1.10.0 ( #1312 )
...
Bumps [github.com/lib/pq](https://github.com/lib/pq ) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/lib/pq/releases )
- [Commits](https://github.com/lib/pq/compare/v1.9.0...v1.10.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-08 14:46:10 +02:00
Ariel Mashraki
c0fd7c1305
entc/gen: add edge-field api for schema and codegen ( #1213 )
2021-03-07 22:51:17 +02:00
Rotem Tamir
eeb5bc7141
adding follow twitter button and a link from the community section on the README.md ( #1309 )
2021-03-07 11:53:54 +02:00
Matthew Gabeler-Lee
c53b45ddb0
all: use %w instead of %v to wrap errors ( #1275 )
...
* all: use %w instead of %v for nested errors with fmt.Errorf
* all: update generated code to use %w instead of %v for error wrapping
2021-03-03 20:05:33 +02:00
Justin Page
51d19b8e5b
doc: remove whitespaces from markdown files ( #1267 )
2021-03-03 13:02:50 +02:00
dependabot[bot]
86b77fe487
build(deps): bump github.com/olekukonko/tablewriter from 0.0.4 to 0.0.5 ( #1299 )
...
Bumps [github.com/olekukonko/tablewriter](https://github.com/olekukonko/tablewriter ) from 0.0.4 to 0.0.5.
- [Release notes](https://github.com/olekukonko/tablewriter/releases )
- [Commits](https://github.com/olekukonko/tablewriter/compare/v0.0.4...v0.0.5 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 12:54:19 +02:00
dependabot[bot]
e7b5191b55
build(deps): bump github.com/spf13/cobra from 1.1.1 to 1.1.3 ( #1298 )
...
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra ) from 1.1.1 to 1.1.3.
- [Release notes](https://github.com/spf13/cobra/releases )
- [Changelog](https://github.com/spf13/cobra/blob/master/CHANGELOG.md )
- [Commits](https://github.com/spf13/cobra/compare/v1.1.1...v1.1.3 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 12:54:06 +02:00
dependabot[bot]
fee01a26a9
build(deps): bump go.opencensus.io from 0.22.6 to 0.23.0 ( #1297 )
...
Bumps [go.opencensus.io](https://github.com/census-instrumentation/opencensus-go ) from 0.22.6 to 0.23.0.
- [Release notes](https://github.com/census-instrumentation/opencensus-go/releases )
- [Commits](https://github.com/census-instrumentation/opencensus-go/compare/v0.22.6...v0.23.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 12:53:50 +02:00
dependabot[bot]
4c66c3185f
build(deps): bump actions/setup-node from v2.1.4 to v2.1.5 ( #1296 )
...
Bumps [actions/setup-node](https://github.com/actions/setup-node ) from v2.1.4 to v2.1.5.
- [Release notes](https://github.com/actions/setup-node/releases )
- [Commits](https://github.com/actions/setup-node/compare/v2.1.4...46071b5c7a2e0c34e49c3cb8a0e792e86e18d5ea )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 12:53:38 +02:00
dependabot[bot]
735d6ddd40
build(deps): bump golangci/golangci-lint-action from v2.3.0 to v2.5.1 ( #1295 )
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from v2.3.0 to v2.5.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](https://github.com/golangci/golangci-lint-action/compare/v2.3.0...d9f0e73c0497685d68af8c58280f49fcaf0545ff )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-03-03 10:38:45 +02:00
Ariel Mashraki
3a64e2d20d
entc/gen: use edge.owner for checking fk field ( #1293 )
...
See issue 1288
2021-03-02 17:42:52 +02:00
Ariel Mashraki
8a8bfe7de6
dialect/sql/sqlgraph: skip setting last-insert-id if was provided ( #1291 )
...
Fixed #1290 . Issue in BulkCreate(<T>) for m2m edges
2021-03-02 11:59:20 +02:00
Ariel Mashraki
73df26b92b
entc/gen: allow setting default-func for id fields ( #1290 )
2021-03-02 11:41:23 +02:00
Ariel Mashraki
0d0a93b95f
entc/gen: add support for referencing fks to existing fields ( #1289 )
2021-03-01 22:57:32 +02:00
Ariel Mashraki
31bee10942
entc/gen: support zero value as default argument in schema migration ( #1287 )
2021-03-01 14:42:09 +02:00
Ariel Mashraki
109228f0a3
entc/gen: fix name conflicts in client.tmpl ( #1281 )
2021-02-26 22:18:54 +02:00
Ariel Mashraki
7bd9ba45c4
doc/faq: add question/answer for mysql spatial datatype usage ( #1280 )
2021-02-26 15:43:13 +02:00
Ariel Mashraki
66ec8ceb1a
dialect/sql: add ParamFormatter interafce ( #1279 )
...
Allow wrapping placeholder parameters with custom format.
For example, '?' => 'ST_GeomFromWKB(?)'.
2021-02-26 14:34:10 +02:00
Ariel Mashraki
31ec081b0e
entc/gen: fix name conflict in type package ( #1274 )
...
Fixed #1268
2021-02-25 14:26:04 +02:00
Ariel Mashraki
a0c3976ee5
dialect/sql/schema: add mysql spatial type for migration ( #1271 )
2021-02-24 22:24:42 +02:00
Ariel Mashraki
72f8b1281f
all: minor comment and style changes
2021-02-23 21:00:20 +02:00
Ariel Mashraki
d6f6c81a22
dialect/sql: allow creating predicate from raw expression ( #1263 )
2021-02-19 17:29:16 +02:00
Ariel Mashraki
f9747bc1e6
circleci: update go version in integration tests
2021-02-18 16:44:08 +02:00
Ariel Mashraki
dad5bef255
circleci: update orb config ( #1262 )
2021-02-18 16:42:06 +02:00
Ariel Mashraki
5f1358550a
go: update version to 1.16 ( #1261 )
2021-02-18 11:32:52 +02:00
Ariel Mashraki
794ca45435
doc: add example for edge ordering
2021-02-17 10:25:10 +02:00
Ariel Mashraki
b2f6834f67
doc: change assets path from s3 to entgo.io
2021-02-17 10:25:10 +02:00
森 優太
361663954e
doc: fix Github Link entgo.io -> github.com/ent ( #1257 )
...
* doc: fix github link
* doc: fix Link entgo.io -> github.com/ent
2021-02-16 10:40:14 +02:00
Ariel Mashraki
41c3445b95
doc: update contrib repository path to ent/contrib
2021-02-13 08:06:10 +02:00
Ariel Mashraki
d75fa8a01d
doc: update repository path to ent/ent
2021-02-13 08:06:10 +02:00
Cloud
d1a3b1985a
doc: add README_zh.md ( #1235 )
...
* doc/md: add README_zh.md file
* doc/md: add language switch of README
* doc/md: add language switch of README
* Update README_zh.md
Co-authored-by: Roger Ng <roger2hk@gmail.com >
* Update README_zh.md
Co-authored-by: Roger Ng <roger2hk@gmail.com >
Co-authored-by: Roger Ng <roger2hk@gmail.com >
2021-02-12 13:54:24 +02:00
Ariel Mashraki
c5cef3cbd3
doc: add information about the generated runtime package
2021-02-12 13:44:15 +02:00
Ariel Mashraki
6d34023cd9
doc: add mariadb to supported dialects
2021-02-12 13:44:15 +02:00
Ariel Mashraki
c31ea90e3b
circleci: remove website continuous deployment ( #1253 )
2021-02-10 20:28:07 +02:00
Ariel Mashraki
2f24be7b30
doc: add missing import
2021-02-10 20:23:49 +02:00
Ariel Mashraki
0e777ea9d1
github/cd: update bucket name
2021-02-10 20:19:32 +02:00
Thomas Noe
1b33487eca
doc: logs created tesla ( #1251 )
2021-02-10 16:28:35 +02:00
Pavel Kerbel
3ee6621194
entc/gen: added ability to add comment to schema with external template ( #1249 )
...
This change will allow using external tools (such as swagger) to add comments to the schema.
For example, by adding a Swagger annotation to the schema we can add // swagger:model comment.
2021-02-08 13:02:56 +02:00
dependabot[bot]
ed8eaf34db
build(deps): bump actions/cache from v2 to v2.1.4 ( #1248 )
...
Bumps [actions/cache](https://github.com/actions/cache ) from v2 to v2.1.4.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2...26968a09c0ea4f3e233fdddbafd1166051a095f6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-08 10:34:24 +02:00
Ariel Mashraki
ae0cdf0445
dialect/sql: minor test changes ( #1247 )
2021-02-07 19:08:22 +02:00
Ruben de Vries
9e610c7b54
dialect/sql: fix Builder.Join implementation for postgres ( #1212 )
...
Don't use .Total() in builder.Join and purely rely on len(args).
2021-02-07 18:07:48 +02:00
Ariel Mashraki
ba9f837c7d
go/mod: upgrade golang.org/x/tools ( #1246 )
2021-02-07 09:41:23 +02:00
Ciaran Liedeman
334e3abfd5
circleci: reduce funlen ( #1243 )
2021-02-06 18:25:39 +02:00
Ariel Mashraki
dc8cfd1a99
circleci: increase golangci-lint timeout ( #1245 )
2021-02-06 16:19:52 +02:00
Ariel Mashraki
15af025dd0
entc/gen: reject schemas whose package conflicts with ent predeclared identifiers ( #1244 )
2021-02-06 16:17:52 +02:00
Ariel Mashraki
528db137de
go: add remote import paths for subpackages ( #1241 )
...
Currently, website is stored in S3 as static content, and this should be generated
by the server when we change the website deployment
2021-02-05 14:09:50 +02:00
Nathaniel Peiffer
96ebbcd627
fix: check names against privateFields ( #1239 )
2021-02-05 11:49:42 +02:00
zzwx
0f6c71d46b
entc/gen: make custom field comment render as additional line(s) ( #1234 )
...
* Make custom field comment render as additional line(s)
* Make the test for the comment aware of the new format
2021-02-03 22:23:34 +02:00
Ariel Mashraki
a5c90ea4ca
doc/sql-integration: use dialect constants in opencensus example ( #1233 )
2021-02-03 17:52:38 +02:00