From 715839e18fba6ed77c5855f59c6d48ceca350201 Mon Sep 17 00:00:00 2001 From: Roland Bock Date: Sun, 28 Jul 2024 21:02:11 +0200 Subject: [PATCH] More moves --- include/sqlpp11/{ => basic}/all_of.h | 0 include/sqlpp11/{ => basic}/parameter.h | 0 .../{ => basic}/parameterized_verbatim.h | 0 include/sqlpp11/{ => basic}/schema.h | 0 .../{ => basic}/schema_qualified_table.h | 2 +- include/sqlpp11/basic/table.h | 2 +- include/sqlpp11/{ => basic}/verbatim.h | 0 include/sqlpp11/{ => basic}/verbatim_table.h | 0 include/sqlpp11/clause/with.h | 2 +- include/sqlpp11/eval.h | 2 +- include/sqlpp11/expression_operators.h | 38 ----- include/sqlpp11/expression_return_types.h | 158 ------------------ include/sqlpp11/function.h | 8 +- include/sqlpp11/postgresql/serializer.h | 2 +- include/sqlpp11/sqlite3/connection.h | 2 +- include/sqlpp11/sqlite3/serializer.h | 2 +- include/sqlpp11/sqlpp11.h | 2 +- tests/core/usage/MockDb.h | 2 +- tests/postgresql/usage/Exceptions.cpp | 2 +- 19 files changed, 14 insertions(+), 210 deletions(-) rename include/sqlpp11/{ => basic}/all_of.h (100%) rename include/sqlpp11/{ => basic}/parameter.h (100%) rename include/sqlpp11/{ => basic}/parameterized_verbatim.h (100%) rename include/sqlpp11/{ => basic}/schema.h (100%) rename include/sqlpp11/{ => basic}/schema_qualified_table.h (98%) rename include/sqlpp11/{ => basic}/verbatim.h (100%) rename include/sqlpp11/{ => basic}/verbatim_table.h (100%) delete mode 100644 include/sqlpp11/expression_operators.h delete mode 100644 include/sqlpp11/expression_return_types.h diff --git a/include/sqlpp11/all_of.h b/include/sqlpp11/basic/all_of.h similarity index 100% rename from include/sqlpp11/all_of.h rename to include/sqlpp11/basic/all_of.h diff --git a/include/sqlpp11/parameter.h b/include/sqlpp11/basic/parameter.h similarity index 100% rename from include/sqlpp11/parameter.h rename to include/sqlpp11/basic/parameter.h diff --git a/include/sqlpp11/parameterized_verbatim.h b/include/sqlpp11/basic/parameterized_verbatim.h similarity index 100% rename from include/sqlpp11/parameterized_verbatim.h rename to include/sqlpp11/basic/parameterized_verbatim.h diff --git a/include/sqlpp11/schema.h b/include/sqlpp11/basic/schema.h similarity index 100% rename from include/sqlpp11/schema.h rename to include/sqlpp11/basic/schema.h diff --git a/include/sqlpp11/schema_qualified_table.h b/include/sqlpp11/basic/schema_qualified_table.h similarity index 98% rename from include/sqlpp11/schema_qualified_table.h rename to include/sqlpp11/basic/schema_qualified_table.h index 3f7d08dd..fa72ccce 100644 --- a/include/sqlpp11/schema_qualified_table.h +++ b/include/sqlpp11/basic/schema_qualified_table.h @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include diff --git a/include/sqlpp11/basic/table.h b/include/sqlpp11/basic/table.h index b2fadee4..eed0ac1f 100644 --- a/include/sqlpp11/basic/table.h +++ b/include/sqlpp11/basic/table.h @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/sqlpp11/verbatim.h b/include/sqlpp11/basic/verbatim.h similarity index 100% rename from include/sqlpp11/verbatim.h rename to include/sqlpp11/basic/verbatim.h diff --git a/include/sqlpp11/verbatim_table.h b/include/sqlpp11/basic/verbatim_table.h similarity index 100% rename from include/sqlpp11/verbatim_table.h rename to include/sqlpp11/basic/verbatim_table.h diff --git a/include/sqlpp11/clause/with.h b/include/sqlpp11/clause/with.h index c87c80d5..7c9474ae 100644 --- a/include/sqlpp11/clause/with.h +++ b/include/sqlpp11/clause/with.h @@ -36,7 +36,7 @@ #include #include -#include +#include namespace sqlpp { diff --git a/include/sqlpp11/eval.h b/include/sqlpp11/eval.h index ab7a046f..0d18bd86 100644 --- a/include/sqlpp11/eval.h +++ b/include/sqlpp11/eval.h @@ -29,7 +29,7 @@ #include #include #include -#include +#include namespace sqlpp { diff --git a/include/sqlpp11/expression_operators.h b/include/sqlpp11/expression_operators.h deleted file mode 100644 index a524b480..00000000 --- a/include/sqlpp11/expression_operators.h +++ /dev/null @@ -1,38 +0,0 @@ -#pragma once - -/* - * Copyright (c) 2013-2015, Roland Bock - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, this - * list of conditions and the following disclaimer in the documentation and/or - * other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include - -namespace sqlpp -{ - template - struct expression_operators - { - static_assert(wrong_t::value, "Missing expression operators for ValueType"); - }; -} // namespace sqlpp diff --git a/include/sqlpp11/expression_return_types.h b/include/sqlpp11/expression_return_types.h deleted file mode 100644 index c095cd52..00000000 --- a/include/sqlpp11/expression_return_types.h +++ /dev/null @@ -1,158 +0,0 @@ -#pragma once - -/* - * Copyright (c) 2013-2015, Roland Bock - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, this - * list of conditions and the following disclaimer in the documentation and/or - * other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE - * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR - * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES - * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; - * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON - * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -#include - -namespace sqlpp -{ - template - struct return_type_and - { - using check = assert_valid_operands; - using type = bad_expression; - }; - template - using return_type_and_t = typename return_type_and::type; - - template - struct return_type_bitwise_and - { - using check = assert_valid_operands; - using type = bad_expression; - }; - template - using return_type_bitwise_and_t = typename return_type_bitwise_and::type; - - template - struct return_type_shift_left - { - using check = assert_valid_operands; - using type = bad_expression; - }; - template - using return_type_shift_left_t = typename return_type_shift_left::type; - - template - struct return_type_shift_right - { - using check = assert_valid_operands; - using type = bad_expression; - }; - template - using return_type_shift_right_t = typename return_type_shift_right::type; - - template - struct return_type_or - { - using check = assert_valid_operands; - using type = bad_expression; - }; - template - using return_type_or_t = typename return_type_or::type; - - template - struct return_type_bitwise_or - { - using check = assert_valid_operands; - using type = bad_expression; - }; - template - using return_type_bitwise_or_t = typename return_type_bitwise_or::type; - - template - struct return_type_not - { - using check = assert_valid_operands; - using type = bad_expression; - }; - template - using return_type_not_t = typename return_type_not::type; - - template - struct return_type_plus - { - using check = assert_valid_operands; - using type = bad_expression>; - }; - template - using return_type_plus_t = typename return_type_plus::type; - - template - struct return_type_minus - { - using check = assert_valid_operands; - using type = bad_expression>; - }; - template - using return_type_minus_t = typename return_type_minus::type; - - template - struct return_type_multiplies - { - using check = assert_valid_operands; - using type = bad_expression>; - }; - template - using return_type_multiplies_t = typename return_type_multiplies::type; - - template - struct return_type_divides - { - using check = assert_valid_operands; - using type = bad_expression>; - }; - template - using return_type_divides_t = typename return_type_divides::type; - - template - struct return_type_modulus - { - using check = assert_valid_operands; - using type = bad_expression>; - }; - template - using return_type_modulus_t = typename return_type_modulus::type; - - template - struct return_type_unary_plus - { - using check = assert_valid_operands; - using type = bad_expression>; - }; - template - using return_type_unary_plus_t = typename return_type_unary_plus::type; - - template - struct return_type_unary_minus - { - using check = assert_valid_operands; - using type = bad_expression>; - }; - template - using return_type_unary_minus_t = typename return_type_unary_minus::type; -} // namespace sqlpp diff --git a/include/sqlpp11/function.h b/include/sqlpp11/function.h index 4459910e..3b71950d 100644 --- a/include/sqlpp11/function.h +++ b/include/sqlpp11/function.h @@ -28,7 +28,7 @@ #include #include -#include +#include #include #include #include @@ -36,9 +36,9 @@ #include #include #include -#include // Csaba Csoma suggests: unsafe_sql instead of verbatim -#include -#include +#include // Csaba Csoma suggests: unsafe_sql instead of verbatim +#include +#include #include #include diff --git a/include/sqlpp11/postgresql/serializer.h b/include/sqlpp11/postgresql/serializer.h index 1c3ad837..d7ab4988 100644 --- a/include/sqlpp11/postgresql/serializer.h +++ b/include/sqlpp11/postgresql/serializer.h @@ -28,7 +28,7 @@ */ #include -#include +#include namespace sqlpp { diff --git a/include/sqlpp11/sqlite3/connection.h b/include/sqlpp11/sqlite3/connection.h index 79544910..842b3f5c 100644 --- a/include/sqlpp11/sqlite3/connection.h +++ b/include/sqlpp11/sqlite3/connection.h @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/sqlpp11/sqlite3/serializer.h b/include/sqlpp11/sqlite3/serializer.h index 323bea62..1bcc15d4 100644 --- a/include/sqlpp11/sqlite3/serializer.h +++ b/include/sqlpp11/sqlite3/serializer.h @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/include/sqlpp11/sqlpp11.h b/include/sqlpp11/sqlpp11.h index 31b54f17..d8496f41 100644 --- a/include/sqlpp11/sqlpp11.h +++ b/include/sqlpp11/sqlpp11.h @@ -34,5 +34,5 @@ #include #include #include -#include +#include #include diff --git a/tests/core/usage/MockDb.h b/tests/core/usage/MockDb.h index 6d6679b0..6c35294b 100644 --- a/tests/core/usage/MockDb.h +++ b/tests/core/usage/MockDb.h @@ -29,7 +29,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/tests/postgresql/usage/Exceptions.cpp b/tests/postgresql/usage/Exceptions.cpp index 58d89325..bf3aeec9 100644 --- a/tests/postgresql/usage/Exceptions.cpp +++ b/tests/postgresql/usage/Exceptions.cpp @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include "assertThrow.h"