Ciaran Liedeman
|
bbd41dbc87
|
dialect/sql/schema: integer to string (#954)
* Allow migrations from integer to string with max length
* switched to entsql.Annotation
* removed manual conversion size checks
* fixed unit tests
|
2020-11-24 18:09:40 +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
|
77eaad0df6
|
dialect/sql/schema: skip default value parsing on pg functions (#951)
Closes #934
|
2020-11-15 22:55:52 +02:00 |
|
ssoor
|
d5b69da9e0
|
dialect/sql/schema: add postgres type 'timestamp without time zone' to the scan column (#949)
|
2020-11-14 19:52:37 +02:00 |
|
Daven
|
534dbbe590
|
dialect/entsql: add support for table-options in annotation (#938)
|
2020-11-10 20:40:56 +02:00 |
|
Ariel Mashraki
|
e775227a11
|
dialect/sql/sqlgraph: avoid query on update when it's not needed (#932)
Closed #909
|
2020-11-10 10:01:40 +02:00 |
|
Ariel Mashraki
|
762df65f11
|
dialect/entsql: use annotation in schema builder (#929)
|
2020-11-08 11:26:44 +02:00 |
|
Ariel Mashraki
|
dea48a78ea
|
entc/gen: merge list of entsql annotation to one (#928)
|
2020-11-08 10:57:31 +02:00 |
|
Ariel Mashraki
|
122ee020b7
|
dialect/sql: add support for table options (#925)
|
2020-11-06 18:14:23 +02:00 |
|
Ariel Mashraki
|
9ea996593b
|
dialect/sql/sqljson: initial work for json_contains predicate (#886)
|
2020-10-26 14:11:22 +02:00 |
|
Ariel Mashraki
|
faa54f5e79
|
Merge branch 'master' of https://github.com/day-dreams/ent into day-dreams-master
|
2020-10-21 12:31:11 +03:00 |
|
Ariel Mashraki
|
98aeb19013
|
entc/internal: add snapshot restore logic (#862)
Issue #852
|
2020-10-19 14:51:28 +03:00 |
|
maxilozoz
|
d6fd283f68
|
dialect/sql: add support for selector in the notIn predicate (#861)
* `notIn` support Selector like `in`
* `notIn` args check
|
2020-10-19 14:47:17 +03:00 |
|
Ariel Mashraki
|
2128d0baee
|
dialect/sql/schema: apply size-check only if it is defined in schema (#855)
|
2020-10-15 14:17:32 +03:00 |
|
kakaxizhang
|
63421aa9ad
|
dialect/sql/schema: optimize code and add website documents (#748)
|
2020-10-12 16:08:02 +08:00 |
|
Ariel Mashraki
|
fae1956828
|
entql: add typed-builder for field predicates
|
2020-10-11 14:41:03 +03:00 |
|
Ariel Mashraki
|
16e804a788
|
entql: add experimental implementation for entql
|
2020-10-11 14:41:03 +03:00 |
|
Ariel Mashraki
|
13b379d07c
|
dialect/sql/schema: properly handle indexes of tables with uncountable name (#828)
|
2020-10-08 23:24:54 +03:00 |
|
Alex Snast
|
cd0a79e821
|
sql/builder: expand limit / offset into query instead of args (#816)
|
2020-10-04 13:13:56 +03:00 |
|
Ariel Mashraki
|
9d3a621eb8
|
dialect/sql: minor comments fixes
|
2020-10-01 20:07:16 +03:00 |
|
maxilozoz
|
21c2b3b467
|
dialect/sql: add left/right join support for selector builder
|
2020-10-01 20:03:45 +03:00 |
|
Ariel Mashraki
|
142773b73d
|
dialect/sqlscan: support scanning []uint8 type (#797)
Fixed #796
|
2020-09-24 11:13:23 +03:00 |
|
day-dreams
|
90c3d50c39
|
fix: fix comment lint error
|
2020-09-20 17:02:04 +08:00 |
|
day-dreams
|
1f37dad827
|
fix: fix comment lint error
|
2020-09-20 16:56:36 +08:00 |
|
day-dreams
|
4582ed0f2a
|
dialect/sql/schema: use withForeighKeys() instead of withForeighKeysDisable(), and add unit tests () (#748)
|
2020-09-20 16:49:47 +08:00 |
|
Alex Snast
|
bd4d2a553c
|
dialect/sql: export conn type (#767)
|
2020-09-15 16:17:43 +03:00 |
|
Ariel Mashraki
|
2c0d7e5a42
|
dialect/sql/sqljson: add all predicates for length (#764)
|
2020-09-15 12:38:36 +03:00 |
|
Ariel Mashraki
|
3578d73a8f
|
dialect/sql/sqljson: add length predicate (#763)
|
2020-09-15 11:53:54 +03:00 |
|
Ariel Mashraki
|
3cb7824561
|
json predicates (#760)
* dialect/sql/sqljson: cast postgres non-string values
* entc/integration: test json predicates
|
2020-09-14 12:37:57 +03:00 |
|
Ariel Mashraki
|
cbff065b51
|
dialect/sql/sqljson: add {lt,lte} to predicates (#757)
|
2020-09-13 16:12:37 +03:00 |
|
Ariel Mashraki
|
690e9cd402
|
dialect/sql/sqljson: add {neq,gt,gte} to predicates (#756)
|
2020-09-13 15:25:02 +03:00 |
|
Ariel Mashraki
|
1348df349f
|
dialect/sql/schema: disable fixture in default migration (#753)
|
2020-09-13 11:13:02 +03:00 |
|
day-dreams
|
54028de04f
|
dialect/sql/schema: add MigrateOption 'WithForeighKeysDisable' (#748)
|
2020-09-13 01:50:37 +08:00 |
|
Ariel Mashraki
|
9743213860
|
dialect/sql/sqlgraph: catch selector errors before query execution
|
2020-09-10 22:53:25 +03:00 |
|
Ariel Mashraki
|
09be472be8
|
dialect/sql: add option for adding and getting error from builders
|
2020-09-10 22:53:25 +03:00 |
|
Ariel Mashraki
|
d16e78e686
|
dialect/sql: add godoc regarding the dialect/sql package (#745)
|
2020-09-09 12:25:17 +03:00 |
|
Ariel Mashraki
|
ce48ab99b8
|
dialect/sql/sqljson: move json predicates to a package (#735)
|
2020-09-07 21:22:12 +03:00 |
|
Ariel Mashraki
|
fc03257412
|
dialect/sql: add an option for clearing m2m edges (#730)
|
2020-09-06 17:27:31 +03:00 |
|
Ariel Mashraki
|
e4767ed83e
|
dialect/sql: add json-eq op for predicates (#728)
|
2020-09-05 20:21:13 +03:00 |
|
Ariel Mashraki
|
6a1829cc33
|
dialect/sql: add DotPath option to json option (#725)
|
2020-09-04 14:13:29 +03:00 |
|
Ariel Mashraki
|
4cdfc7b57e
|
integration: test json predicates in ci (#724)
|
2020-09-03 11:15:31 +03:00 |
|
Ariel Mashraki
|
6f960ec392
|
dialect/sql: add has-key for json predicates (#723)
|
2020-09-02 17:57:20 +03:00 |
|
Ariel Mashraki
|
e215ae0cd7
|
dialect/sql: make WriteOp chainable (#710)
|
2020-08-29 21:18:10 +03:00 |
|
Ariel Mashraki
|
48389c5e94
|
dialect/sql: add the basic operators to WriteOp (#700)
* dialect/sql: add the basic operators to WriteOp
|
2020-08-26 18:20:45 +03:00 |
|
Ariel Mashraki
|
578de828c7
|
dialect/sql: change sql predicate constructor
|
2020-08-26 16:42:44 +03:00 |
|
Ariel Mashraki
|
0d23ef86de
|
dialect/sql: wraps the bytes.Buffer methods to make them chainable
|
2020-08-26 16:13:26 +03:00 |
|
Ariel Mashraki
|
94eee235b4
|
dialect/sql: add json-path for sql builders
|
2020-08-25 11:05:32 +03:00 |
|
Ariel Mashraki
|
c907c8bbbc
|
integ: add sqlite to json tests (#686)
|
2020-08-23 20:51:19 +03:00 |
|
Ariel Mashraki
|
ae7ba0b43c
|
dialect/sql: minor comment fixes (#687)
|
2020-08-23 20:48:56 +03:00 |
|