Commit graph

511 commits

Author SHA1 Message Date
Barnabas Jovanovics
32eb42a27e fix: support new upsert field options 2023-11-17 12:24:09 +01:00
Zach Daniel
c6e6633a9a fix: properly expand calculation values across aggregate invocations 2023-11-17 04:01:35 -05:00
Zach Daniel
abbbddf726 fix: don't add filter for no_attributes? relationships 2023-11-16 18:08:12 -05:00
Zach Daniel
ae90b66056 chore: credo/dialyzer 2023-11-16 17:55:27 -05:00
Zach Daniel
39754d1f38 fix: handle no_attributes? flag on aggregates better
fix: properly handle sorted relationships in aggregates
2023-11-16 17:48:39 -05:00
Zach Daniel
f62eef176a chore: remove testing variable 2023-11-16 11:15:11 -05:00
Zach Daniel
ef96cd541e fix: use synonymous_relationship_path when looking up ref bindings 2023-11-16 11:02:24 -05:00
Zach Daniel
4f5312a089 fix: add calculation context to calculation expressions 2023-11-16 08:31:50 -05:00
Zach Daniel
4d672ba088 fix: don't append update_defaults automatically if upsert_fields was set 2023-11-15 16:08:44 -05:00
Zach Daniel
ce628384d2 fix: don't ensure repo compiled at compile time 2023-11-14 13:59:30 -05:00
Zach Daniel
2b29f728e2 fix: handle additional case for new functional repo callback 2023-11-14 12:59:42 -05:00
Zach Daniel
db8255e5b1 improvement: support a 2 argument function for the repo option 2023-11-14 10:56:22 -05:00
Zach Daniel
cae89d856e fix: get resource from proper bindings on exists query 2023-11-13 17:42:37 -05:00
Zach Daniel
082210933f improvement: spport CURRENT_DATE default 2023-10-27 10:33:03 -04:00
Zach Daniel
bc4b69a568 chore: ensure type is compiled 2023-10-27 00:06:55 -04:00
Zach Daniel
342920a3c4 improvement: support parent in sort expressions 2023-10-26 09:47:56 -04:00
Zach Daniel
ad9d18aecb improvement: join relationships for aggregate filters 2023-10-25 12:59:03 -04:00
Zach Daniel
9769d995b3 chore: fix unused variable 2023-10-25 08:44:32 -04:00
Zach Daniel
53bb5941e8 fix: don't traverse new types for storage type 2023-10-24 12:54:31 -04:00
Zach Daniel
52302046e1 fix: properly join to related references in relationship filters 2023-10-24 12:25:23 -04:00
Zach Daniel
0325196a20 improvement: allow for combining AshPostgres.Repo with other repos
fixes #172
2023-10-13 22:47:11 -04:00
Zach Daniel
cd6a7cae69 fix: don't raise all errors 2023-10-11 16:26:48 -04:00
Zach Daniel
1a6e469e57 improvement: support atomics on upserts 2023-10-11 15:17:50 -04:00
Zach Daniel
c6d71d74bf fix: fix type specification for foreign_key_names 2023-10-10 15:47:53 -04:00
Zach Daniel
f67db5ee6d chore: handle ci_string type as storage type 2023-10-10 14:16:25 -04:00
Zach Daniel
9f62d65215 improvement: support :ci_string as a storage_type 2023-10-10 14:12:25 -04:00
Zach Daniel
772c12b5a3 fix: don't run main query if only exists aggs are specified
fixes: #170
2023-10-10 09:43:09 -04:00
Zach Daniel
270d8685e7 improvement: support to-one references in calculations 2023-10-09 18:57:06 -04:00
Zach Daniel
5fdc81bf06 fix: subquery aggregate if limit is applied 2023-10-03 12:56:44 -04:00
Alessio Montagnani
0adec1d163
* improvement: in multitenant resources migration's generation, check if the relationship points at the primary key of the target then not adding the multitenancy attribute (#144 and #157) 2023-09-25 15:33:28 -04:00
Zach Daniel
99e8029499 improvement: fix upsert_fields behavior for upserts 2023-09-25 15:32:20 -04:00
Zach Daniel
b00dcf20c9 chore: format & fix docs 2023-09-22 17:16:47 -04:00
Zach Daniel
cca5f0244b chore: fix type names I just broke 2023-09-22 17:04:39 -04:00
Zach Daniel
a56f4ef52f docs: overhaul hexdocs 2023-09-22 16:14:25 -04:00
Zach Daniel
49490e6fb4 improvement: support data_layer_context option on transactions
chore: refactor create/upsert to use bulk create
2023-09-22 15:43:17 -04:00
Dmitry Maganov
b03fb51c36
fix: use :wrap_list type instead of custom validaitons (#167) 2023-09-21 15:44:02 -04:00
Zach Daniel
81ce903e61 improvement: add AshPostgres.Tsvector 2023-09-20 17:28:24 -04:00
Zach Daniel
b35f8c715b improvement: add AshPostgres.Tsquery 2023-09-20 16:41:32 -04:00
Zach Daniel
e8a4b41758 improvement: support vector types and vector_cosine_distance 2023-09-11 22:34:51 -04:00
James Harton
6cc88c82b4
improvement: Allow resources to opt out of the primary key requirement. (#166) 2023-09-06 01:18:57 -04:00
Zach Daniel
5182a1c6d0 improvement: implement ash lifecycle tasks 2023-09-04 13:08:14 -04:00
Zach Daniel
33eb4f9fb7 improvement: better error message for missing table config 2023-09-04 11:25:03 -04:00
Zach Daniel
3f4f8c1d32 fix: ensure we always select at least one field, and change one field 2023-08-31 16:11:29 -04:00
Zach Daniel
1359068a69 fix: use provided values for updates 2023-08-31 16:03:23 -04:00
Zach Daniel
9f77304b22 fix: don't clobber loaded data on update 2023-08-31 13:04:08 -04:00
Zach Daniel
5a4a52854b
improvement: support atomics (#165) 2023-08-28 16:18:56 -04:00
Zach Daniel
cbde3958f3 fix: properly handle ensure nsted calls to get_path are jsonb 2023-08-23 12:54:25 -04:00
Zach Daniel
8fc0f8149c fix: properly provide constraints on all type casting 2023-08-22 15:29:33 -04:00
Zach Daniel
99b2a5631c improvement: support in-line aggregates
fix: support non-atom named aggregates
2023-08-22 14:51:31 -04:00
Zach Daniel
8a6f51efb5 improvement: specify @behaviour in AshPostgres.Type 2023-08-21 11:14:33 -04:00