Ariel Mashraki
|
2ab0c682db
|
entc/integ: add tests for default-func
|
2021-01-04 11:50:55 +02:00 |
|
Ariel Mashraki
|
d514d12dab
|
schema/field: check assignment and add tests for defaultfunc
|
2021-01-04 11:35:55 +02:00 |
|
Travis Cline
|
784fc18380
|
schema/field: reflect the aliasing of byte in check
|
2021-01-03 13:43:44 -08:00 |
|
Travis Cline
|
53dfe95936
|
schema/field: relax signature of DefaultFunc for Bytes)(
|
2021-01-03 13:21:00 -08:00 |
|
Travis Cline
|
952a34c9c2
|
schema/field: relax signature of DefaultFunc for String()
|
2021-01-03 13:15:00 -08:00 |
|
Ariel Mashraki
|
56b3db8448
|
schema/field: remove deprecated valuemap option (#1118)
|
2021-01-02 20:15:10 +02:00 |
|
Ariel Mashraki
|
6716581ab4
|
entc/gen: handle default funcs in runtime tempalte (#1102)
|
2020-12-30 13:05:03 +02:00 |
|
Noah-Jerome Lotzer
|
24f6975b9a
|
schema/field: add default-func for bytes and strings (#1086)
|
2020-12-29 20:07:04 +02:00 |
|
Travis Cline
|
3f163923b0
|
schema/field: change Err to be exported on Descriptor (#1098)
|
2020-12-29 10:13:06 +02:00 |
|
Ariel Mashraki
|
d89ace2750
|
schema/field: add const name for type other (#1038)
|
2020-12-13 19:37:12 +02:00 |
|
Ariel Mashraki
|
be9955a860
|
entc/load: merge annotations from the same type
|
2020-12-13 19:16:54 +02:00 |
|
Ariel Mashraki
|
088af734f0
|
schema/edge: implement merge for edge annotations
|
2020-12-13 19:16:54 +02:00 |
|
Ariel Mashraki
|
49e570b81b
|
schema: add merger interface for schema annotations
|
2020-12-13 19:16:54 +02:00 |
|
Ariel Mashraki
|
2716f04b1b
|
schema/field: implement merge for field annotations
|
2020-12-13 19:16:54 +02:00 |
|
Nathaniel Peiffer
|
42fa731f39
|
all: fix linting errors for comments (#990)
* fix: linting errors for comments
* fix: one more comment
|
2020-11-27 07:02:18 +02:00 |
|
Ariel Mashraki
|
fe47093c55
|
schema/field: improve error message for GoType (#969)
|
2020-11-20 23:48:54 +02:00 |
|
Ariel Mashraki
|
3d2feec5e2
|
dialect/sql/schema: initial support for postgres net-types (#964)
|
2020-11-20 15:30:54 +02:00 |
|
Ciaran Liedeman
|
e26d81d9a5
|
dialect/sql/schema: allow migrations from integer to string without size limit (#952)
* Allow migrations from integer to string without size limit
* Update entc/integration/migrate/entv1/schema/user.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
* run generate
* Update entc/integration/migrate/entv2/schema/user.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
|
2020-11-16 11:44:04 +02:00 |
|
Ariel Mashraki
|
d3849f9eb7
|
schema: remove functional options from field/edge annotations
|
2020-10-12 13:06:25 +03:00 |
|
Ariel Mashraki
|
ab9aa1fa45
|
schema/field: add annotations for overriding field struct-tags
|
2020-10-12 13:06:25 +03:00 |
|
Ariel Mashraki
|
f1a841d235
|
schema/edge: add annotation for configuring the Edges struct-field
|
2020-10-12 13:06:25 +03:00 |
|
Ariel Mashraki
|
c8a6527612
|
schema/mixin: add support for mixed-in annotations
|
2020-10-12 13:06:25 +03:00 |
|
Ariel Mashraki
|
d5ae1b018e
|
schema/mixin: add privacy policy to mixin (#821)
|
2020-10-06 10:59:36 +03:00 |
|
Ariel Mashraki
|
1b5f51b827
|
schema: shared annotation interface for schema objects (#813)
|
2020-10-03 16:51:00 +03:00 |
|
Ariel Mashraki
|
e514457859
|
schema/field: fix broken logic in ValueMap (#716)
|
2020-08-30 17:54:01 +03:00 |
|
Ariel Mashraki
|
027a0f6a35
|
schema/field: add the NamedValues option to the enum builder (#715)
|
2020-08-30 17:40:09 +03:00 |
|
Ariel Mashraki
|
5e56543133
|
schema/edge: fix edge annotations with to/from builders (#679)
|
2020-08-20 12:15:43 +03:00 |
|
Ariel Mashraki
|
fd0a7f9f02
|
all: facebookincubator/ent => facebook/ent (#660)
ent repository is going to be migrated to facebook organization
|
2020-08-18 11:05:08 +03:00 |
|
Ariel Mashraki
|
5c170bce8f
|
schema/mixin: add AnnotateEdges helper (#659)
|
2020-08-06 13:03:34 +03:00 |
|
Ariel Mashraki
|
b5a9c66290
|
entc/gen: import siblings packages by default (#655)
Also, add missing pkg-path for non-value types.
|
2020-08-02 15:06:05 +03:00 |
|
Ariel Mashraki
|
05dfd6b78b
|
schema/edge: add annotation support for edges (#651)
|
2020-08-01 15:38:47 +03:00 |
|
Ariel Mashraki
|
04859c6fb4
|
schema/field: add GoType support for enum fields (#638)
|
2020-07-24 19:59:05 +03:00 |
|
Ariel Mashraki
|
daaa9f2db1
|
schema/field: add option to set the Go identifier for enums (#635)
|
2020-07-22 20:22:24 +03:00 |
|
Ariel Mashraki
|
7425b90e01
|
schema/mixin: rename Annotate to AnnotateFields (#628)
|
2020-07-21 10:15:16 +03:00 |
|
Alex Snast
|
31105f408d
|
schema/mixin: adding mixin.Annotate helper which adds anootations to mixin fields (#625)
Signed-off-by: Alex Snast <alexsn@fb.com>
|
2020-07-20 11:48:42 +03:00 |
|
Ariel Mashraki
|
54f0a6769b
|
schema/field: add annotation option to schema field (#622)
|
2020-07-19 18:01:04 +03:00 |
|
Mohammed Abubakar
|
902b29d9bf
|
schema/field: add the Unique option to the UUID field builder (#579)
* add the Unique option to the UUID field builder
* Update schema/field/field_test.go
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com>
|
2020-07-03 16:31:30 +03:00 |
|
Ariel Mashraki
|
5e58b094d8
|
schema/field: add Comparable method to TypeInfo (#576)
|
2020-07-02 16:34:34 +03:00 |
|
Ariel Mashraki
|
47f1a203aa
|
schema/edge: an storage-key option for edges (#545)
* schema/edge: an storage-key option for edges
* schema/edge: use Column(s) with functional options
|
2020-06-15 23:06:00 +03:00 |
|
Ariel Mashraki
|
9e0d5755ef
|
schema/field: add GoType option for float fields (#534)
|
2020-06-09 08:20:54 +03:00 |
|
Ariel Mashraki
|
59b880a6ba
|
schema/field: add GoType option for int fields (#528)
|
2020-06-07 15:58:56 +03:00 |
|
Ariel Mashraki
|
a43ceb1595
|
schema/field: add GoType option for bytes fields (#523)
|
2020-06-04 13:48:13 +03:00 |
|
Ariel Mashraki
|
fff0b1a9ed
|
schema/field: add GoType option for time fields (#520)
|
2020-06-03 14:36:49 +03:00 |
|
Ariel Mashraki
|
916099611b
|
gotype/bool: support valuescanner in codegen (#517)
|
2020-06-01 21:45:20 +03:00 |
|
Ariel Mashraki
|
ef8f64bcff
|
schema/field: add GoType option for boolean (#516)
|
2020-06-01 17:33:03 +03:00 |
|
Ariel Mashraki
|
bf566aa3ac
|
entc/gen: support valuescanner in go-types (#510)
|
2020-05-28 18:23:14 +03:00 |
|
Ariel Mashraki
|
ce89688d00
|
schema/field: reject pointers for basic types (#505)
|
2020-05-26 23:16:54 +03:00 |
|
Ariel Mashraki
|
100d300094
|
schema/field: add GoType option for string fields (#500)
|
2020-05-25 20:05:17 +03:00 |
|
Ariel Mashraki
|
31690c7e60
|
schema/field: add Err method to field descriptor (#498)
|
2020-05-21 22:06:49 +03:00 |
|
Ariel Mashraki
|
cfee55e514
|
schema/field: add an option to configure the database type (#484)
|
2020-05-11 15:07:33 +03:00 |
|