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
700c263f90
Introduce dynamic
...
This allows to select columns dynamically
2024-07-18 07:38:45 +02:00
Roland Bock
25200ba4cb
(Only) allow comparison with ANY and introduce BETWEEN
2024-07-17 07:44:21 +02:00
Roland Bock
937dd31a13
Migrate column_t::as to using operator::as
2024-07-16 07:37:03 +02:00
Roland Bock
2d2f08007a
Single column select has a value type
2024-07-15 07:44:29 +02:00
Roland Bock
6c1d59ffc4
Remove data type wrappers (with compile failuers)
2024-07-14 19:57:55 +02:00
Roland Bock
61030742b3
Removing more instances of wrap_operand
2024-07-14 12:42:02 +02:00
Roland Bock
87f4c348e9
Added more tests and cleaned up type traits a bit
2024-07-13 21:04:06 +02:00
Roland Bock
c2c5f15690
Add basic serialize functions and start documenting differences
2024-07-13 13:39:36 +02:00
Roland Bock
2b7e0ee6a5
Give operators a value
2024-07-11 20:46:30 +02:00
Roland Bock
08f643460c
No more type traits in generated code
2024-07-09 08:08:53 +02:00
Roland Bock
4baede7434
Started to remove operand wrapping
2024-07-08 21:08:16 +02:00
Roland Bock
6eb791430a
More testing
2024-06-30 10:31:41 +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
b869cbe5b2
Synchronize sql and generated code for connector tests
2024-06-22 16:27:10 +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
ac9d0b4417
Update the documentation for NULL #568
2024-04-13 08:56:57 +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
c1992535de
Demonstrate insert with select ( #539 )
2023-11-03 07:23:34 +01:00
Roland Bock
96fb4d7894
Add comparison operator serialization tests
2023-10-14 09:03:46 +02:00
Roland Bock
a2d884dab6
Maybe fix compile error on AppVeyor
2023-10-01 20:11:57 +02:00
Roland Bock
a0a4f19c4b
(Maybe) fix test compilation error on AppVeyor
2023-10-01 19:56:28 +02:00
Roland Bock
ea9bd9ee32
Add tests for circular buffer
2023-10-01 15:09:53 +02:00
MeanSquaredError
8d92e7bb81
Add sqlpp::compat::make_unique ( #527 )
...
* Add sqlpp::compat::make_unique which calls std::make_unique in C++14 or newer and falls back to a custom implementation in C++11 mode.
* Add tests for sqlpp::compat::make_unique
2023-09-16 09:21:05 +02:00
MeanSquaredError
c65e660435
Fix handling of "-DSQLPP11_TESTS_CXX_STD=..." in tests/core/serialize/CMakeLists.txt ( #525 )
2023-09-15 06:41:58 +02:00
MeanSquaredError
25bca54ba7
Replace regex-based date/time parsing with manual parser ( #520 )
...
* Replace regex-based date/time string parsing with manually written parsing code.
* Add date/time parser tests.
2023-09-07 06:23:44 +02:00
MeanSquaredError
a085d730c9
Replace include guards with "#pragma once" in all header files and in the database model generator scripts. ( #506 )
2023-07-25 07:00:05 +02:00
MeanSquaredError
26280d2678
gcc warnings ( #496 )
...
* Enable std::move() by using std::string instead of const std::string&
* Fix dangling references.
2023-06-28 06:32:39 +02:00
Matthijs Möhlmann
38aba217d4
std::string_view should also be assignable in prepared statements
2023-04-03 06:16:57 +02:00
Bernd Lörwald
9412851408
#471 serializers: ensure float precision ( #472 )
...
* value: add missing includes
* mysql, sqlite3: use explicitly *out* stringstreams for serialization
* postgresql: fix: use max_digits10 instead of digits10
* detail: add float_safe_ostringstream, ensuring floats are serialized with enough precision
* mysql, postgresql, sqlite3, tests: fix: set float-precision for all streams
* run clang-format on changed files
* inline remove_cvref.h
* replace unspecific "wrapper" with concrete type name
* tests: split connector specific tests out of serialize/Float
2023-02-18 08:10:50 +01:00
Roland Bock
64d16bfee0
Cleanup parens for ANY and SOME
2023-02-05 09:31:30 +01:00
Roland Bock
0731a8597d
Cleanup parens for EXISTS
2023-02-04 10:21:54 +01:00
Roland Bock
2d3967a0b3
Cleanup braces for IS_NULL and IS NOT NULL
2023-02-04 10:12:55 +01:00
Roland Bock
1c4f1f61c8
Allow TRIM to be used with sub selects
2023-02-04 09:05:04 +01:00
Roland Bock
3fba3e721e
Add UPPER and LOWER
...
This is replacing and extending #456 .
2023-02-04 08:57:17 +01:00
Roland Bock
82758a2046
Add missing braces to aggregatedfunctions with sub select #469
...
Also allow MIN and MAX to be used with DISTINCT.
2023-01-29 14:39:07 +01:00
Roland Bock
673b07361b
Add missing braces to SUM with sub select #469
2023-01-29 12:57:02 +01:00
hwhsu1231
2aa9797117
style: Align CMake files with 4 spaces indent
2022-11-26 08:32:46 +01:00
Roland Bock
4be8b9f654
Add example for #448
2022-06-20 06:58:51 +02:00
Roland Bock
57077cd32b
Add standalone insert_columns function ( #76 )
...
This allows for multi-row INSERT OR IGNORE
2022-06-06 10:15:28 +02:00
Roland Bock
256429730a
Fix CMake warnings (CMP0115)
2022-06-06 10:14:01 +02:00
Roland Bock
f5be4095ae
Allow parameter in having clause, see #443
...
Disallow mixing aggregate and non-aggregate columns in select, too.
2022-05-22 15:05:58 +02:00
Roland Bock
1d5caca523
Allow value_or_null to be assigned to parameters ( #435 )
2022-04-02 08:27:38 +02:00
Roland Bock
181cc5fb04
Fix compiler warnings.
2021-12-11 19:53:35 +01:00
Leon De Andrade
d17bce9644
Add Connector CMake Logic ( #394 )
...
Add Connector Cmake logic
* Also install date when used with fetch content
* Install everything always
* Update documentation
* Add option to control dependency searching
* Adjust travis
2021-12-02 07:45:38 +01:00