0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 12:51:13 +08:00
Commit Graph

1611 Commits

Author SHA1 Message Date
Roland Bock
3f05ea7c6b Add dependency check for CTEs in with
CTEs can use other CTEs iff they have been defined to the left.
2024-11-02 22:14:45 +01:00
Roland Bock
f56f20cfc1 Add more WITH tests 2024-11-02 10:54:23 +01:00
Roland Bock
aa6ea6c4f0 Fix serialize tests for WITH RECURSIVE 2024-11-01 14:36:44 +01:00
Roland Bock
10eaa1f97a Started to write serialize tests for WITH 2024-10-28 07:38:40 +01:00
Roland Bock
eef8fab8c6 Rename has_name to has_name_tag 2024-10-27 12:54:11 +01:00
Roland Bock
5c7facfdd4 Remove deferral in select_column_list
Wow, finally!
2024-10-27 12:44:13 +01:00
Roland Bock
226df5606a Add serialize tests for select_as
Cleanup use of field/column specs
2024-10-27 12:35:03 +01:00
Roland Bock
a6fbbdedb4 Minor cleanup 2024-10-27 12:34:31 +01:00
Roland Bock
e5ad3efb43 Add tests for CTE 2024-10-27 11:25:43 +01:00
Roland Bock
980daac517 Implement CTE alias (allowing self-join) 2024-10-26 11:29:58 +02:00
Roland Bock
982812abcc Cleanup 2024-10-20 11:15:10 +02:00
Roland Bock
32529eac90 Fix join with CTE
At least for basic tests.
2024-10-19 20:34:02 +02:00
Roland Bock
e46eeddc45 Fix join with CTEs 2024-10-17 07:49:39 +02:00
Roland Bock
8a59fb44a2 Add tests for some value types and for CTE
plus some cleanup, e.g. removing superseded tests
2024-10-13 13:07:28 +02:00
Roland Bock
32dee26d1a Rename remove to delete and add serialize tests
Using the verb "remove" instead of "delete" was an early decision because
delete is a keyword and might lead to confusion.

Today, I think that it should be renamed to be as close to SQL as possible.
2024-10-06 10:39:40 +02:00
Roland Bock
412b4b0c95 Reduce remove_from to the generally supported set
USING is supported by postgresql
JOIN is supported by mysql
2024-10-06 10:01:15 +02:00
Roland Bock
0c8c0c5215 Add serialize tests for update 2024-10-06 09:51:08 +02:00
Roland Bock
8cb8a5cbd9 Add more serialize tests for union and select 2024-10-05 11:46:11 +02:00
Roland Bock
957abef11a Add serialize test for union 2024-10-03 11:18:35 +02:00
Roland Bock
e65d44a4b9 Add serialize test for for_update 2024-10-03 10:25:10 +02:00
Roland Bock
040047e5ff Add serialize tests for limit and offset 2024-09-29 11:28:32 +02:00
Roland Bock
e3eb52a080 Add tests for order_by
Also improve handling of group_by in case all columns are false dynamic.
2024-09-29 11:06:34 +02:00
Roland Bock
223bf2795f Add tests for having 2024-09-28 12:40:27 +02:00
Roland Bock
0341d56075 Add test triggered by #604 2024-09-28 10:12:47 +02:00
Roland Bock
38fca31790 Add serialize tests for WHERE 2024-09-23 06:48:43 +02:00
Roland Bock
1dfffdb851 Add tests for from and for join 2024-09-22 11:34:47 +02:00
Roland Bock
2dbddc5650 Add serialize tests for insert 2024-09-22 10:33:12 +02:00
Roland Bock
02b880b204 Add tests for insert_columns 2024-09-22 09:50:24 +02:00
Roland Bock
2198f95dab Add support for dynamic insert_set and corresponding tests 2024-09-15 15:16:48 +02:00
Roland Bock
57dd15143d Add serialize tests for update_set 2024-09-14 18:38:02 +02:00
Roland Bock
8764f3862e Add dynamic select flags 2024-09-14 12:23:22 +02:00
Roland Bock
eaa7d24924 Add tests for (insert) into and (update) single_table
Repaired a few other tests while at it
2024-09-08 13:30:42 +02:00
Roland Bock
6589c9ccbe Add more join tests 2024-09-07 14:24:13 +02:00
Roland Bock
64163be810 Add type tests for table and table_as and column 2024-09-07 11:27:07 +02:00
Roland Bock
3c36b1d025 Fixed a few broken tests 2024-09-01 11:32:19 +02:00
Roland Bock
125a372c32 Rename as_expression to expression_as
This is more in line with table_as, for instance.
2024-09-01 11:05:10 +02:00
Roland Bock
eeb96c3528 Rename AliasProvider to NameTagProvider
Generally streamlined the naming in this area a bit.
2024-09-01 10:57:22 +02:00
Roland Bock
63c95e221c Rename table_alias to table_as 2024-09-01 10:45:22 +02:00
Roland Bock
33a40b6351 pass table and not table spec to column
This is important for table aliases which currently report
provided_tables_of and required_tables_of as table_t<Alias> only.

After this CL, they use table_alias_t<Alias, Spec>>
2024-09-01 10:32:13 +02:00
Roland Bock
454deace20 More fixing tests 2024-08-31 11:58:46 +02:00
Roland Bock
52ca3b6036 Cleanup (fixing tests) 2024-08-30 14:25:58 +02:00
Roland Bock
cf4af171fd Add provided tables to select_as. 2024-08-30 13:52:35 +02:00
Roland Bock
31cb9c31ab Continued required/provided table improvements 2024-08-30 13:28:12 +02:00
Roland Bock
9349f56d68 Prepared for advanced table checks 2024-08-29 12:18:46 +02:00
Roland Bock
6e7d05d6db Add type_vector::transform
plus minor refactoring
2024-08-28 10:44:14 +02:00
Roland Bock
c0ad5e0696 A bit of cleanup 2024-08-25 12:08:08 +02:00
Roland Bock
8caea01d0a Reorganized join and added a first set of serialize tests 2024-08-25 10:47:59 +02:00
Roland Bock
151af17bbc Added type tests for join and fixed a few things to make them compile 2024-08-23 11:41:30 +02:00
Roland Bock
135dceeba3 Add tests and fix serialization of select columns 2024-08-21 07:27:57 +02:00
Roland Bock
92037acd7c More tests and fixes 2024-08-18 12:25:56 +02:00