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
2716f04b1b
schema/field: implement merge for field annotations
2020-12-13 19:16:54 +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
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
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
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
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
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
Ariel Mashraki
6fbb5b6b4a
entc/load: add schema-type field for schema ( #459 )
2020-05-04 19:35:40 +03:00
danforth
89fade53f6
schema/field: fix error description in MaxLen ( #299 )
...
Co-authored-by: heavycharged <41610989+heavycharged@users.noreply.github.com >
2020-01-20 08:29:32 -05:00
Ariel Mashraki
b54007ef56
Entc/enums ( #271 )
...
* ent: add default value setter to enum builder
Co-authored-by: Dario Ielardi <dario.ielardi@gmail.com >
2020-01-05 18:31:35 +02:00
Ariel Mashraki
c6800a3869
entc/gen: move node creation to sqlgraph
2019-12-17 22:45:04 +02:00
Jeremy
d9c1076027
schema/field: enhance test cases
2019-12-14 13:08:53 +02:00