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
Ariel Mashraki
7c70dcb0dc
doc/graphql: fix broken links to ent-contrib
2021-02-03 11:29:56 +02:00
森 優太
4142808220
doc: fix github link ( #1229 )
2021-02-03 11:13:26 +02:00
Ariel Mashraki
0891886923
doc: rename contrib.html to contrib
2021-02-02 23:21:04 +02:00
Ariel Mashraki
96d693e024
doc: rename ent.html to ent
2021-02-02 23:20:39 +02:00
Ariel Mashraki
dd4792f5b3
go: rename module from github.com/facebook/ent => entgo.io/ent ( #1226 )
v0.6.0
2021-02-02 23:03:04 +02:00
zzwx
7a2173f20d
entc/internal: fix windows filepath separator ( #1227 )
2021-02-02 19:33:47 +02:00
Ariel Mashraki
027d72e5e0
doc/website: use s3 uri before migrating website ( #1224 )
...
This is a temporary change and will be reverted after the website will be migrated to its new place
2021-02-01 10:48:15 +02:00
dependabot[bot]
f163d7d7e0
build(deps): bump go.opencensus.io from 0.22.5 to 0.22.6 ( #1222 )
...
Bumps [go.opencensus.io](https://github.com/census-instrumentation/opencensus-go ) from 0.22.5 to 0.22.6.
- [Release notes](https://github.com/census-instrumentation/opencensus-go/releases )
- [Commits](https://github.com/census-instrumentation/opencensus-go/compare/v0.22.5...v0.22.6 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-01 10:29:19 +02:00
Ariel Mashraki
95d780e55e
dialect/sql/schema: add mysql text for column scan ( #1219 )
2021-01-31 22:25:38 +02:00
Ariel Mashraki
3930d3c835
schema/field: implement field.Other ( #1218 )
...
* Implement Other Field
* Implement Other Field
* Changed dialect types
* run generate
* doc typo
* docs added
* schema/field: additional validation and tests for Other type
Co-authored-by: Ciaran Liedeman <ciaran@stackworx.io >
2021-01-31 17:43:28 +02:00
Ariel Mashraki
d87eb0ab32
doc/features: fix indentation ( #1216 )
2021-01-30 13:49:01 +02:00
Marwan Sulaiman
a85e77e5c5
doc: add documentation for the sql/schemaconfig feature ( #1215 )
...
* Add documentation for the sql/schemaconfig feature
* touch ups
2021-01-29 20:40:43 +02:00
Ariel Mashraki
52cdf98cc2
gomod: add go-import and go-source meta tags for ent ent-contrib ( #1214 )
2021-01-28 16:50:49 +02:00
Ariel Mashraki
f5158dce55
entc/gen: move schema/snapshot template to its feature-flag ( #1211 )
2021-01-26 23:13:33 +02:00
Ariel Mashraki
8876d31317
entc/gen: fix feature-flag cleanups ( #1210 )
2021-01-26 22:31:32 +02:00
dependabot[bot]
06ae79acba
build(deps): bump github.com/google/uuid from 1.1.5 to 1.2.0 ( #1206 )
...
Bumps [github.com/google/uuid](https://github.com/google/uuid ) from 1.1.5 to 1.2.0.
- [Release notes](https://github.com/google/uuid/releases )
- [Commits](https://github.com/google/uuid/compare/v1.1.5...v1.2.0 )
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-25 08:49:46 +02:00
Pavel Kerbel
8ca9d55b31
load/schema: added comment to generated schema ( #1205 )
2021-01-24 22:02:33 +02:00
Ariel Mashraki
2c7228c23f
dialect/sql/sqlgraph: add schema for deletion command
2021-01-24 19:57:28 +02:00
Marwan Sulaiman
bdd8f2f624
Ensure SchemaConfig is set in sqlQuery's context ( #1203 )
2021-01-24 19:57:28 +02:00
Ariel Mashraki
aeb1ccc571
entc/gen: move schemaconfig template to feature-flag
2021-01-24 19:57:28 +02:00
Ariel Mashraki
0e7823383e
entc/gen: add default json tag for edge fields ( #1204 )
2021-01-23 21:23:52 +02:00
Ariel Mashraki
75df97bd24
doc/privacy: add mutation filtering example to website
2021-01-22 23:04:09 +02:00
Ariel Mashraki
6ca96fff8b
example/tenantprivacy: add update/delete-one mutation policy
2021-01-22 23:04:09 +02:00
Ariel Mashraki
f315801779
dialect/sql/sqlgraph: apply predicate on update-node
2021-01-22 23:04:09 +02:00
Travis Cline
5e4d7dcbfc
doc/graphql: extend examples section to mention the prefixed-ULID (PULID) example. ( #1200 )
2021-01-22 07:19:01 +02:00
Ariel Mashraki
3f57feb63a
entc/gen: add external import templates to patterns ( #1199 )
2021-01-21 13:46:41 +02:00
Marwan Sulaiman
8063d4ac93
entc/gen: add context.Context to to query builder ( #1195 )
...
* Add ctx to dialectQuery
* go generate
2021-01-20 11:46:08 +02:00
Marwan Sulaiman
59ffee504d
entc/gen: add sql/schemaconfig feature flag ( #1194 )
2021-01-20 11:43:57 +02:00
Ariel Mashraki
0c2c45f0c6
entc/gen/template: allow override context.Context with custom templates
2021-01-19 10:24:26 +02:00
Ariel Mashraki
0f78dfe1c0
entc/gen/template: allow mutating the sqlgraph.EdgeQuerySpec by ent extensions or user templates
2021-01-19 09:51:38 +02:00
Ariel Mashraki
d1db24d13f
entc/gen/template: allow mutating the sqlgraph.QuerySpec by ent extensions or user templates
2021-01-19 09:51:38 +02:00
Ariel Mashraki
d56537c606
entc/gen/template: allow mutating the sqlgraph.UpdateSpec by ent extensions or user templates
2021-01-19 09:51:38 +02:00
Ariel Mashraki
7f5720cf92
entc/gen/template: allow mutating the sqlgraph.DeleteSpec by ent extensions or user templates
2021-01-19 09:51:38 +02:00
Ariel Mashraki
63eb68a269
entc/gen/template: allow mutating the sqlgraph.CreateSpec by ent extensions or user templates
2021-01-19 09:51:38 +02:00
Ariel Mashraki
aa73b9067f
entc/gen/template: allow extensions to extend the import templates
2021-01-19 09:11:37 +02:00
Ariel Mashraki
25b7a05543
entc/gen: remove unused template function
2021-01-19 09:11:37 +02:00
Marwan Sulaiman
3439ca207f
dialect/sql/sqlgraph: pass context.Context to *sql.Selector ( #1186 )
...
* Ensure sqlgraph passes the context to *sql.Selector
* Update dialect/sql/sqlgraph/graph_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* Update dialect/sql/sqlgraph/graph_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* gofmt
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2021-01-18 19:41:59 +02:00
Marwan Sulaiman
ddb25280cd
dialect/sql: Add context.Context to sql.Selector ( #1185 )
2021-01-18 17:32:42 +02:00
Ariel Mashraki
0ac3526d30
dialect/sql/schema: test postgres inspection
2021-01-18 12:38:39 +02:00
Ariel Mashraki
cc8da8fbf7
dialect/sql/schema: schema match from predicate
2021-01-18 12:38:39 +02:00
Ariel Mashraki
7e904f0e1c
dialect/sql/schema: add sqlite test for inspector ( #1183 )
2021-01-18 11:21:39 +02:00