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
Ariel Mashraki
b18716931d
dialect/sql: change boolean operators wrapping ( #678 )
...
The reason is to parentheses only when it's necessary.
2020-08-20 10:08:31 +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
d9c8130d08
dialect/sql: configure contains-fold per dialect ( #666 )
2020-08-13 17:26:19 +03:00
Ariel Mashraki
16d98d1acc
dialect/sql/schema: accept default values for enum fields ( #646 )
...
Fixed #644
2020-07-28 12:55:02 +03:00
Ariel Mashraki
3b77e5d71a
dialect/sql/sqlgraph: use correct column when querying m2o/o2o edges ( #629 )
...
Fixed #621
2020-07-21 10:21:51 +03:00
Ariel Mashraki
33e4eb3a52
dialect/sql/schema: change id type of ent_types table to be unsigned ( #612 )
2020-07-16 20:07:37 +03:00
Ariel Mashraki
720766432a
dialect/sql/sqlgraph: initial work for batch insert ( #573 )
...
This is the first part for adding batch insert support for the framework.
The second part if the codegen.
2020-07-08 17:48:26 +03:00
Ariel Mashraki
cedeef653a
dialect/sql/schema: accept convert from string2enum and enum2stirng ( #587 )
2020-07-05 22:22:50 +03:00
Ariel Mashraki
3e7481c3a0
dialect/sql/schema: ignore mysql default values for type type ( #561 )
2020-06-21 23:16:05 +03:00
Ariel Mashraki
55c48a7ef8
dialect/sql/schema: minor style change ( #557 )
2020-06-17 23:12:03 +03:00
Ariel Mashraki
d26fbaeb54
dialect/postgres: fix postgres naming prefix and detection for indexes ( #543 )
2020-06-10 22:24:16 +03:00
Christoph Hartmann
e03e387988
dialect/sql/schema: handle sql json type for schema OfflineMigration ( #542 )
...
Signed-off-by: Christoph Hartmann <chris@lollyrock.com >
2020-06-10 15:41:37 +03:00
Ariel Mashraki
cfee55e514
schema/field: add an option to configure the database type ( #484 )
2020-05-11 15:07:33 +03:00
Alex Snast
68db86be76
avoid multiple rows.Err calls on error path
...
Signed-off-by: Alex Snast <alexsn@fb.com >
2020-05-11 14:26:40 +03:00
Ariel Mashraki
997a060043
dialect/sql/schemma: fail if column type is invalid ( #486 )
2020-05-11 14:20:35 +03:00
Ciaran Liedeman
f59abad425
fix: checks for error after rows.Next call ( #480 )
2020-05-09 16:23:47 +03:00
Ariel Mashraki
7a0b530b89
dialect/sql/schema: fix sqlite indexes matching ( #471 )
2020-05-07 10:05:17 +03:00
Ariel Mashraki
bcb579106a
dialect/sql/schema: revert #463 for int type ( #470 )
2020-05-07 08:23:10 +03:00
Ariel Mashraki
f384701c04
dialect/sql/schemma: ignore pgtime default value on scanning ( #468 )
2020-05-06 22:34:01 +03:00
Ariel Mashraki
196a764691
dialect/sql/schema: use the postgres column type if exists ( #466 )
2020-05-06 21:54:21 +03:00
Ariel Mashraki
769a2ed302
dialect/sql/schemma: return the database column type if exists ( #463 )
2020-05-05 19:32:52 +03:00
Ariel Mashraki
51cdda421f
dialect/sql/schema: add optional schema-type to column spec ( #461 )
2020-05-04 20:16:43 +03:00
Ariel Mashraki
3fa749d9e3
dialect/sql: remove go1.12 support ( #457 )
2020-04-30 13:21:00 +03:00
Ariel Mashraki
2208b243db
dialect/sql/schema: initial work for incremental migration ( #428 )
...
This is a WIP PR and should be ignored this moment.
It's based on PR #221 created by Erik Hollensbe (He should
get his credit for his work before we land this).
2020-04-12 19:12:33 +03:00
Ariel Mashraki
8effe6dfeb
dialect/sql/schema: remove code-duplication from sqlite test ( #425 )
2020-04-07 11:03:44 +03:00
Ariel Mashraki
6824259b80
dialect/sql/schema: remove code-duplication from pg test ( #422 )
2020-04-06 15:44:21 +03:00
Ariel Mashraki
3c03ed00a8
dialect/sql/schema: more code de-duplication from mysql test ( #421 )
2020-04-06 12:31:54 +03:00
Ariel Mashraki
ff26e5ff7d
dialect/sql/schema: remove code-duplication from mysql test ( #420 )
2020-04-06 12:00:44 +03:00
Ariel Mashraki
b1eb999097
dialect/sql/schema: comment changes ( #415 )
2020-03-31 22:51:50 +03:00
Ariel Mashraki
a6e5124d13
dialect/sql/schema: better error message for sqlite limitation ( #401 )
2020-03-22 22:04:00 +02:00
Ariel Mashraki
416c374cb3
sqlgraph/convert: use json.RawMessage for JSON types ( #393 )
...
If the underlying driver does not support JSON types, driver.DefaultParameterConverter
will convert it to uint8.
2020-03-17 18:34:10 +02:00
Ariel Mashraki
320b9caf61
dialect/sql/schema: add option to skip fixture when it's irrelevant ( #350 )
2020-02-16 18:17:58 +02:00
Ariel Mashraki
d9c8d9545d
entc/gen: use NotFoundError when updating non-exist node ( #348 )
...
Fixes #341
2020-02-16 13:26:13 +02:00
Ariel Mashraki
ab71992b7c
dialect/sql/mysql: fix verifyrange check for mysql ( #337 )
2020-02-09 16:09:02 +02:00
Ariel Mashraki
26440c2bc9
dialect/sql/schema: setrange on custom column name of pks ( #333 )
2020-02-09 09:41:26 +02:00
qystishere
374b5dd3b8
dialect/sql/schema: support mysql latest numeric type format ( #328 )
2020-02-08 15:37:35 +02:00