0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 21:04:15 +08:00
Commit Graph

69 Commits

Author SHA1 Message Date
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
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
31cb9c31ab Continued required/provided table improvements 2024-08-30 13:28:12 +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
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
Roland Bock
7f59918a09 Serialize tests compile and pass again 2024-08-10 21:35:23 +02:00
Roland Bock
b9987ccf4d Continued migration 2024-08-10 15:54:32 +02:00
Roland Bock
e17e9aebde serialize -> to_sql_string 2024-08-10 15:35:58 +02:00
Roland Bock
3faecf6c01 Remove duplicate tests 2024-08-10 11:48:16 +02:00
Roland Bock
1339cbd0e6 Fix parentheses for aggregate functions 2024-08-10 09:30:20 +02:00
Roland Bock
7a900b147c Fixed tests 2024-08-10 09:13:28 +02:00
Roland Bock
8e688f3c34 More tests 2024-08-03 21:08:27 +02:00
Roland Bock
e3f95a8e69 Added placeholders for operator serialize tests
Added SQLPP_COMPARE helper function
2024-08-03 12:14:00 +02:00
Roland Bock
dfa9924288 More tests and changed parentheses handling in operators 2024-08-03 11:41:32 +02:00
Roland Bock
4a9f9c384c Remove option to compile tests with different standard
The library is header only. It makes no sense to distinuish
between the standard the library is compiled with and the
standard the tests are compiled with. The library does not
get compiled on its own.
2024-08-03 10:29:20 +02:00
Roland Bock
79da114c00 Move stuff out of compat namespace
It is too much cognitive overhead
2024-07-29 20:49:45 +02:00
Roland Bock
3f73115356 Move stuff into core 2024-07-29 20:38:10 +02:00
Roland Bock
91af6aa385 Still more moves 2024-07-29 07:08:37 +02:00
Roland Bock
6a11df89ec Change table represenation
Move columns out of table template parameters
2024-07-26 12:11:38 +02:00
Roland Bock
5578cce232 Rewrite select_as and add type tests 2024-07-25 08:05:18 +02:00
Roland Bock
d3daa90e0b custom_query tests 2024-07-21 12:01:37 +02:00
Roland Bock
01c1e69eb3 More tests 2024-07-21 10:43:27 +02:00
Roland Bock
d2cb720746 Reactivate more tests 2024-07-21 09:24:41 +02:00
Roland Bock
4e75cf349b Start reactivating tests 2024-07-21 07:57:01 +02:00
Roland Bock
0f4d3b1451 Reduce error messages for serialize, add first serialize test for dynamic AND 2024-07-18 20:49:16 +02:00
Roland Bock
7cc4e45abd Add dynamic to AND and OR 2024-07-18 20:17:57 +02:00
Roland Bock
c70ceaceb0 Introduce optional select columns
Basic functionality seems to work, more tests needed.
2024-06-25 07:33:53 +02:00
Roland Bock
d7c54c949f Replace test column names with clearer names 2024-06-14 22:01:30 +02:00
Roland Bock
0eac55c377 Move optional, string_view, and span into sqlpp::compat 2024-06-12 21:31:18 +02:00
Roland Bock
8d0f3b3739 Clean up superfluous classes and functions
And remove some remaining dynamic parts which were overlooked before.
2024-06-12 20:33:35 +02:00
Roland Bock
c347b5d11c Remove dynamic query components 2024-06-12 20:31:06 +02:00
Roland Bock
bda77c620b Introduce optional, string_view, and span
sqlpp::optional is an alias for std::optional for C++17 and beyond.
Otherwise, it is a simple and incomplete backport.
For older versions of C++, the library offers simple back

Similar for string_view and span.
2024-06-12 20:29:10 +02:00
Roland Bock
6cc2067ef5 Allow alias of single-column select to be used as select column (#542) 2023-11-19 12:57:54 +01:00
Roland Bock
96fb4d7894 Add comparison operator serialization tests 2023-10-14 09:03:46 +02:00