4970 Commits

Author SHA1 Message Date
Charles Leifer 48a62eba55 Fix failing test on mysql 2026-05-05 21:43:21 -05:00
Charles Leifer d7b42efdb3 Factor out the column resolution into helper func. 2026-05-05 18:50:09 -05:00
Charles Leifer 4fedb8f4d0 Use faster and more robust fromisoformat when possible. 2026-05-05 17:15:30 -05:00
Charles Leifer cefdec2116 Quote path elements in sqlite json paths 2026-04-24 14:58:01 -05:00
Charles Leifer 93da1ac2e4 4.0.5 4.0.5 2026-04-23 16:15:53 -05:00
Charles Leifer b0b5f1a1a2 Tests for #3044 - custom db_value in json field subclass 2026-04-23 16:12:19 -05:00
Charles Leifer 4f2bbfb84d Pass through to db_value(), don't just naively wrap. fixes #3044 2026-04-23 16:02:38 -05:00
Charles Leifer 19a1ca7e15 Ensure we don't introspect pg indexes defined on diff schema.
Fixes #3043
2026-04-23 07:53:46 -05:00
Charles Leifer 2fc7057792 Merge pull request #3042 from JacksonKontny/add-scalars-documentation
Add documentation for scalars method
2026-04-20 17:28:45 -05:00
Jackson Kontny eb909b1618 Add documentation for scalars method 2026-04-20 16:00:27 -05:00
Charles Leifer e0318033d7 Rename some duplicate-named tests. 2026-04-17 10:04:44 -05:00
Charles Leifer 6575593647 Few more clarifications for gaps in docs. 2026-04-17 09:36:46 -05:00
Charles Leifer be153463a7 Clarify some inconsistencies in doc 2026-04-17 08:37:14 -05:00
Charles Leifer f3d8645c76 Always fallback to base if exc not in known db-api for wrapper. 2026-04-16 23:03:27 -05:00
Charles Leifer 4675a44cd8 Fix missing params in method sigs 2026-04-16 21:48:11 -05:00
Charles Leifer e64064f6e2 Doesn't work w/psycopg3 for some reason, will debug later. 2026-04-02 15:56:41 -05:00
Charles Leifer 3c42cd4b7e Improve result types for cte.select_from() by using ModelSelect 2026-04-02 15:37:01 -05:00
Charles Leifer 1c5e37934b 4.0.4 4.0.4 2026-04-02 08:50:42 -05:00
Charles Leifer c511fb137f Fix syntax when using nulls_distinct on partial index.
Fixes #3038
2026-04-02 08:09:09 -05:00
Charles Leifer f8ff6af96c Raise an ImproperlyConfigured instead of AttributeError if pg missing.
Refs #3036
2026-03-26 17:46:25 -05:00
Charles Leifer bd0e434e83 4.0.3 4.0.3 2026-03-26 17:39:18 -05:00
Charles Leifer 89f3031dac Use psycopg3 if psycopg2 is not installed.
Fixes #3036
2026-03-26 17:36:15 -05:00
Charles Leifer 007fd50bc7 Just some housekeeping 2026-03-25 08:20:06 -05:00
Charles Leifer eda231b047 Update changelog, fix failing crdb sql test. 2026-03-24 21:32:12 -05:00
Charles Leifer 071d0a0362 Cleanup cruft in sql and merge it into appropriate cases. 2026-03-24 21:13:44 -05:00
Charles Leifer ab9a94311d Test cleanup in prefetch 2026-03-24 20:21:16 -05:00
Charles Leifer 2d20c8acb4 Updates to tests, gone through model_sql and cleaned-up. 2026-03-24 09:55:48 -05:00
Charles Leifer c8c09caad7 First pass cleaning up models.py 2026-03-23 19:28:51 -05:00
Charles Leifer 5f222d661e Fixup some tests that were being flaky, reorg 2026-03-23 14:09:54 -05:00
Charles Leifer c604a4513f Manual cleanup in manytomany tests. 2026-03-23 08:31:54 -05:00
Charles Leifer 3caa2f8089 Go through fields tests, cleaning up and consolidating. 2026-03-23 08:26:08 -05:00
Charles Leifer bb529fa0bb Manual cleanup and organization of db_tests w/new gap coverage.
Clean up some of the assertions, merge some tests.
2026-03-23 08:04:50 -05:00
Charles Leifer b323fc5903 Gap coverage - needs review. 2026-03-22 22:02:18 -05:00
Charles Leifer 7de1497f18 Add a couple new tests for pure SQL generation identified as gaps. 2026-03-22 16:51:20 -05:00
Charles Leifer d8c15c3c57 Some more high-level cleanup after AI reorg. 2026-03-22 16:17:10 -05:00
Charles Leifer 2165fbbdce Start working through the reorganized code, cleaning it up. 2026-03-22 14:53:30 -05:00
Charles Leifer 5451f8f2a8 New tests for schema and result verification. 2026-03-22 11:04:00 -05:00
Charles Leifer 44bf2d9129 Add comments to base models explaining usages. 2026-03-22 10:53:23 -05:00
Charles Leifer 4073c2d490 New tests covering some existing gaps. 2026-03-22 10:44:23 -05:00
Charles Leifer c17dc048fb New tests for model_sql to cover some gaps. 2026-03-22 10:25:00 -05:00
Charles Leifer 6418faf6ce Reorganization within larger modules. 2026-03-22 10:12:54 -05:00
Charles Leifer 17cc2f54a6 Reorganize classes within modules (fields and models). 2026-03-22 09:59:52 -05:00
Charles Leifer 4a3e6e82a8 Start reordering. 2026-03-22 09:42:31 -05:00
Charles Leifer b1196c8ac9 Comments for sections to serve as anchors for reorganization. 2026-03-22 09:40:24 -05:00
Charles Leifer 95e95fae8c Test reorg. 2026-03-21 21:26:37 -05:00
Charles Leifer 4e08dd7b69 Avoid specifying both base and config to pydantic. 2026-03-20 16:48:02 -05:00
Charles Leifer 8e7a37f300 Allow specifying a custom base class when using to_pydantic
Refs #3034
2026-03-20 16:36:57 -05:00
Charles Leifer 3abb8c8aaa Support generator as a multi-type. 2026-03-19 08:26:56 -05:00
Charles Leifer a5d96e57c2 Slightly faster row construction 2026-03-17 20:49:51 -05:00
Charles Leifer 21ea54a2cc Add a few more SQL generation and field-type tests.
Also fix a locking issue that came up w/serverside when running tests
against psycopg3.
2026-03-17 20:33:28 -05:00