Jannik Clausen
6109670fa2
entc/integration: add integration testing for PG16 and PG17 ( #4353 )
2025-03-17 10:04:41 +01:00
Jannik Clausen
6cfa2288bb
entc: global id feature ( #4293 )
...
Feature to add annotations to ent schema to ensure sql tables have sequential auto-increment id columns. Meant to be a better alternative for entgql / gqlgen globally unique id feature.
2025-01-13 20:49:28 +01:00
Ariel Mashraki
9627017062
dialect/sql: support scanning extra nullable time columns ( #4232 )
2024-10-05 11:03:53 +03:00
Ariel Mashraki
009b396d7e
schema/field: allow setting time fields as unique ( #4220 )
...
* schema/field: allow setting time fields as unique
* .github: goodbye crate-ci/typos
2024-09-19 21:59:59 +03:00
Ariel Mashraki
7871b82e81
schema/field: support annotating fields as deprecated ( #4132 )
2024-07-10 15:55:37 +03:00
Jannik Clausen
092b62a322
schema/field: add support for ValueScanner on field.Bytes() ( #4067 )
2024-05-21 08:58:50 +02:00
Ariel Mashraki
7284481be5
entc/gen: add feature-flag to set unique backref when their inverse is loaded ( #3953 )
2024-02-24 22:57:17 +02:00
Ariel Mashraki
dc8ea50747
entc/gen: add support for MapBulkCreate ( #3696 )
2023-08-16 11:46:14 +03:00
Ariel Mashraki
f0a81e2640
dialect/sql: add predicate to check hasprefix between columns/fields
2023-06-22 15:43:25 +03:00
Ariel Mashraki
fc8d095da8
dialect/sql: add OrderByRand option ( #3518 )
2023-05-04 12:13:24 +03:00
Ariel Mashraki
6198beb484
entc/gen: load referenced foreign-keys on eager-loading ( #3497 )
2023-04-20 17:26:37 +03:00
Ariel Mashraki
44b8648720
dialect/sql/sqlgraph: allow query edge fields with alias ( #3470 )
2023-04-11 13:55:04 +03:00
Ariel Mashraki
5b1de3901a
doc: update ordering fluent api ( #3456 )
2023-04-09 15:00:16 +03:00
Ariel Mashraki
064c9118b7
entc/gen: add fluent-api for order options ( #3449 )
2023-04-09 10:37:42 +03:00
Ariel Mashraki
02bb3269af
dialect/sql: move order-by options to top-level driver package ( #3446 )
2023-04-07 00:35:20 +03:00
Ariel Mashraki
0e7203655e
dialect/sql/sqlgraph: allow selecting order by terms ( #3439 )
2023-04-04 14:00:35 +03:00
Ariel Mashraki
4c332f7bba
doc/features: add dynamic values support ( #3436 )
2023-04-03 17:55:28 +03:00
Ariel Mashraki
ba7f158a9c
entc/gen: allow scanning dynamic sql values ( #3432 )
2023-04-03 17:07:24 +03:00
Ariel Mashraki
60bb939fc2
dialect/sql/sqlgraph: add function to order by edge terms ( #3426 )
2023-04-01 20:55:00 +03:00
Ariel Mashraki
e3cee0adc2
dialect/sql/sqlgraph: add function to order by edge count ( #3422 )
2023-03-30 10:10:59 +03:00
Ariel Mashraki
d9e7adfa05
dialect/sql/sqlgraph: catch SQLite INSERT errors executed with Driver.Query ( #3415 )
2023-03-27 22:21:47 +03:00
Ariel Mashraki
3f1063c77e
schema/field: add support or external ValueScanner ( #3391 )
2023-03-16 22:18:54 +02:00
Ariel Mashraki
138bd2bc1d
entc/gen: <T>Query.IDs should not return duplicates ( #3304 )
2023-02-06 21:19:05 +02:00
Ariel Mashraki
8022271f12
entc/integration: add example for composite unique index ( #3302 )
2023-02-06 11:17:33 +02:00
Ariel Mashraki
d11122592a
entc/gen: add support for UpdateOne with predicates ( #3286 )
2023-01-29 13:09:16 +02:00
Pedro Henrique
56c16b25ef
entc/gen: allow setting UpdateDefault without Default ( #3276 )
...
* entc/gen: ensure UpdateDefault is generated
* apply suggestions from PR
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2023-01-26 18:09:09 +02:00
Ariel Mashraki
d66350ae40
entc/gen: add support for DeleteOne with predicates ( #3271 )
...
Also, fixed a bug in DeleteOne.Exec where it was skipping NotFoundError
2023-01-24 15:10:20 +02:00
Ariel Mashraki
f226627d67
ent: export query interceptors ( #3157 )
2022-12-19 10:17:10 +02:00
Pedro Henrique
0f20a3d007
entc/integration: test with Postgres 15 ( #3152 )
2022-12-07 11:55:06 +02:00
Ariel Mashraki
765ec09d31
entc/gen: add Aggregate to <T>Select and <T>Query
2022-10-23 09:50:23 +03:00
Jannik Clausen
c41d223733
dialect/sql/schema: disable foreign keys before opening a transaction ( #2966 )
...
* dialect/sql/schema: disable foreign keys before opening a transaction
* dialect/sql/schema: disable foreign keys before opening a transaction
* fix tests
* add test for bug
* apply CR
2022-09-28 07:41:49 +02:00
Ariel Mashraki
2c63d1d70e
all: gofmt -w -r 'interface{} -> any' ( #2874 )
2022-08-19 18:23:04 +03:00
Pedro Henrique
2b54aadcce
dialect/sql: escape EqualFold on Postgres ( #2860 )
...
* adds tests for equalFold predicates
* ensure EqualFold escapes the argument on Postgres
* adds tests on builder as well
2022-08-16 10:09:06 +03:00
Ariel Mashraki
5c2013b5fd
entc/integration: example for #2846
2022-08-14 11:10:36 +03:00
Ariel Mashraki
b207429f15
entc/gen: allow setting required fields as nillable
2022-08-13 20:12:28 +03:00
Ariel Mashraki
c8fc927f0d
entc/gen: add tests for bulk-upsert fix in #2840 ( #2845 )
2022-08-12 21:12:34 +03:00
Ariel Mashraki
0066eb986d
entc/gen: extend sql/modify to UPDATE statements
2022-08-05 14:42:04 +03:00
Ariel Mashraki
b60e0f9eac
entc/gen: add support for WithNamed<E> feature-flag ( #2792 )
...
* entc/gen: struct fields and methods for NamedEdge api
* entc/gen: generate WithNamedEdge methods for named-edges
* entc/gen: implement eager-loading for named-edges
* entc/gen: simplify eager-loading template
* entc/gen: drop support for unqiue edges in named-based loading
* all: codegen
* doc/website: named-edges feature-flag
* Update doc/md/eager-load.mdx
* Update doc/md/eager-load.mdx
2022-07-24 18:41:07 +03:00
Ariel Mashraki
ddc46d34d8
schema/field: correctly extract package names from type identifier ( #2765 )
...
Fixes https://github.com/ent/ent/issues/2761
2022-07-17 16:49:11 +03:00
Ariel Mashraki
b5b5d87f08
entc/gen/integration: re-enable postgres tests ( #2749 )
2022-07-13 18:30:57 +03:00
Ariel Mashraki
1c01301de1
sql/dialect/schema: support setting PK to serial types in postgres ( #2748 )
2022-07-13 14:40:56 +03:00
Jannik Clausen
5b67bdab4f
dialect/sql/schema: atlas engine is now default ( #2698 )
...
* atlas engine is default, enabled diff by replay
* Apply suggestions from code review
* docs
* apply CR
2022-07-05 12:29:15 +02:00
Ariel Mashraki
311d760679
entc/gen: allow opening and testing concurrent enttest clients ( #2665 )
2022-06-20 08:32:30 +03:00
Ariel Mashraki
abefaa7f24
entc/gen: catch constraint failures in delete operations ( #2664 )
2022-06-19 14:34:32 +03:00
Ariel Mashraki
5b81d7d832
dialect/sql/sqlgraph: better support for update nodes with predicates ( #2574 )
2022-05-29 16:23:52 +03:00
Pedro Henrique
4d1c0af20d
entc/integration: add examples for sub-queries + minor fixed for selector builder ( #2509 )
...
* dialect/sql: move FROM to inside switch
* dialect/sql: adds simple example of subquery usage
* dialect/sql: adds a more complex example with join
* Apply suggestions from code review
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
* dialect/sql: fix missing type and change modify to where
Co-authored-by: Ariel Mashraki <7413593+a8m@users.noreply.github.com >
2022-05-05 22:46:13 +03:00
Ariel Mashraki
d92984f744
doc/website: add sql/execquery feature-flag to document ( #2453 )
2022-04-06 14:10:33 +03:00
Ariel Mashraki
89c339209e
entc/gen: add the sql/execquery feature flag ( #2447 )
2022-04-06 13:34:22 +03:00
Ariel Mashraki
92ff734815
dialect/sql: add support for window functions ( #2431 )
2022-03-27 20:53:36 +03:00
Ariel Mashraki
edd968490e
entc/gen: use join for loading m2m relationship ( #2417 )
...
* entc/gen: use join for m2m relationship
* entc/gen: add test for eager-load inverse-m2m
2022-03-21 11:37:54 +02:00