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
0bfaa11e2f
schema/field: support valuescanner types for uuid fields ( #1538 )
...
Fixed #1485
2021-05-07 16:22:46 +03:00
Ariel Mashraki
9b73ca3eef
schema/field: use reflect string for rtype identifier
2021-04-26 16:57:36 +03:00
Ariel Mashraki
43e74a334f
schema/field: fix uuid import path config
2021-04-25 18:54:35 +03:00
陈杨文
7fd99a196a
schema/field: field.UUID support Nillable ( #1504 )
2021-04-23 18:33:31 +03:00
Ariel Mashraki
fd1f2df150
dialect/sql/schema: add support for pg arrays in migration
2021-04-14 14:25:28 +03:00
Ariel Mashraki
2cc1c628dc
schema/field: use actual go type in generated interfaces ( #1428 )
2021-04-07 09:53:44 +03:00
Ariel Mashraki
f3f03e1edd
schema/edge: add support for configuring foreign-key symbols
...
Fixed #1423
2021-04-04 15:27:57 +03:00
Ariel Mashraki
6e3c3b6960
schema/field: add issue number to latest change ( #1368 )
2021-03-21 21:27:05 +02:00
Matthew Clemens
c1d7e8e480
schema/field: relax the Comparable result for TypeOther ( #1304 )
2021-03-21 14:44:20 +02:00
Ariel Mashraki
c0fd7c1305
entc/gen: add edge-field api for schema and codegen ( #1213 )
2021-03-07 22:51:17 +02:00
Ariel Mashraki
dd4792f5b3
go: rename module from github.com/facebook/ent => entgo.io/ent ( #1226 )
2021-02-02 23:03:04 +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
Pavel Kerbel
6d94d9e17c
schema/field: add Comment field to Descriptor ( #1173 )
...
* schema/field: add Comment value to Descriptor
* schema/field: add Comment implementation
2021-01-18 09:36:28 +02:00
Ariel Mashraki
4069af9926
schema/field: update nillable godoc
2021-01-10 14:28:12 +02:00
Ariel Mashraki
f2aa1854e4
schema/field: generate numeric builder with new godoc
2021-01-10 14:28:12 +02:00
Morgan
e4cc63c411
schema/field: add DefaultFunc for numeric types and add support for it in entc ( #1153 )
...
* entc/load: allow defaultfuncs on numeric types
* schema/field: add DefaultFunc on numeric types
* docs: document DefaultFunc better
* chore: update generated files
* pr: address issues
* docs: updates on faq, address requested changes
2021-01-10 14:05:45 +02:00
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