Ariel Mashraki
1f2cb87cee
examples: regenerate assets
...
Closes #261
2019-12-25 11:21:04 +02:00
Ariel Mashraki
7fde9b7642
entc/gen: move sql-update-one to sqlgraph
2019-12-22 13:32:51 +02:00
Ariel Mashraki
04e9391c25
entc/gen: move sql-delete to sqlgraph
2019-12-18 15:14:53 +02:00
Ariel Mashraki
0a7608f8bd
all: change codegen header
2019-12-18 13:00:25 +02:00
Ariel Mashraki
798d58f02b
all: use more go-ish error for constraint failures
2019-12-17 23:17:55 +02:00
Ariel Mashraki
c6800a3869
entc/gen: move node creation to sqlgraph
2019-12-17 22:45:04 +02:00
Ariel Mashraki
0cc74b5297
all: move sqlgraph to its own package
2019-12-17 18:26:09 +02:00
Ariel Mashraki
754a8c9daa
examples: regenerate assets
2019-12-09 08:13:34 +02:00
Ariel Mashraki
56335d6e12
ent: regenerate assets
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/197
Reviewed By: aharonnovo
Differential Revision: D18706251
fbshipit-source-id: 1603030671f4541f21a6b34d5ea0b8b7ccbea8da
2019-11-26 05:47:56 -08:00
Ariel Mashraki
c355ed49be
entc/gen: move set-neighbors logic from codegen to sqlgraph
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/183
Reviewed By: alexsn
Differential Revision: D18644179
fbshipit-source-id: 2f2b0c03811a09c4c11240e5161187afbb2ac553
2019-11-24 04:16:36 -08:00
Ariel Mashraki
7be1779ad1
entc/gen: add the type name as an index prefix ( #171 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/171
Note that this is a non backwards compatible change.
I'll add another change (before this) for setting the storage-key of the index, and only after that we can land this.
Reviewed By: alexsn
Differential Revision: D18570445
fbshipit-source-id: e3ffc7b4baa6bc2fcce9e4553e17817091423b1e
2019-11-20 07:08:47 -08:00
Ariel Mashraki
53cfcb6e8b
dialect/sql: fix predicate builder on join
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/143
Reviewed By: idoshveki
Differential Revision: D18346652
fbshipit-source-id: e8c5d7eb3cefc16f52090de0d121e82cae058fc2
2019-11-06 05:21:26 -08:00
Ariel Mashraki
930a17b767
dialect/sql: add neighbors function ( #140 )
...
Summary:
Pull Request resolved: https://github.com/facebookincubator/ent/pull/140
This part of the effort of moving logic from Go templates to shared packages.
Next diffs will migrate the neighbors-set and predicates as well.
Dedicated tests for `sql/dialect/graph.go` will be added in a follow-up diff.
Reviewed By: alexsn
Differential Revision: D18304531
fbshipit-source-id: 93e9cf2636b5b4525eb27305bd2708122cfd6e40
2019-11-05 13:08:48 -08:00
Ariel Mashraki
c259aee24b
entc/gen: generate sql builders with dialect option
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/130
Reviewed By: alexsn
Differential Revision: D18164397
fbshipit-source-id: 2858d69d3ff85c06b51382c01c3d4369ee2c3bdb
2019-10-27 21:53:50 -07:00
Ariel Mashraki
e493574c83
entc: add postgres dialect for sql storage driver options
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/123
Reviewed By: alexsn
Differential Revision: D18117641
fbshipit-source-id: 8e520a1b1f70c7bea70f8a37ac698116e98a804e
2019-10-24 10:49:47 -07:00
Alex Snast
9d9e121dbd
ent/entc: .String() now uses ansic time format when formating time fields
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/103
Reviewed By: a8m
Differential Revision: D17978059
fbshipit-source-id: 721014b0bf712943d721c7ff038239cff690b94e
2019-10-17 04:36:04 -07:00
Alex Snast
5d988870bc
ent/entc: use select/scan on id query ( #1552 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1552
Pull Request resolved: https://github.com/facebookincubator/ent/pull/93
avoids complete ent load on id query
Reviewed By: a8m
Differential Revision: D17906002
fbshipit-source-id: 7749a0d7c707858eab368978a1d220b581ea6dbb
2019-10-14 23:16:14 -07:00
Ariel Mashraki
6f5f42ab3c
dialect/sql: dialect based builders ( #1550 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1550
Pull Request resolved: https://github.com/facebookincubator/ent/pull/84
This is still WIP and you should ignore this.
Reviewed By: alexsn
Differential Revision: D17854477
fbshipit-source-id: 2d19713c118adb31164b7a2781327e64c87db8d4
2019-10-13 07:03:11 -07:00
Ariel Mashraki
82f91dfcd2
examples/start: add license
...
Reviewed By: idoshveki
Differential Revision: D17788435
fbshipit-source-id: ae8ba70bcf84cf5e325291c45b69e8721a130bf1
2019-10-07 07:48:30 -07:00
Ariel Mashraki
7597f07912
entc: add option to use entc as package
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/72
Reviewed By: alexsn
Differential Revision: D17783580
fbshipit-source-id: 597f124a28415fef66b0b16811ad2acac8df631d
2019-10-07 07:06:32 -07:00
Alex Snast
ac50ea81d4
ent: address several lint errors throughout the project ( #1534 )
...
Summary:
Pull Request resolved: https://github.com/facebookexternal/fbc/pull/1534
Pull Request resolved: https://github.com/facebookincubator/ent/pull/73
lint errors detected by running `golangci-lint` tool.
Reviewed By: a8m
Differential Revision: D17784980
fbshipit-source-id: f7e8bd99fdf1e018d5672cea1e8d44b67f2a4201
2019-10-06 23:59:12 -07:00
Ariel Mashraki
b64330e475
ent/gen: remove redundant nillable check
...
Summary: nillable must be optional
Reviewed By: alexsn
Differential Revision: D17763004
fbshipit-source-id: 9c134e1648d1a387d90a5f2353de855a1aa3464f
2019-10-05 11:03:05 -07:00
Ariel Mashraki
8e66691db5
entc: return ErrNotFound on UpdateOne
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/52
Reviewed By: alexsn
Differential Revision: D17737477
fbshipit-source-id: 13890619e0af28a28e3d7bd50d7e4287599eeaf0
2019-10-03 06:25:11 -07:00
Ariel Mashraki
1750d33bd8
all: add support for running examples in playground
...
Summary: Pull Request resolved: https://github.com/facebookincubator/ent/pull/49
Reviewed By: alexsn
Differential Revision: D17735758
fbshipit-source-id: d4b80631e56870690cc54912528c9950f4e48ccc
2019-10-03 03:05:40 -07:00
Ariel Mashraki
6d159024e7
ent/doc: fix getting started example and add link to Github
...
Reviewed By: alexsn
Differential Revision: D17734937
fbshipit-source-id: abced88c23b7385d371361c5069292de5c1c5b1e
2019-10-03 01:40:58 -07:00