From a085d730c90b7494808f088802db91a59801910d Mon Sep 17 00:00:00 2001 From: MeanSquaredError <35379301+MeanSquaredError@users.noreply.github.com> Date: Tue, 25 Jul 2023 08:00:05 +0300 Subject: [PATCH] Replace include guards with "#pragma once" in all header files and in the database model generator scripts. (#506) --- connector_api/bind_result.h | 6 ++---- connector_api/connection.h | 7 ++----- connector_api/interpreter.h | 7 ++----- connector_api/prepared_statement.h | 6 ++---- include/sqlpp11/aggregate_function_operators.h | 7 ++----- include/sqlpp11/aggregate_functions.h | 7 ++----- include/sqlpp11/aggregate_functions/avg.h | 7 ++----- include/sqlpp11/aggregate_functions/count.h | 7 ++----- include/sqlpp11/aggregate_functions/max.h | 7 ++----- include/sqlpp11/aggregate_functions/min.h | 7 ++----- include/sqlpp11/aggregate_functions/sum.h | 7 ++----- include/sqlpp11/alias.h | 7 ++----- include/sqlpp11/alias_operators.h | 6 ++---- include/sqlpp11/alias_provider.h | 7 ++----- include/sqlpp11/all_of.h | 7 ++----- include/sqlpp11/any.h | 7 ++----- include/sqlpp11/assignment.h | 7 ++----- include/sqlpp11/auto_alias.h | 7 ++----- include/sqlpp11/bad_expression.h | 7 ++----- include/sqlpp11/basic_expression_operators.h | 7 ++----- include/sqlpp11/boolean_expression.h | 7 ++----- include/sqlpp11/case.h | 7 ++----- include/sqlpp11/char_sequence.h | 7 ++----- include/sqlpp11/chrono.h | 7 ++----- include/sqlpp11/column.h | 7 ++----- include/sqlpp11/column_fwd.h | 7 ++----- include/sqlpp11/column_types.h | 7 ++----- include/sqlpp11/connection.h | 7 ++----- include/sqlpp11/consistent.h | 7 ++----- include/sqlpp11/cte.h | 7 ++----- include/sqlpp11/custom_query.h | 6 ++---- include/sqlpp11/data_types.h | 7 ++----- include/sqlpp11/data_types/blob.h | 7 ++----- include/sqlpp11/data_types/blob/column_operators.h | 6 ++---- include/sqlpp11/data_types/blob/data_type.h | 6 ++---- include/sqlpp11/data_types/blob/expression_operators.h | 6 ++---- include/sqlpp11/data_types/blob/operand.h | 6 ++---- include/sqlpp11/data_types/blob/parameter_value.h | 6 ++---- include/sqlpp11/data_types/blob/result_field.h | 6 ++---- include/sqlpp11/data_types/blob/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/boolean.h | 7 ++----- include/sqlpp11/data_types/boolean/column_operators.h | 6 ++---- include/sqlpp11/data_types/boolean/data_type.h | 7 ++----- include/sqlpp11/data_types/boolean/expression_operators.h | 7 ++----- include/sqlpp11/data_types/boolean/operand.h | 7 ++----- include/sqlpp11/data_types/boolean/parameter_value.h | 7 ++----- include/sqlpp11/data_types/boolean/result_field.h | 7 ++----- include/sqlpp11/data_types/boolean/wrap_operand.h | 7 ++----- include/sqlpp11/data_types/column_operators.h | 7 ++----- include/sqlpp11/data_types/day_point.h | 7 ++----- include/sqlpp11/data_types/day_point/column_operators.h | 6 ++---- include/sqlpp11/data_types/day_point/data_type.h | 6 ++---- .../sqlpp11/data_types/day_point/expression_operators.h | 6 ++---- include/sqlpp11/data_types/day_point/operand.h | 6 ++---- include/sqlpp11/data_types/day_point/parameter_value.h | 6 ++---- include/sqlpp11/data_types/day_point/result_field.h | 6 ++---- include/sqlpp11/data_types/day_point/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/floating_point.h | 7 ++----- .../sqlpp11/data_types/floating_point/column_operators.h | 6 ++---- include/sqlpp11/data_types/floating_point/data_type.h | 6 ++---- .../data_types/floating_point/expression_operators.h | 6 ++---- include/sqlpp11/data_types/floating_point/operand.h | 6 ++---- .../sqlpp11/data_types/floating_point/parameter_value.h | 6 ++---- include/sqlpp11/data_types/floating_point/result_field.h | 6 ++---- include/sqlpp11/data_types/floating_point/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/integral.h | 7 ++----- include/sqlpp11/data_types/integral/column_operators.h | 7 ++----- include/sqlpp11/data_types/integral/data_type.h | 6 ++---- .../sqlpp11/data_types/integral/expression_operators.h | 6 ++---- include/sqlpp11/data_types/integral/operand.h | 7 ++----- include/sqlpp11/data_types/integral/parameter_value.h | 6 ++---- include/sqlpp11/data_types/integral/result_field.h | 6 ++---- include/sqlpp11/data_types/integral/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/no_value.h | 7 ++----- include/sqlpp11/data_types/no_value/column_operators.h | 6 ++---- include/sqlpp11/data_types/no_value/data_type.h | 7 ++----- .../sqlpp11/data_types/no_value/expression_operators.h | 7 ++----- include/sqlpp11/data_types/no_value/operand.h | 7 ++----- include/sqlpp11/data_types/no_value/parameter_value.h | 7 ++----- include/sqlpp11/data_types/no_value/result_field.h | 7 ++----- include/sqlpp11/data_types/no_value/wrap_operand.h | 7 ++----- include/sqlpp11/data_types/parameter_value.h | 7 ++----- include/sqlpp11/data_types/parameter_value_base.h | 6 ++---- include/sqlpp11/data_types/text.h | 7 ++----- include/sqlpp11/data_types/text/column_operators.h | 6 ++---- include/sqlpp11/data_types/text/concat.h | 7 ++----- include/sqlpp11/data_types/text/data_type.h | 6 ++---- include/sqlpp11/data_types/text/expression_operators.h | 6 ++---- include/sqlpp11/data_types/text/like.h | 7 ++----- include/sqlpp11/data_types/text/operand.h | 6 ++---- include/sqlpp11/data_types/text/parameter_value.h | 6 ++---- include/sqlpp11/data_types/text/result_field.h | 6 ++---- include/sqlpp11/data_types/text/return_type_like.h | 7 ++----- include/sqlpp11/data_types/text/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/time_of_day.h | 7 ++----- include/sqlpp11/data_types/time_of_day/column_operators.h | 6 ++---- include/sqlpp11/data_types/time_of_day/data_type.h | 6 ++---- .../sqlpp11/data_types/time_of_day/expression_operators.h | 6 ++---- include/sqlpp11/data_types/time_of_day/operand.h | 6 ++---- include/sqlpp11/data_types/time_of_day/parameter_value.h | 6 ++---- include/sqlpp11/data_types/time_of_day/result_field.h | 6 ++---- include/sqlpp11/data_types/time_of_day/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/time_point.h | 7 ++----- include/sqlpp11/data_types/time_point/column_operators.h | 6 ++---- include/sqlpp11/data_types/time_point/data_type.h | 6 ++---- .../sqlpp11/data_types/time_point/expression_operators.h | 6 ++---- include/sqlpp11/data_types/time_point/operand.h | 6 ++---- include/sqlpp11/data_types/time_point/parameter_value.h | 6 ++---- include/sqlpp11/data_types/time_point/result_field.h | 6 ++---- include/sqlpp11/data_types/time_point/wrap_operand.h | 6 ++---- include/sqlpp11/data_types/unsigned_integral.h | 7 ++----- .../data_types/unsigned_integral/column_operators.h | 7 ++----- include/sqlpp11/data_types/unsigned_integral/data_type.h | 6 ++---- .../data_types/unsigned_integral/expression_operators.h | 6 ++---- include/sqlpp11/data_types/unsigned_integral/operand.h | 7 ++----- .../data_types/unsigned_integral/parameter_value.h | 6 ++---- .../sqlpp11/data_types/unsigned_integral/result_field.h | 6 ++---- .../sqlpp11/data_types/unsigned_integral/wrap_operand.h | 6 ++---- include/sqlpp11/default_value.h | 7 ++----- include/sqlpp11/detail/column_tuple_merge.h | 7 ++----- include/sqlpp11/detail/enable_if.h | 7 ++----- include/sqlpp11/detail/float_safe_ostringstream.h | 7 ++----- include/sqlpp11/detail/get_first.h | 7 ++----- include/sqlpp11/detail/get_last.h | 7 ++----- include/sqlpp11/detail/index_sequence.h | 7 ++----- include/sqlpp11/detail/pick_arg.h | 7 ++----- include/sqlpp11/detail/type_set.h | 7 ++----- include/sqlpp11/detail/type_vector.h | 7 ++----- include/sqlpp11/detail/void.h | 7 ++----- include/sqlpp11/dynamic_join.h | 7 ++----- include/sqlpp11/dynamic_pre_join.h | 7 ++----- include/sqlpp11/dynamic_select_column_list.h | 7 ++----- include/sqlpp11/eval.h | 7 ++----- include/sqlpp11/exception.h | 7 ++----- include/sqlpp11/exists.h | 7 ++----- include/sqlpp11/expression.h | 7 ++----- include/sqlpp11/expression_fwd.h | 7 ++----- include/sqlpp11/expression_operators.h | 7 ++----- include/sqlpp11/expression_return_types.h | 7 ++----- include/sqlpp11/field_spec.h | 7 ++----- include/sqlpp11/for_update.h | 7 ++----- include/sqlpp11/from.h | 7 ++----- include/sqlpp11/functions.h | 7 ++----- include/sqlpp11/group_by.h | 7 ++----- include/sqlpp11/having.h | 7 ++----- include/sqlpp11/hidden.h | 6 ++---- include/sqlpp11/in.h | 7 ++----- include/sqlpp11/in_fwd.h | 7 ++----- include/sqlpp11/inconsistent.h | 7 ++----- include/sqlpp11/insert.h | 7 ++----- include/sqlpp11/insert_value.h | 7 ++----- include/sqlpp11/insert_value_list.h | 7 ++----- include/sqlpp11/interpret_tuple.h | 7 ++----- include/sqlpp11/interpretable.h | 7 ++----- include/sqlpp11/interpretable_list.h | 7 ++----- include/sqlpp11/into.h | 7 ++----- include/sqlpp11/is_equal_to_or_null.h | 7 ++----- include/sqlpp11/is_not_null.h | 7 ++----- include/sqlpp11/is_null.h | 7 ++----- include/sqlpp11/is_null_fwd.h | 7 ++----- include/sqlpp11/join.h | 7 ++----- include/sqlpp11/join_types.h | 7 ++----- include/sqlpp11/limit.h | 7 ++----- include/sqlpp11/logic.h | 7 ++----- include/sqlpp11/lower.h | 7 ++----- include/sqlpp11/mysql/bind_result.h | 6 ++---- include/sqlpp11/mysql/char_result.h | 6 ++---- include/sqlpp11/mysql/char_result_row.h | 7 ++----- include/sqlpp11/mysql/connection.h | 7 ++----- include/sqlpp11/mysql/connection_config.h | 7 ++----- include/sqlpp11/mysql/mysql.h | 7 ++----- include/sqlpp11/mysql/prepared_statement.h | 6 ++---- include/sqlpp11/mysql/remove.h | 8 ++------ include/sqlpp11/mysql/serializer.h | 7 ++----- include/sqlpp11/mysql/sqlpp_mysql.h | 7 ++----- include/sqlpp11/mysql/update.h | 8 ++------ include/sqlpp11/named_interpretable.h | 7 ++----- include/sqlpp11/no_data.h | 6 ++---- include/sqlpp11/no_name.h | 6 ++---- include/sqlpp11/noop.h | 6 ++---- include/sqlpp11/noop_fwd.h | 6 ++---- include/sqlpp11/not_in.h | 7 ++----- include/sqlpp11/null.h | 7 ++----- include/sqlpp11/offset.h | 7 ++----- include/sqlpp11/on.h | 7 ++----- include/sqlpp11/operand_check.h | 7 ++----- include/sqlpp11/order_by.h | 7 ++----- include/sqlpp11/over.h | 7 ++----- include/sqlpp11/parameter.h | 7 ++----- include/sqlpp11/parameter_list.h | 7 ++----- include/sqlpp11/parameterized_verbatim.h | 7 ++----- include/sqlpp11/policy_update.h | 7 ++----- include/sqlpp11/portable_static_assert.h | 7 ++----- include/sqlpp11/postgresql/bind_result.h | 7 ++----- include/sqlpp11/postgresql/connection.h | 7 ++----- include/sqlpp11/postgresql/connection_config.h | 7 ++----- include/sqlpp11/postgresql/detail/connection_handle.h | 7 ++----- .../sqlpp11/postgresql/detail/prepared_statement_handle.h | 7 ++----- include/sqlpp11/postgresql/dynamic_libpq.h | 7 ++----- include/sqlpp11/postgresql/exception.h | 7 ++----- include/sqlpp11/postgresql/insert.h | 7 ++----- include/sqlpp11/postgresql/on_conflict.h | 7 ++----- include/sqlpp11/postgresql/on_conflict_do_nothing.h | 7 ++----- include/sqlpp11/postgresql/on_conflict_do_update.h | 7 ++----- include/sqlpp11/postgresql/postgresql.h | 7 ++----- include/sqlpp11/postgresql/prepared_statement.h | 7 ++----- include/sqlpp11/postgresql/result.h | 7 ++----- include/sqlpp11/postgresql/result_field.h | 6 ++---- include/sqlpp11/postgresql/returning.h | 7 ++----- include/sqlpp11/postgresql/returning_column_list.h | 7 ++----- include/sqlpp11/postgresql/serializer.h | 7 ++----- include/sqlpp11/postgresql/update.h | 7 ++----- include/sqlpp11/postgresql/visibility.h | 7 ++----- include/sqlpp11/ppgen.h | 7 ++----- include/sqlpp11/ppgen/colops/auto_increment.h | 7 ++----- include/sqlpp11/ppgen/colops/blob.h | 7 ++----- include/sqlpp11/ppgen/colops/bool.h | 7 ++----- include/sqlpp11/ppgen/colops/comment.h | 7 ++----- include/sqlpp11/ppgen/colops/datetime.h | 7 ++----- include/sqlpp11/ppgen/colops/default.h | 7 ++----- include/sqlpp11/ppgen/colops/floating_point.h | 7 ++----- include/sqlpp11/ppgen/colops/foreign_key.h | 7 ++----- include/sqlpp11/ppgen/colops/index.h | 7 ++----- include/sqlpp11/ppgen/colops/integer.h | 7 ++----- include/sqlpp11/ppgen/colops/not_null.h | 7 ++----- include/sqlpp11/ppgen/colops/null.h | 7 ++----- include/sqlpp11/ppgen/colops/primary_key.h | 7 ++----- include/sqlpp11/ppgen/colops/text.h | 7 ++----- include/sqlpp11/ppgen/colops/timestamp.h | 7 ++----- include/sqlpp11/ppgen/colops/unique_index.h | 7 ++----- include/sqlpp11/ppgen/colops/unsigned_integer.h | 7 ++----- include/sqlpp11/ppgen/colops/varchar.h | 7 ++----- include/sqlpp11/ppgen/tblops/character_set.h | 7 ++----- include/sqlpp11/ppgen/tblops/comment.h | 7 ++----- include/sqlpp11/ppgen/tblops/default.h | 7 ++----- include/sqlpp11/ppgen/tblops/engine.h | 7 ++----- include/sqlpp11/ppgen/tools/wrap_seq.h | 7 ++----- include/sqlpp11/pre_join.h | 7 ++----- include/sqlpp11/prepared_execute.h | 7 ++----- include/sqlpp11/prepared_insert.h | 7 ++----- include/sqlpp11/prepared_remove.h | 7 ++----- include/sqlpp11/prepared_select.h | 7 ++----- include/sqlpp11/prepared_update.h | 7 ++----- include/sqlpp11/remove.h | 7 ++----- include/sqlpp11/result.h | 7 ++----- include/sqlpp11/result_field.h | 6 ++---- include/sqlpp11/result_field_base.h | 6 ++---- include/sqlpp11/result_row.h | 7 ++----- include/sqlpp11/result_row_fwd.h | 7 ++----- include/sqlpp11/schema.h | 7 ++----- include/sqlpp11/schema_qualified_table.h | 7 ++----- include/sqlpp11/select.h | 6 ++---- include/sqlpp11/select_column_list.h | 7 ++----- include/sqlpp11/select_flag_list.h | 7 ++----- include/sqlpp11/select_flags.h | 7 ++----- include/sqlpp11/select_pseudo_table.h | 7 ++----- include/sqlpp11/serialize.h | 7 ++----- include/sqlpp11/serializer_context.h | 7 ++----- include/sqlpp11/simple_column.h | 7 ++----- include/sqlpp11/single_table.h | 7 ++----- include/sqlpp11/some.h | 7 ++----- include/sqlpp11/sort_order.h | 7 ++----- include/sqlpp11/sqlite3/bind_result.h | 7 ++----- include/sqlpp11/sqlite3/connection.h | 7 ++----- include/sqlpp11/sqlite3/connection_config.h | 7 ++----- include/sqlpp11/sqlite3/dynamic_libsqlite3.h | 5 ++--- include/sqlpp11/sqlite3/export.h | 5 +---- include/sqlpp11/sqlite3/insert_or.h | 7 ++----- include/sqlpp11/sqlite3/prepared_statement.h | 7 ++----- include/sqlpp11/sqlite3/prepared_statement_handle.h | 7 ++----- include/sqlpp11/sqlite3/serializer.h | 7 ++----- include/sqlpp11/sqlite3/sqlite3.h | 7 ++----- include/sqlpp11/sqlpp11.h | 7 ++----- include/sqlpp11/statement.h | 7 ++----- include/sqlpp11/statement_fwd.h | 7 ++----- include/sqlpp11/table.h | 7 ++----- include/sqlpp11/table_alias.h | 7 ++----- include/sqlpp11/table_ref.h | 7 ++----- include/sqlpp11/transaction.h | 7 ++----- include/sqlpp11/trim.h | 7 ++----- include/sqlpp11/type_traits.h | 7 ++----- include/sqlpp11/unconditional.h | 6 ++---- include/sqlpp11/union.h | 7 ++----- include/sqlpp11/union_data.h | 7 ++----- include/sqlpp11/union_flags.h | 7 ++----- include/sqlpp11/update.h | 7 ++----- include/sqlpp11/update_list.h | 7 ++----- include/sqlpp11/upper.h | 7 ++----- include/sqlpp11/using.h | 7 ++----- include/sqlpp11/value.h | 7 ++----- include/sqlpp11/value_or_null.h | 7 ++----- include/sqlpp11/value_type.h | 6 ++---- include/sqlpp11/value_type_fwd.h | 7 ++----- include/sqlpp11/verbatim.h | 7 ++----- include/sqlpp11/verbatim_table.h | 7 ++----- include/sqlpp11/where.h | 7 ++----- include/sqlpp11/with.h | 7 ++----- include/sqlpp11/without_table_check.h | 5 +---- include/sqlpp11/wrap_operand.h | 7 ++----- include/sqlpp11/wrong.h | 6 ++---- scripts/ddl2cpp | 5 ++--- scripts/sqlite2cpp.py | 5 ++--- tests/core/serialize/compare.h | 7 ++----- tests/core/static_asserts/AssertTables.h | 5 ++--- tests/core/usage/MockDb.h | 7 ++----- tests/core/usage/Sample.h | 4 +--- tests/core/usage/is_regular.h | 7 ++----- tests/mysql/serialize/compare.h | 7 ++----- tests/mysql/usage/TabJson.h | 5 ++--- tests/mysql/usage/TabSample.h | 7 ++----- tests/postgresql/serialize/compare.h | 7 ++----- tests/postgresql/usage/BlobSample.h | 5 ++--- tests/postgresql/usage/TabBar.h | 5 +---- tests/postgresql/usage/TabDateTime.h | 5 +---- tests/postgresql/usage/TabFoo.h | 5 +---- tests/postgresql/usage/TabSample.h | 7 ++----- tests/postgresql/usage/assertThrow.h | 5 +---- tests/postgresql/usage/make_test_connection.h | 8 ++------ tests/sqlite3/serialize/compare.h | 7 ++----- tests/sqlite3/usage/BlobSample.h | 5 ++--- tests/sqlite3/usage/FpSample.h | 6 ++---- tests/sqlite3/usage/IntegralSample.h | 5 +---- tests/sqlite3/usage/TabSample.h | 7 ++----- 323 files changed, 638 insertions(+), 1520 deletions(-) diff --git a/connector_api/bind_result.h b/connector_api/bind_result.h index c269b925..17df579b 100644 --- a/connector_api/bind_result.h +++ b/connector_api/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_BIND_RESULT_H -#define SQLPP_DATABASE_BIND_RESULT_H - #include namespace sqlpp @@ -88,4 +87,3 @@ namespace sqlpp }; } } -#endif diff --git a/connector_api/connection.h b/connector_api/connection.h index cb594b55..49dc75c7 100644 --- a/connector_api/connection.h +++ b/connector_api/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_CONNECTION_H -#define SQLPP_DATABASE_CONNECTION_H - #include #include #include @@ -223,5 +222,3 @@ namespace sqlpp } // namespace sqlpp #include - -#endif diff --git a/connector_api/interpreter.h b/connector_api/interpreter.h index fd694635..8f02da11 100644 --- a/connector_api/interpreter.h +++ b/connector_api/interpreter.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_INTERPRETER_H -#define SQLPP_DATABASE_INTERPRETER_H - #include #include @@ -57,5 +56,3 @@ namespace sqlpp }; } } - -#endif diff --git a/connector_api/prepared_statement.h b/connector_api/prepared_statement.h index 7a329788..f7196148 100644 --- a/connector_api/prepared_statement.h +++ b/connector_api/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_DATABASE_PREPARED_STATEMENT_H -#define SQLPP_DATABASE_PREPARED_STATEMENT_H - #include #include @@ -56,4 +55,3 @@ namespace sqlpp }; } } -#endif diff --git a/include/sqlpp11/aggregate_function_operators.h b/include/sqlpp11/aggregate_function_operators.h index 6e92ad4c..d090df4c 100644 --- a/include/sqlpp11/aggregate_function_operators.h +++ b/include/sqlpp11/aggregate_function_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -23,8 +25,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTION_OPERATORS_H -#define SQLPP11_AGGREGATE_FUNCTION_OPERATORS_H namespace sqlpp { @@ -37,6 +37,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif - diff --git a/include/sqlpp11/aggregate_functions.h b/include/sqlpp11/aggregate_functions.h index d2904b96..f39903e2 100644 --- a/include/sqlpp11/aggregate_functions.h +++ b/include/sqlpp11/aggregate_functions.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_H -#define SQLPP11_AGGREGATE_FUNCTIONS_H - #include #include #include #include #include - -#endif diff --git a/include/sqlpp11/aggregate_functions/avg.h b/include/sqlpp11/aggregate_functions/avg.h index b530ae35..158760ee 100644 --- a/include/sqlpp11/aggregate_functions/avg.h +++ b/include/sqlpp11/aggregate_functions/avg.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_AVG_H -#define SQLPP11_AGGREGATE_FUNCTIONS_AVG_H - #include #include @@ -115,5 +114,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/count.h b/include/sqlpp11/aggregate_functions/count.h index ea8a6131..cf77e23a 100644 --- a/include/sqlpp11/aggregate_functions/count.h +++ b/include/sqlpp11/aggregate_functions/count.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_COUNT_H -#define SQLPP11_AGGREGATE_FUNCTIONS_COUNT_H - #include #include #include @@ -118,5 +117,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/max.h b/include/sqlpp11/aggregate_functions/max.h index 7ca55351..b6d72273 100644 --- a/include/sqlpp11/aggregate_functions/max.h +++ b/include/sqlpp11/aggregate_functions/max.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_MAX_H -#define SQLPP11_AGGREGATE_FUNCTIONS_MAX_H - #include #include @@ -111,5 +110,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/min.h b/include/sqlpp11/aggregate_functions/min.h index 14b8e706..d3bb8250 100644 --- a/include/sqlpp11/aggregate_functions/min.h +++ b/include/sqlpp11/aggregate_functions/min.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_MIN_H -#define SQLPP11_AGGREGATE_FUNCTIONS_MIN_H - #include #include @@ -111,5 +110,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/aggregate_functions/sum.h b/include/sqlpp11/aggregate_functions/sum.h index 5511ca33..05f5866e 100644 --- a/include/sqlpp11/aggregate_functions/sum.h +++ b/include/sqlpp11/aggregate_functions/sum.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AGGREGATE_FUNCTIONS_SUM_H -#define SQLPP11_AGGREGATE_FUNCTIONS_SUM_H - #include #include @@ -115,5 +114,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/alias.h b/include/sqlpp11/alias.h index 328ce5b9..e0df5ba8 100644 --- a/include/sqlpp11/alias.h +++ b/include/sqlpp11/alias.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALIAS_H -#define SQLPP11_ALIAS_H - #include namespace sqlpp @@ -64,5 +63,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/alias_operators.h b/include/sqlpp11/alias_operators.h index da318f19..023a4ec6 100644 --- a/include/sqlpp11/alias_operators.h +++ b/include/sqlpp11/alias_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALIAS_OPERATORS_H -#define SQLPP11_ALIAS_OPERATORS_H - #include namespace sqlpp @@ -41,4 +40,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/alias_provider.h b/include/sqlpp11/alias_provider.h index 7982193a..d3e2535f 100644 --- a/include/sqlpp11/alias_provider.h +++ b/include/sqlpp11/alias_provider.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALIAS_PROVIDER_H -#define SQLPP11_ALIAS_PROVIDER_H - #include #include @@ -126,5 +125,3 @@ namespace sqlpp SQLPP_ALIAS_PROVIDER(right) } // namespace alias } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/all_of.h b/include/sqlpp11/all_of.h index 373792f0..61dec814 100644 --- a/include/sqlpp11/all_of.h +++ b/include/sqlpp11/all_of.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ALL_OF_H -#define SQLPP11_ALL_OF_H - namespace sqlpp { template @@ -35,5 +34,3 @@ namespace sqlpp return {}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/any.h b/include/sqlpp11/any.h index 0535f644..e7ee88e8 100644 --- a/include/sqlpp11/any.h +++ b/include/sqlpp11/any.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ANY_H -#define SQLPP11_ANY_H - #include #include #include @@ -70,5 +69,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/assignment.h b/include/sqlpp11/assignment.h index 469acd96..5fc5872d 100644 --- a/include/sqlpp11/assignment.h +++ b/include/sqlpp11/assignment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ASSIGNMENT_H -#define SQLPP11_ASSIGNMENT_H - #include #include #include @@ -69,5 +68,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/auto_alias.h b/include/sqlpp11/auto_alias.h index f54628c5..831ea387 100644 --- a/include/sqlpp11/auto_alias.h +++ b/include/sqlpp11/auto_alias.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_AUTO_ALIAS_H -#define SQLPP11_AUTO_ALIAS_H - #include namespace sqlpp @@ -61,5 +60,3 @@ namespace sqlpp template using auto_alias_t = typename detail::auto_alias_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/bad_expression.h b/include/sqlpp11/bad_expression.h index 97aaca9d..7e0a88fe 100644 --- a/include/sqlpp11/bad_expression.h +++ b/include/sqlpp11/bad_expression.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_BAD_EXPRESSION_H -#define SQLPP11_BAD_EXPRESSION_H - #include #include @@ -48,5 +47,3 @@ namespace sqlpp template Context serialize(const bad_expression& t, Context& context); } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/basic_expression_operators.h b/include/sqlpp11/basic_expression_operators.h index 637d807d..27e56a71 100644 --- a/include/sqlpp11/basic_expression_operators.h +++ b/include/sqlpp11/basic_expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * Copyright (c) 2016, Aaron Bishop @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_BASIC_EXPRESSION_OPERATORS_H -#define SQLPP11_BASIC_EXPRESSION_OPERATORS_H - #include #include #include @@ -315,5 +314,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/boolean_expression.h b/include/sqlpp11/boolean_expression.h index d4580710..f8f4de99 100644 --- a/include/sqlpp11/boolean_expression.h +++ b/include/sqlpp11/boolean_expression.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_BOOLEAN_EXPRESSION_H -#define SQLPP11_BOOLEAN_EXPRESSION_H - #include #include @@ -73,5 +72,3 @@ namespace sqlpp return serialize(t._expr, context); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/case.h b/include/sqlpp11/case.h index 12b0e2ae..d9f83ee2 100644 --- a/include/sqlpp11/case.h +++ b/include/sqlpp11/case.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CASE_H -#define SQLPP11_CASE_H - #include #include #include @@ -181,5 +180,3 @@ namespace sqlpp return detail::case_when_impl(check_case_when_t{}, when); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/char_sequence.h b/include/sqlpp11/char_sequence.h index 2e6b51c8..2b6034c4 100644 --- a/include/sqlpp11/char_sequence.h +++ b/include/sqlpp11/char_sequence.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CHAR_SEQUENCE_H -#define SQLPP11_CHAR_SEQUENCE_H - #include #include @@ -75,5 +74,3 @@ namespace sqlpp typename make_char_sequence_impl>::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/chrono.h b/include/sqlpp11/chrono.h index 8ad24142..16c6f159 100644 --- a/include/sqlpp11/chrono.h +++ b/include/sqlpp11/chrono.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CHRONO_H -#define SQLPP11_CHRONO_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp } } // namespace chrono } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/column.h b/include/sqlpp11/column.h index 7b347ad7..ee487724 100644 --- a/include/sqlpp11/column.h +++ b/include/sqlpp11/column.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_H -#define SQLPP11_COLUMN_H - #include #include #include @@ -118,5 +117,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/column_fwd.h b/include/sqlpp11/column_fwd.h index 68f025ca..bda6c6d2 100644 --- a/include/sqlpp11/column_fwd.h +++ b/include/sqlpp11/column_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_FWD_H -#define SQLPP11_COLUMN_FWD_H - namespace sqlpp { template struct column_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/column_types.h b/include/sqlpp11/column_types.h index ed779981..ccd7a130 100644 --- a/include/sqlpp11/column_types.h +++ b/include/sqlpp11/column_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,4 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_COLUMN_TYPES_H -#define SQLPP_COLUMN_TYPES_H - #include - -#endif diff --git a/include/sqlpp11/connection.h b/include/sqlpp11/connection.h index f870fc47..2291c2ea 100644 --- a/include/sqlpp11/connection.h +++ b/include/sqlpp11/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CONNECTION_H -#define SQLPP11_CONNECTION_H - #include #include @@ -156,5 +155,3 @@ namespace sqlpp } } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/consistent.h b/include/sqlpp11/consistent.h index a83db633..e55c20c8 100644 --- a/include/sqlpp11/consistent.h +++ b/include/sqlpp11/consistent.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CONSISTENT_H -#define SQLPP11_CONSISTENT_H - #include namespace sqlpp @@ -39,5 +38,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/cte.h b/include/sqlpp11/cte.h index 2fd4a9d4..e151e8ed 100644 --- a/include/sqlpp11/cte.h +++ b/include/sqlpp11/cte.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CTE_H -#define SQLPP11_CTE_H - #include #include #include @@ -274,5 +273,3 @@ namespace sqlpp return {}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/custom_query.h b/include/sqlpp11/custom_query.h index 1f217b15..419c7e80 100644 --- a/include/sqlpp11/custom_query.h +++ b/include/sqlpp11/custom_query.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_CUSTOM_QUERY_H -#define SQLPP11_CUSTOM_QUERY_H - #include #include #include @@ -146,4 +145,3 @@ namespace sqlpp return custom_query_t...>(parts...); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types.h b/include/sqlpp11/data_types.h index b447a214..feae0446 100644 --- a/include/sqlpp11/data_types.h +++ b/include/sqlpp11/data_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_H -#define SQLPP11_DATA_TYPES_H - #include #include #include @@ -37,5 +36,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/blob.h b/include/sqlpp11/data_types/blob.h index 3196dd31..3998491f 100644 --- a/include/sqlpp11/data_types/blob.h +++ b/include/sqlpp11/data_types/blob.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_H -#define SQLPP_BLOB_H - #include #include #include @@ -38,5 +37,3 @@ // blob specific functions #include #include - -#endif diff --git a/include/sqlpp11/data_types/blob/column_operators.h b/include/sqlpp11/data_types/blob/column_operators.h index f2652c36..54fa7d34 100644 --- a/include/sqlpp11/data_types/blob/column_operators.h +++ b/include/sqlpp11/data_types/blob/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_COLUMN_OPERATORS_H -#define SQLPP_BLOB_COLUMN_OPERATORS_H - #include #include #include @@ -54,4 +53,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/data_type.h b/include/sqlpp11/data_types/blob/data_type.h index 2758a761..04d3ab98 100644 --- a/include/sqlpp11/data_types/blob/data_type.h +++ b/include/sqlpp11/data_types/blob/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_DATA_TYPE_H -#define SQLPP_BLOB_DATA_TYPE_H - #include #include @@ -47,4 +46,3 @@ namespace sqlpp using blob = blob; using mediumblob = blob; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/expression_operators.h b/include/sqlpp11/data_types/blob/expression_operators.h index 210c57f6..da1d2767 100644 --- a/include/sqlpp11/data_types/blob/expression_operators.h +++ b/include/sqlpp11/data_types/blob/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_EXPRESSION_OPERATORS_H -#define SQLPP_BLOB_EXPRESSION_OPERATORS_H - #include #include #include @@ -67,4 +66,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/operand.h b/include/sqlpp11/data_types/blob/operand.h index 5f95e001..5bd0cdec 100644 --- a/include/sqlpp11/data_types/blob/operand.h +++ b/include/sqlpp11/data_types/blob/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_OPERAND_H -#define SQLPP_BLOB_OPERAND_H - #include #include #include @@ -79,4 +78,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/parameter_value.h b/include/sqlpp11/data_types/blob/parameter_value.h index f36cd311..036de3d7 100644 --- a/include/sqlpp11/data_types/blob/parameter_value.h +++ b/include/sqlpp11/data_types/blob/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_PARAMETER_VALUE_H -#define SQLPP_BLOB_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/result_field.h b/include/sqlpp11/data_types/blob/result_field.h index 6839fc58..9e911a99 100644 --- a/include/sqlpp11/data_types/blob/result_field.h +++ b/include/sqlpp11/data_types/blob/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_RESULT_FIELD_H -#define SQLPP_BLOB_RESULT_FIELD_H - #include #include #include @@ -83,4 +82,3 @@ namespace sqlpp } } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/blob/wrap_operand.h b/include/sqlpp11/data_types/blob/wrap_operand.h index cdfd8c92..a0fd7934 100644 --- a/include/sqlpp11/data_types/blob/wrap_operand.h +++ b/include/sqlpp11/data_types/blob/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_BLOB_WRAP_OPERAND_H -#define SQLPP_BLOB_WRAP_OPERAND_H - #include #include #include @@ -48,4 +47,3 @@ namespace sqlpp using type = blob_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/boolean.h b/include/sqlpp11/data_types/boolean.h index 67b5aa2e..794f2156 100644 --- a/include/sqlpp11/data_types/boolean.h +++ b/include/sqlpp11/data_types/boolean.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_H -#define SQLPP11_DATA_TYPES_BOOLEAN_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/boolean/column_operators.h b/include/sqlpp11/data_types/boolean/column_operators.h index 3175a676..52e294f1 100644 --- a/include/sqlpp11/data_types/boolean/column_operators.h +++ b/include/sqlpp11/data_types/boolean/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_BOOLEAN_COLUMN_OPERATORS_H - #include namespace sqlpp @@ -38,4 +37,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/boolean/data_type.h b/include/sqlpp11/data_types/boolean/data_type.h index dc8929db..5414c6f7 100644 --- a/include/sqlpp11/data_types/boolean/data_type.h +++ b/include/sqlpp11/data_types/boolean/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_BOOLEAN_DATA_TYPE_H - #include namespace sqlpp @@ -42,5 +41,3 @@ namespace sqlpp using bit = sqlpp::boolean; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/expression_operators.h b/include/sqlpp11/data_types/boolean/expression_operators.h index 246f56a0..06893154 100644 --- a/include/sqlpp11/data_types/boolean/expression_operators.h +++ b/include/sqlpp11/data_types/boolean/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_BOOLEAN_EXPRESSION_OPERATORS_H - #include #include #include @@ -60,5 +59,3 @@ namespace sqlpp using type = logical_not_t>; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/operand.h b/include/sqlpp11/data_types/boolean/operand.h index 0aa852a9..b22c7820 100644 --- a/include/sqlpp11/data_types/boolean/operand.h +++ b/include/sqlpp11/data_types/boolean/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_OPERAND_H -#define SQLPP11_DATA_TYPES_BOOLEAN_OPERAND_H - #include // Required for some compilers to use aliases for boolean operators #include @@ -68,5 +67,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/parameter_value.h b/include/sqlpp11/data_types/boolean/parameter_value.h index 0e854abe..60436f16 100644 --- a/include/sqlpp11/data_types/boolean/parameter_value.h +++ b/include/sqlpp11/data_types/boolean/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_BOOLEAN_PARAMETER_VALUE_H - #include #include #include @@ -47,5 +46,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/result_field.h b/include/sqlpp11/data_types/boolean/result_field.h index 6b4586ce..05178101 100644 --- a/include/sqlpp11/data_types/boolean/result_field.h +++ b/include/sqlpp11/data_types/boolean/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_BOOLEAN_RESULT_FIELD_H - #include #include #include @@ -52,5 +51,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/boolean/wrap_operand.h b/include/sqlpp11/data_types/boolean/wrap_operand.h index 3b66b452..918927f2 100644 --- a/include/sqlpp11/data_types/boolean/wrap_operand.h +++ b/include/sqlpp11/data_types/boolean/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_BOOLEAN_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_BOOLEAN_WRAP_OPERAND_H - #include namespace sqlpp @@ -39,5 +38,3 @@ namespace sqlpp using type = boolean_operand; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/column_operators.h b/include/sqlpp11/data_types/column_operators.h index 1273c465..5db03d87 100644 --- a/include/sqlpp11/data_types/column_operators.h +++ b/include/sqlpp11/data_types/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_COLUMN_OPERATORS_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp static_assert(wrong_t::value, "Missing column operators for ValueType"); }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/day_point.h b/include/sqlpp11/data_types/day_point.h index 7818e2c6..00aa96d5 100644 --- a/include/sqlpp11/data_types/day_point.h +++ b/include/sqlpp11/data_types/day_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_H -#define SQLPP11_DATA_TYPES_DAY_POINT_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/day_point/column_operators.h b/include/sqlpp11/data_types/day_point/column_operators.h index ea1fda0a..2219e331 100644 --- a/include/sqlpp11/data_types/day_point/column_operators.h +++ b/include/sqlpp11/data_types/day_point/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_DAY_POINT_COLUMN_OPERATORS_H - #include #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_valid_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/data_type.h b/include/sqlpp11/data_types/day_point/data_type.h index 0cddf09c..f342f395 100644 --- a/include/sqlpp11/data_types/day_point/data_type.h +++ b/include/sqlpp11/data_types/day_point/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_DAY_POINT_DATA_TYPE_H - #include #include @@ -45,4 +44,3 @@ namespace sqlpp using date = day_point; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/expression_operators.h b/include/sqlpp11/data_types/day_point/expression_operators.h index 2ff20718..33b6bb2a 100644 --- a/include/sqlpp11/data_types/day_point/expression_operators.h +++ b/include/sqlpp11/data_types/day_point/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_DAY_POINT_EXPRESSION_OPERATORS_H - #include #include #include @@ -39,4 +38,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/operand.h b/include/sqlpp11/data_types/day_point/operand.h index f47438fe..0444cf08 100644 --- a/include/sqlpp11/data_types/day_point/operand.h +++ b/include/sqlpp11/data_types/day_point/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_OPERAND_H -#define SQLPP11_DATA_TYPES_DAY_POINT_OPERAND_H - #include #include #include @@ -67,4 +66,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/parameter_value.h b/include/sqlpp11/data_types/day_point/parameter_value.h index 05077a11..4e7120af 100644 --- a/include/sqlpp11/data_types/day_point/parameter_value.h +++ b/include/sqlpp11/data_types/day_point/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_DAY_POINT_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/result_field.h b/include/sqlpp11/data_types/day_point/result_field.h index ad60b02f..d5e91258 100644 --- a/include/sqlpp11/data_types/day_point/result_field.h +++ b/include/sqlpp11/data_types/day_point/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_DAY_POINT_RESULT_FIELD_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp return os; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/day_point/wrap_operand.h b/include/sqlpp11/data_types/day_point/wrap_operand.h index 7e4f61c4..ead6d699 100644 --- a/include/sqlpp11/data_types/day_point/wrap_operand.h +++ b/include/sqlpp11/data_types/day_point/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_DAY_POINT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_DAY_POINT_WRAP_OPERAND_H - #include #include #include @@ -42,4 +41,3 @@ namespace sqlpp using type = day_point_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point.h b/include/sqlpp11/data_types/floating_point.h index 07ea8ae5..b01ff577 100644 --- a/include/sqlpp11/data_types/floating_point.h +++ b/include/sqlpp11/data_types/floating_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/floating_point/column_operators.h b/include/sqlpp11/data_types/floating_point/column_operators.h index 1949da6e..944ce037 100644 --- a/include/sqlpp11/data_types/floating_point/column_operators.h +++ b/include/sqlpp11/data_types/floating_point/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_COLUMN_OPERATORS_H - #include #include #include @@ -77,4 +76,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/data_type.h b/include/sqlpp11/data_types/floating_point/data_type.h index daacd358..7ad5d23d 100644 --- a/include/sqlpp11/data_types/floating_point/data_type.h +++ b/include/sqlpp11/data_types/floating_point/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_DATA_TYPE_H - #include namespace sqlpp @@ -40,4 +39,3 @@ namespace sqlpp using _is_valid_operand = is_numeric_t; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/expression_operators.h b/include/sqlpp11/data_types/floating_point/expression_operators.h index 063cf6e3..65a615ee 100644 --- a/include/sqlpp11/data_types/floating_point/expression_operators.h +++ b/include/sqlpp11/data_types/floating_point/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_EXPRESSION_OPERATORS_H - #include #include #include @@ -83,4 +82,3 @@ namespace sqlpp using type = unary_minus_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/operand.h b/include/sqlpp11/data_types/floating_point/operand.h index 44ee44ba..edc87109 100644 --- a/include/sqlpp11/data_types/floating_point/operand.h +++ b/include/sqlpp11/data_types/floating_point/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_OPERAND_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_OPERAND_H - #include #include @@ -64,4 +63,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/parameter_value.h b/include/sqlpp11/data_types/floating_point/parameter_value.h index beec2d37..4209db48 100644 --- a/include/sqlpp11/data_types/floating_point/parameter_value.h +++ b/include/sqlpp11/data_types/floating_point/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/result_field.h b/include/sqlpp11/data_types/floating_point/result_field.h index 4a267919..3ca41a5c 100644 --- a/include/sqlpp11/data_types/floating_point/result_field.h +++ b/include/sqlpp11/data_types/floating_point/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_RESULT_FIELD_H - #include #include #include @@ -53,4 +52,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/floating_point/wrap_operand.h b/include/sqlpp11/data_types/floating_point/wrap_operand.h index 3d79b160..88a007fc 100644 --- a/include/sqlpp11/data_types/floating_point/wrap_operand.h +++ b/include/sqlpp11/data_types/floating_point/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_FLOATING_POINT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_FLOATING_POINT_WRAP_OPERAND_H - #include #include @@ -40,4 +39,3 @@ namespace sqlpp using type = floating_point_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral.h b/include/sqlpp11/data_types/integral.h index 848df2b0..b6117ee9 100644 --- a/include/sqlpp11/data_types/integral.h +++ b/include/sqlpp11/data_types/integral.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_H -#define SQLPP11_DATA_TYPES_INTEGRAL_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/integral/column_operators.h b/include/sqlpp11/data_types/integral/column_operators.h index 9b017fb1..e3c5d2ab 100644 --- a/include/sqlpp11/data_types/integral/column_operators.h +++ b/include/sqlpp11/data_types/integral/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_INTEGRAL_COLUMN_OPERATORS_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/integral/data_type.h b/include/sqlpp11/data_types/integral/data_type.h index 957f8428..85198234 100644 --- a/include/sqlpp11/data_types/integral/data_type.h +++ b/include/sqlpp11/data_types/integral/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_INTEGRAL_DATA_TYPE_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp using integer = integral; using bigint = integral; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/expression_operators.h b/include/sqlpp11/data_types/integral/expression_operators.h index b8cd39a9..b0393f94 100644 --- a/include/sqlpp11/data_types/integral/expression_operators.h +++ b/include/sqlpp11/data_types/integral/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_INTEGRAL_EXPRESSION_OPERATORS_H - #include #include #include @@ -147,4 +146,3 @@ namespace sqlpp using type = shift_right_t, integral, wrap_operand_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/operand.h b/include/sqlpp11/data_types/integral/operand.h index 997342a8..9a615b02 100644 --- a/include/sqlpp11/data_types/integral/operand.h +++ b/include/sqlpp11/data_types/integral/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_OPERAND_H -#define SQLPP11_DATA_TYPES_INTEGRAL_OPERAND_H - #include #include @@ -66,5 +65,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/integral/parameter_value.h b/include/sqlpp11/data_types/integral/parameter_value.h index 244de247..a1125b3e 100644 --- a/include/sqlpp11/data_types/integral/parameter_value.h +++ b/include/sqlpp11/data_types/integral/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_INTEGRAL_PARAMETER_VALUE_H - #include #include #include @@ -47,4 +46,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/result_field.h b/include/sqlpp11/data_types/integral/result_field.h index e8051655..cdd3bae1 100644 --- a/include/sqlpp11/data_types/integral/result_field.h +++ b/include/sqlpp11/data_types/integral/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_INTEGRAL_RESULT_FIELD_H - #include #include #include @@ -52,4 +51,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/integral/wrap_operand.h b/include/sqlpp11/data_types/integral/wrap_operand.h index 7be263e2..ffdf46ab 100644 --- a/include/sqlpp11/data_types/integral/wrap_operand.h +++ b/include/sqlpp11/data_types/integral/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_INTEGRAL_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_INTEGRAL_WRAP_OPERAND_H - #include #include @@ -42,4 +41,3 @@ namespace sqlpp using type = integral_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/no_value.h b/include/sqlpp11/data_types/no_value.h index 55f454e0..17334540 100644 --- a/include/sqlpp11/data_types/no_value.h +++ b/include/sqlpp11/data_types/no_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_H -#define SQLPP11_DATA_TYPES_NO_VALUE_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/no_value/column_operators.h b/include/sqlpp11/data_types/no_value/column_operators.h index 10cf4ff8..8af777fd 100644 --- a/include/sqlpp11/data_types/no_value/column_operators.h +++ b/include/sqlpp11/data_types/no_value/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_NO_VALUE_COLUMN_OPERATORS_H - #include namespace sqlpp @@ -38,4 +37,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/no_value/data_type.h b/include/sqlpp11/data_types/no_value/data_type.h index 8deb6bed..601f0442 100644 --- a/include/sqlpp11/data_types/no_value/data_type.h +++ b/include/sqlpp11/data_types/no_value/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_NO_VALUE_DATA_TYPE_H - #include namespace sqlpp @@ -40,5 +39,3 @@ namespace sqlpp using _is_valid_operand = wrong_t; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/no_value/expression_operators.h b/include/sqlpp11/data_types/no_value/expression_operators.h index ffd1552a..6e94dc40 100644 --- a/include/sqlpp11/data_types/no_value/expression_operators.h +++ b/include/sqlpp11/data_types/no_value/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_NO_VALUE_EXPRESSION_OPERATORS_H - #include #include #include @@ -38,5 +37,3 @@ namespace sqlpp { }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/no_value/operand.h b/include/sqlpp11/data_types/no_value/operand.h index 625e40d8..bb44b612 100644 --- a/include/sqlpp11/data_types/no_value/operand.h +++ b/include/sqlpp11/data_types/no_value/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,8 +25,3 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_OPERAND_H -#define SQLPP11_DATA_TYPES_NO_VALUE_OPERAND_H - -#endif diff --git a/include/sqlpp11/data_types/no_value/parameter_value.h b/include/sqlpp11/data_types/no_value/parameter_value.h index 8c8f9916..bb44b612 100644 --- a/include/sqlpp11/data_types/no_value/parameter_value.h +++ b/include/sqlpp11/data_types/no_value/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,8 +25,3 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_NO_VALUE_PARAMETER_VALUE_H - -#endif diff --git a/include/sqlpp11/data_types/no_value/result_field.h b/include/sqlpp11/data_types/no_value/result_field.h index 8c677a15..f0783d83 100644 --- a/include/sqlpp11/data_types/no_value/result_field.h +++ b/include/sqlpp11/data_types/no_value/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_NO_VALUE_RESULT_FIELD_H - #include #include #include @@ -69,5 +68,3 @@ namespace sqlpp return os; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/no_value/wrap_operand.h b/include/sqlpp11/data_types/no_value/wrap_operand.h index 3814d04e..bb44b612 100644 --- a/include/sqlpp11/data_types/no_value/wrap_operand.h +++ b/include/sqlpp11/data_types/no_value/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,8 +25,3 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ - -#ifndef SQLPP11_DATA_TYPES_NO_VALUE_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_NO_VALUE_WRAP_OPERAND_H - -#endif diff --git a/include/sqlpp11/data_types/parameter_value.h b/include/sqlpp11/data_types/parameter_value.h index c5841f75..e8d2f0e2 100644 --- a/include/sqlpp11/data_types/parameter_value.h +++ b/include/sqlpp11/data_types/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_PARAMETER_VALUE_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp static_assert(wrong_t::value, "Missing parameter value type for ValueType"); }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/parameter_value_base.h b/include/sqlpp11/data_types/parameter_value_base.h index 1e45388e..ae688eb0 100644 --- a/include/sqlpp11/data_types/parameter_value_base.h +++ b/include/sqlpp11/data_types/parameter_value_base.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_PARAMETER_VALUE_BASE_H -#define SQLPP11_DATA_TYPES_PARAMETER_VALUE_BASE_H - #include #include @@ -90,4 +89,3 @@ namespace sqlpp bool _is_null; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text.h b/include/sqlpp11/data_types/text.h index 1d3d0df6..5824ac65 100644 --- a/include/sqlpp11/data_types/text.h +++ b/include/sqlpp11/data_types/text.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_H -#define SQLPP11_DATA_TYPES_TEXT_H - #include #include #include @@ -38,5 +37,3 @@ // text specific functions #include #include - -#endif diff --git a/include/sqlpp11/data_types/text/column_operators.h b/include/sqlpp11/data_types/text/column_operators.h index 8e1f7650..d6e29f9d 100644 --- a/include/sqlpp11/data_types/text/column_operators.h +++ b/include/sqlpp11/data_types/text/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_TEXT_COLUMN_OPERATORS_H - #include #include #include @@ -54,4 +53,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/concat.h b/include/sqlpp11/data_types/text/concat.h index f488f12b..4dc1b5f8 100644 --- a/include/sqlpp11/data_types/text/concat.h +++ b/include/sqlpp11/data_types/text/concat.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_CONCAT_H -#define SQLPP11_DATA_TYPES_TEXT_CONCAT_H - #include #include #include @@ -93,5 +92,3 @@ namespace sqlpp return {args...}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/text/data_type.h b/include/sqlpp11/data_types/text/data_type.h index de8fc0e1..6504b23c 100644 --- a/include/sqlpp11/data_types/text/data_type.h +++ b/include/sqlpp11/data_types/text/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_TEXT_DATA_TYPE_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp using binary = text; using varbinary = text; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/expression_operators.h b/include/sqlpp11/data_types/text/expression_operators.h index 7355af9a..08f40880 100644 --- a/include/sqlpp11/data_types/text/expression_operators.h +++ b/include/sqlpp11/data_types/text/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_TEXT_EXPRESSION_OPERATORS_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp using type = concat_t, wrap_operand_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/like.h b/include/sqlpp11/data_types/text/like.h index fc7e5710..e957c2b6 100644 --- a/include/sqlpp11/data_types/text/like.h +++ b/include/sqlpp11/data_types/text/like.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_LIKE_H -#define SQLPP11_DATA_TYPES_TEXT_LIKE_H - #include #include #include @@ -88,5 +87,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/text/operand.h b/include/sqlpp11/data_types/text/operand.h index 5a2d02e7..691307d0 100644 --- a/include/sqlpp11/data_types/text/operand.h +++ b/include/sqlpp11/data_types/text/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_OPERAND_H -#define SQLPP11_DATA_TYPES_TEXT_OPERAND_H - #include #include #if __cplusplus >= 201703L @@ -79,4 +78,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/parameter_value.h b/include/sqlpp11/data_types/text/parameter_value.h index 087bdda8..52fdeeaa 100644 --- a/include/sqlpp11/data_types/text/parameter_value.h +++ b/include/sqlpp11/data_types/text/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_TEXT_PARAMETER_VALUE_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp #endif }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/result_field.h b/include/sqlpp11/data_types/text/result_field.h index 01a3d0f5..e97c9be5 100644 --- a/include/sqlpp11/data_types/text/result_field.h +++ b/include/sqlpp11/data_types/text/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_TEXT_RESULT_FIELD_H - #include #include #include @@ -86,4 +85,3 @@ namespace sqlpp return os << e.value(); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/text/return_type_like.h b/include/sqlpp11/data_types/text/return_type_like.h index 087e2ca5..dab76a70 100644 --- a/include/sqlpp11/data_types/text/return_type_like.h +++ b/include/sqlpp11/data_types/text/return_type_like.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_RETURN_TYPE_LIKE_H -#define SQLPP_RETURN_TYPE_LIKE_H - #include namespace sqlpp @@ -40,5 +39,3 @@ namespace sqlpp template using return_type_like_t = typename return_type_like::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/text/wrap_operand.h b/include/sqlpp11/data_types/text/wrap_operand.h index 7a8f8a9f..00ea3bc9 100644 --- a/include/sqlpp11/data_types/text/wrap_operand.h +++ b/include/sqlpp11/data_types/text/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TEXT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_TEXT_WRAP_OPERAND_H - #include #if __cplusplus >= 201703L #include @@ -52,4 +51,3 @@ namespace sqlpp using type = text_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day.h b/include/sqlpp11/data_types/time_of_day.h index 62d7d2cd..d979197d 100644 --- a/include/sqlpp11/data_types/time_of_day.h +++ b/include/sqlpp11/data_types/time_of_day.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/time_of_day/column_operators.h b/include/sqlpp11/data_types/time_of_day/column_operators.h index f0e9f023..22197ed4 100644 --- a/include/sqlpp11/data_types/time_of_day/column_operators.h +++ b/include/sqlpp11/data_types/time_of_day/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_COLUMN_OPERATORS_H - #include #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_valid_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/data_type.h b/include/sqlpp11/data_types/time_of_day/data_type.h index 96881446..c132b8a8 100644 --- a/include/sqlpp11/data_types/time_of_day/data_type.h +++ b/include/sqlpp11/data_types/time_of_day/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_DATA_TYPE_H - #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_time_of_day_t; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/expression_operators.h b/include/sqlpp11/data_types/time_of_day/expression_operators.h index 388ae1d8..d596d4b6 100644 --- a/include/sqlpp11/data_types/time_of_day/expression_operators.h +++ b/include/sqlpp11/data_types/time_of_day/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_EXPRESSION_OPERATORS_H - #include #include #include @@ -40,4 +39,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/operand.h b/include/sqlpp11/data_types/time_of_day/operand.h index 9458aa66..d4926884 100644 --- a/include/sqlpp11/data_types/time_of_day/operand.h +++ b/include/sqlpp11/data_types/time_of_day/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_OPERAND_H - #include #include #include @@ -68,4 +67,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/parameter_value.h b/include/sqlpp11/data_types/time_of_day/parameter_value.h index b7a0e8c1..8a685750 100644 --- a/include/sqlpp11/data_types/time_of_day/parameter_value.h +++ b/include/sqlpp11/data_types/time_of_day/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/result_field.h b/include/sqlpp11/data_types/time_of_day/result_field.h index fe659ff4..d3ca4e51 100644 --- a/include/sqlpp11/data_types/time_of_day/result_field.h +++ b/include/sqlpp11/data_types/time_of_day/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_RESULT_FIELD_H - #include #include #include @@ -69,4 +68,3 @@ namespace sqlpp return os; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_of_day/wrap_operand.h b/include/sqlpp11/data_types/time_of_day/wrap_operand.h index b4faf20c..9341f9a8 100644 --- a/include/sqlpp11/data_types/time_of_day/wrap_operand.h +++ b/include/sqlpp11/data_types/time_of_day/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_OF_DAY_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_OF_DAY_WRAP_OPERAND_H - #include #include @@ -38,4 +37,3 @@ namespace sqlpp using type = time_of_day_operand>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point.h b/include/sqlpp11/data_types/time_point.h index 85332cd0..64e5199e 100644 --- a/include/sqlpp11/data_types/time_point.h +++ b/include/sqlpp11/data_types/time_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_H -#define SQLPP11_DATA_TYPES_TIME_POINT_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/time_point/column_operators.h b/include/sqlpp11/data_types/time_point/column_operators.h index 96896a30..4bc7c042 100644 --- a/include/sqlpp11/data_types/time_point/column_operators.h +++ b/include/sqlpp11/data_types/time_point/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_POINT_COLUMN_OPERATORS_H - #include #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_valid_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/data_type.h b/include/sqlpp11/data_types/time_point/data_type.h index 6021b222..6c54a68e 100644 --- a/include/sqlpp11/data_types/time_point/data_type.h +++ b/include/sqlpp11/data_types/time_point/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_TIME_POINT_DATA_TYPE_H - #include #include @@ -41,4 +40,3 @@ namespace sqlpp using _is_valid_operand = is_day_or_time_point_t; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/expression_operators.h b/include/sqlpp11/data_types/time_point/expression_operators.h index 5e4c0b4a..e82c59ac 100644 --- a/include/sqlpp11/data_types/time_point/expression_operators.h +++ b/include/sqlpp11/data_types/time_point/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_TIME_POINT_EXPRESSION_OPERATORS_H - #include #include #include @@ -40,4 +39,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/operand.h b/include/sqlpp11/data_types/time_point/operand.h index dff77368..e8a2e033 100644 --- a/include/sqlpp11/data_types/time_point/operand.h +++ b/include/sqlpp11/data_types/time_point/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_POINT_OPERAND_H - #include #include #include @@ -71,4 +70,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/parameter_value.h b/include/sqlpp11/data_types/time_point/parameter_value.h index e2ed62f6..f68cd610 100644 --- a/include/sqlpp11/data_types/time_point/parameter_value.h +++ b/include/sqlpp11/data_types/time_point/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_TIME_POINT_PARAMETER_VALUE_H - #include #include #include @@ -49,4 +48,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/result_field.h b/include/sqlpp11/data_types/time_point/result_field.h index 7bc17c6d..238ccfb8 100644 --- a/include/sqlpp11/data_types/time_point/result_field.h +++ b/include/sqlpp11/data_types/time_point/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_TIME_POINT_RESULT_FIELD_H - #include #include #include @@ -72,4 +71,3 @@ namespace sqlpp return os; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/time_point/wrap_operand.h b/include/sqlpp11/data_types/time_point/wrap_operand.h index 7420870c..482be771 100644 --- a/include/sqlpp11/data_types/time_point/wrap_operand.h +++ b/include/sqlpp11/data_types/time_point/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_TIME_POINT_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_TIME_POINT_WRAP_OPERAND_H - #include #include @@ -38,4 +37,3 @@ namespace sqlpp using type = time_point_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral.h b/include/sqlpp11/data_types/unsigned_integral.h index 35ebddd9..c0868610 100644 --- a/include/sqlpp11/data_types/unsigned_integral.h +++ b/include/sqlpp11/data_types/unsigned_integral.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_H - #include #include #include @@ -34,5 +33,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/column_operators.h b/include/sqlpp11/data_types/unsigned_integral/column_operators.h index ec714121..1abb05be 100644 --- a/include/sqlpp11/data_types/unsigned_integral/column_operators.h +++ b/include/sqlpp11/data_types/unsigned_integral/column_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_COLUMN_OPERATORS_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_COLUMN_OPERATORS_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/data_type.h b/include/sqlpp11/data_types/unsigned_integral/data_type.h index 84014b4d..14527c54 100644 --- a/include/sqlpp11/data_types/unsigned_integral/data_type.h +++ b/include/sqlpp11/data_types/unsigned_integral/data_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_DATA_TYPE_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_DATA_TYPE_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp using integer_unsigned = unsigned_integral; using bigint_unsigned = unsigned_integral; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/expression_operators.h b/include/sqlpp11/data_types/unsigned_integral/expression_operators.h index dca8529e..c025b2c5 100644 --- a/include/sqlpp11/data_types/unsigned_integral/expression_operators.h +++ b/include/sqlpp11/data_types/unsigned_integral/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_EXPRESSION_OPERATORS_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_EXPRESSION_OPERATORS_H - #include #include #include @@ -128,4 +127,3 @@ namespace sqlpp using type = shift_right_t, unsigned_integral, wrap_operand_t>; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/operand.h b/include/sqlpp11/data_types/unsigned_integral/operand.h index e73bb7f4..1a917bbc 100644 --- a/include/sqlpp11/data_types/unsigned_integral/operand.h +++ b/include/sqlpp11/data_types/unsigned_integral/operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_OPERAND_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_OPERAND_H - #include #include @@ -66,5 +65,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/parameter_value.h b/include/sqlpp11/data_types/unsigned_integral/parameter_value.h index c847d728..417b8d96 100644 --- a/include/sqlpp11/data_types/unsigned_integral/parameter_value.h +++ b/include/sqlpp11/data_types/unsigned_integral/parameter_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_PARAMETER_VALUE_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_PARAMETER_VALUE_H - #include #include #include @@ -47,4 +46,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/result_field.h b/include/sqlpp11/data_types/unsigned_integral/result_field.h index ded6ff15..786bc941 100644 --- a/include/sqlpp11/data_types/unsigned_integral/result_field.h +++ b/include/sqlpp11/data_types/unsigned_integral/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_RESULT_FIELD_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_RESULT_FIELD_H - #include #include #include @@ -52,4 +51,3 @@ namespace sqlpp } }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h b/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h index 1e9dd7cb..4c20ce09 100644 --- a/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h +++ b/include/sqlpp11/data_types/unsigned_integral/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_WRAP_OPERAND_H -#define SQLPP11_DATA_TYPES_UNSIGNED_INTEGRAL_WRAP_OPERAND_H - #include #include @@ -42,4 +41,3 @@ namespace sqlpp using type = unsigned_integral_operand; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/default_value.h b/include/sqlpp11/default_value.h index 9ac64144..1f0bf70e 100644 --- a/include/sqlpp11/default_value.h +++ b/include/sqlpp11/default_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DEFAULT_VALUE_H -#define SQLPP11_DEFAULT_VALUE_H - #include namespace sqlpp @@ -46,5 +45,3 @@ namespace sqlpp constexpr default_value_t default_value = {}; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/column_tuple_merge.h b/include/sqlpp11/detail/column_tuple_merge.h index 1851a030..e5fab06d 100644 --- a/include/sqlpp11/detail/column_tuple_merge.h +++ b/include/sqlpp11/detail/column_tuple_merge.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_TUPLE_MERGE_H -#define SQLPP11_COLUMN_TUPLE_MERGE_H - #include #include @@ -54,5 +53,3 @@ namespace sqlpp } } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/enable_if.h b/include/sqlpp11/detail/enable_if.h index c2c882b6..8f6f9c37 100644 --- a/include/sqlpp11/detail/enable_if.h +++ b/include/sqlpp11/detail/enable_if.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_ENABLE_IF_H -#define SQLPP11_DETAIL_ENABLE_IF_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp using enable_if_t = typename std::enable_if::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/float_safe_ostringstream.h b/include/sqlpp11/detail/float_safe_ostringstream.h index 79bdfe79..26c16cad 100644 --- a/include/sqlpp11/detail/float_safe_ostringstream.h +++ b/include/sqlpp11/detail/float_safe_ostringstream.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2023, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_COLUMN_TUPLE_FLOAT_SAFE_OSTRINGSTREAM_H -#define SQLPP11_COLUMN_TUPLE_FLOAT_SAFE_OSTRINGSTREAM_H - #include #include #include @@ -71,5 +70,3 @@ namespace sqlpp }; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/get_first.h b/include/sqlpp11/detail/get_first.h index 85466f0e..17f59ee2 100644 --- a/include/sqlpp11/detail/get_first.h +++ b/include/sqlpp11/detail/get_first.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_GET_FIRST_H -#define SQLPP11_DETAIL_GET_FIRST_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp using get_first_if = typename get_first_if_impl::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/get_last.h b/include/sqlpp11/detail/get_last.h index 3d64f97c..d94c0e55 100644 --- a/include/sqlpp11/detail/get_last.h +++ b/include/sqlpp11/detail/get_last.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_GET_LAST_H -#define SQLPP11_DETAIL_GET_LAST_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp using get_last_if = typename get_last_if_impl::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/index_sequence.h b/include/sqlpp11/detail/index_sequence.h index 9e9d5df3..74bbc4fc 100644 --- a/include/sqlpp11/detail/index_sequence.h +++ b/include/sqlpp11/detail/index_sequence.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_INDEX_SEQUENCE_H -#define SQLPP11_DETAIL_INDEX_SEQUENCE_H - #include namespace sqlpp @@ -59,5 +58,3 @@ namespace sqlpp using make_index_sequence = typename make_index_sequence_impl, N>::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/pick_arg.h b/include/sqlpp11/detail/pick_arg.h index 8df4a8b7..495a72be 100644 --- a/include/sqlpp11/detail/pick_arg.h +++ b/include/sqlpp11/detail/pick_arg.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_PICK_ARG_H -#define SQLPP11_DETAIL_PICK_ARG_H - #include namespace sqlpp @@ -53,5 +52,3 @@ namespace sqlpp } } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/type_set.h b/include/sqlpp11/detail/type_set.h index 343f3bcd..fa3e427b 100644 --- a/include/sqlpp11/detail/type_set.h +++ b/include/sqlpp11/detail/type_set.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_TYPE_SET_H -#define SQLPP11_DETAIL_TYPE_SET_H - #include #include #include @@ -277,5 +276,3 @@ namespace sqlpp using make_name_of_set_t = typename make_name_of_set::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/type_vector.h b/include/sqlpp11/detail/type_vector.h index 06cb4ba1..bb89b3b3 100644 --- a/include/sqlpp11/detail/type_vector.h +++ b/include/sqlpp11/detail/type_vector.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_TYPE_VECTOR_H -#define SQLPP11_DETAIL_TYPE_VECTOR_H - #include namespace sqlpp @@ -85,5 +84,3 @@ namespace sqlpp }; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/detail/void.h b/include/sqlpp11/detail/void.h index aa7d326d..3b310b8f 100644 --- a/include/sqlpp11/detail/void.h +++ b/include/sqlpp11/detail/void.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DETAIL_VOID_H -#define SQLPP11_DETAIL_VOID_H - namespace sqlpp { namespace detail @@ -41,5 +40,3 @@ namespace sqlpp using void_t = typename void_impl::type; } // namespace detail } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/dynamic_join.h b/include/sqlpp11/dynamic_join.h index 0d4d61dc..a868b5c1 100644 --- a/include/sqlpp11/dynamic_join.h +++ b/include/sqlpp11/dynamic_join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2016-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DYNAMIC_JOIN_H -#define SQLPP11_DYNAMIC_JOIN_H - #include namespace sqlpp @@ -56,5 +55,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/dynamic_pre_join.h b/include/sqlpp11/dynamic_pre_join.h index 959cfe21..50f61381 100644 --- a/include/sqlpp11/dynamic_pre_join.h +++ b/include/sqlpp11/dynamic_pre_join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2016-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DYNAMIC_PRE_JOIN_H -#define SQLPP11_DYNAMIC_PRE_JOIN_H - #include #include @@ -162,5 +161,3 @@ namespace sqlpp return {dynamic_pre_join_t{table}, {}}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/dynamic_select_column_list.h b/include/sqlpp11/dynamic_select_column_list.h index 912de57f..2ec44d06 100644 --- a/include/sqlpp11/dynamic_select_column_list.h +++ b/include/sqlpp11/dynamic_select_column_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_DYNAMIC_SELECT_COLUMN_LIST_H -#define SQLPP11_DYNAMIC_SELECT_COLUMN_LIST_H - #include #include #include @@ -101,5 +100,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/eval.h b/include/sqlpp11/eval.h index 65747b0e..cdf1f61c 100644 --- a/include/sqlpp11/eval.h +++ b/include/sqlpp11/eval.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EVAL_H -#define SQLPP11_EVAL_H - #include #include #include @@ -62,5 +61,3 @@ namespace sqlpp return eval(db, verbatim(sql_code)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/exception.h b/include/sqlpp11/exception.h index 36fcda9e..3781e40a 100644 --- a/include/sqlpp11/exception.h +++ b/include/sqlpp11/exception.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXCEPTION_H -#define SQLPP11_EXCEPTION_H - #include namespace sqlpp @@ -42,5 +41,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/exists.h b/include/sqlpp11/exists.h index 9191ddd4..47dd8fd4 100644 --- a/include/sqlpp11/exists.h +++ b/include/sqlpp11/exists.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXISTS_H -#define SQLPP11_EXISTS_H - #include #include @@ -92,5 +91,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression.h b/include/sqlpp11/expression.h index 65eab91a..17e71eb6 100644 --- a/include/sqlpp11/expression.h +++ b/include/sqlpp11/expression.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_H -#define SQLPP11_EXPRESSION_H - #include #include #include @@ -199,5 +198,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression_fwd.h b/include/sqlpp11/expression_fwd.h index dac17abb..fe704bcc 100644 --- a/include/sqlpp11/expression_fwd.h +++ b/include/sqlpp11/expression_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_FWD_H -#define SQLPP11_EXPRESSION_FWD_H - namespace sqlpp { struct boolean; @@ -280,5 +279,3 @@ namespace sqlpp template using rhs_t = typename detail::rhs_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression_operators.h b/include/sqlpp11/expression_operators.h index c2cefbcc..a524b480 100644 --- a/include/sqlpp11/expression_operators.h +++ b/include/sqlpp11/expression_operators.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_OPERATORS_H -#define SQLPP11_EXPRESSION_OPERATORS_H - #include namespace sqlpp @@ -37,5 +36,3 @@ namespace sqlpp static_assert(wrong_t::value, "Missing expression operators for ValueType"); }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/expression_return_types.h b/include/sqlpp11/expression_return_types.h index 88d408b9..b1048f0c 100644 --- a/include/sqlpp11/expression_return_types.h +++ b/include/sqlpp11/expression_return_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_EXPRESSION_RETURN_TYPES_H -#define SQLPP11_EXPRESSION_RETURN_TYPES_H - #include namespace sqlpp @@ -157,5 +156,3 @@ namespace sqlpp template using return_type_unary_minus_t = typename return_type_unary_minus::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/field_spec.h b/include/sqlpp11/field_spec.h index a62beeba..d0b130a7 100644 --- a/include/sqlpp11/field_spec.h +++ b/include/sqlpp11/field_spec.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FIELD_SPEC_H -#define SQLPP11_FIELD_SPEC_H - #include namespace sqlpp @@ -83,5 +82,3 @@ namespace sqlpp template using make_field_spec_t = typename detail::make_field_spec_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/for_update.h b/include/sqlpp11/for_update.h index ca908722..e4734797 100644 --- a/include/sqlpp11/for_update.h +++ b/include/sqlpp11/for_update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2017, Serge Robyns * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FOR_UPDATE_H -#define SQLPP11_FOR_UPDATE_H - #include #include #include @@ -169,5 +168,3 @@ namespace sqlpp return statement_t().for_update(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/from.h b/include/sqlpp11/from.h index 93e5257f..374f3bc8 100644 --- a/include/sqlpp11/from.h +++ b/include/sqlpp11/from.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FROM_H -#define SQLPP11_FROM_H - #include #include #include @@ -313,5 +312,3 @@ namespace sqlpp return statement_t().dynamic_from(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/functions.h b/include/sqlpp11/functions.h index 3efa7aed..acf0e680 100644 --- a/include/sqlpp11/functions.h +++ b/include/sqlpp11/functions.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_FUNCTIONS_H -#define SQLPP11_FUNCTIONS_H - #include #include #include @@ -137,5 +136,3 @@ namespace sqlpp return name_of::template char_ptr(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/group_by.h b/include/sqlpp11/group_by.h index 0de5ffca..7f434183 100644 --- a/include/sqlpp11/group_by.h +++ b/include/sqlpp11/group_by.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_GROUP_BY_H -#define SQLPP11_GROUP_BY_H - #include #include #include @@ -278,5 +277,3 @@ namespace sqlpp return statement_t().dynamic_group_by(std::forward(t)...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/having.h b/include/sqlpp11/having.h index c023b26c..bb9aea6f 100644 --- a/include/sqlpp11/having.h +++ b/include/sqlpp11/having.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_HAVING_H -#define SQLPP11_HAVING_H - #include #include #include @@ -314,5 +313,3 @@ namespace sqlpp return statement_t().dynamic_having(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/hidden.h b/include/sqlpp11/hidden.h index bf5065ea..b8d67423 100644 --- a/include/sqlpp11/hidden.h +++ b/include/sqlpp11/hidden.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_HIDDEN_H -#define SQLPP11_HIDDEN_H - namespace sqlpp { template @@ -55,4 +54,3 @@ namespace sqlpp return {part}; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/in.h b/include/sqlpp11/in.h index 279ed47c..70976de8 100644 --- a/include/sqlpp11/in.h +++ b/include/sqlpp11/in.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IN_H -#define SQLPP11_IN_H - #include #include #include @@ -117,5 +116,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/in_fwd.h b/include/sqlpp11/in_fwd.h index 4a5c8677..cceeba81 100644 --- a/include/sqlpp11/in_fwd.h +++ b/include/sqlpp11/in_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IN_FWD_H -#define SQLPP11_IN_FWD_H - namespace sqlpp { template @@ -34,5 +33,3 @@ namespace sqlpp template struct not_in_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/inconsistent.h b/include/sqlpp11/inconsistent.h index 82e83ec2..d3c690d5 100644 --- a/include/sqlpp11/inconsistent.h +++ b/include/sqlpp11/inconsistent.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2016-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INCONSISTENT_H -#define SQLPP11_INCONSISTENT_H - #include namespace sqlpp @@ -41,5 +40,3 @@ namespace sqlpp using inconsistent = typename std::enable_if::value, Check>::type; #endif } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/insert.h b/include/sqlpp11/insert.h index 965065f1..39e2b1d8 100644 --- a/include/sqlpp11/insert.h +++ b/include/sqlpp11/insert.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INSERT_H -#define SQLPP11_INSERT_H - #include #include #include @@ -125,5 +124,3 @@ namespace sqlpp return {blank_insert_t().into(table)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/insert_value.h b/include/sqlpp11/insert_value.h index 3f6d7e7d..e7ed389c 100644 --- a/include/sqlpp11/insert_value.h +++ b/include/sqlpp11/insert_value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INSERT_VALUE_H -#define SQLPP11_INSERT_VALUE_H - #include #include #include @@ -112,5 +111,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/insert_value_list.h b/include/sqlpp11/insert_value_list.h index 2a2f4a07..d6361c07 100644 --- a/include/sqlpp11/insert_value_list.h +++ b/include/sqlpp11/insert_value_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INSERT_VALUE_LIST_H -#define SQLPP11_INSERT_VALUE_LIST_H - #include #include #include @@ -687,5 +686,3 @@ namespace sqlpp return statement_t().columns(cols...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/interpret_tuple.h b/include/sqlpp11/interpret_tuple.h index f0de500f..e31d7675 100644 --- a/include/sqlpp11/interpret_tuple.h +++ b/include/sqlpp11/interpret_tuple.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTERPRET_TUPLE_H -#define SQLPP11_INTERPRET_TUPLE_H - #include #include #include @@ -86,5 +85,3 @@ namespace sqlpp detail::make_index_sequence::value>{}); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/interpretable.h b/include/sqlpp11/interpretable.h index e3090b42..030fb964 100644 --- a/include/sqlpp11/interpretable.h +++ b/include/sqlpp11/interpretable.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTERPRETABLE_H -#define SQLPP11_INTERPRETABLE_H - #include #include #include @@ -100,5 +99,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/interpretable_list.h b/include/sqlpp11/interpretable_list.h index 80ae130a..4db0534d 100644 --- a/include/sqlpp11/interpretable_list.h +++ b/include/sqlpp11/interpretable_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTERPRETABLE_LIST_H -#define SQLPP11_INTERPRETABLE_LIST_H - #include #include @@ -92,5 +91,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/into.h b/include/sqlpp11/into.h index 9f5a4d90..8b425265 100644 --- a/include/sqlpp11/into.h +++ b/include/sqlpp11/into.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_INTO_H -#define SQLPP11_INTO_H - #include #include #include @@ -204,5 +203,3 @@ namespace sqlpp return statement_t().into(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_equal_to_or_null.h b/include/sqlpp11/is_equal_to_or_null.h index b04bae0b..3e17f2e1 100644 --- a/include/sqlpp11/is_equal_to_or_null.h +++ b/include/sqlpp11/is_equal_to_or_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_EQUAL_TO_OR_NULL_H -#define SQLPP11_IS_EQUAL_TO_OR_NULL_H - #include namespace sqlpp @@ -75,5 +74,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_not_null.h b/include/sqlpp11/is_not_null.h index f5f232ac..ddae9a93 100644 --- a/include/sqlpp11/is_not_null.h +++ b/include/sqlpp11/is_not_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_NOT_NULL_H -#define SQLPP11_IS_NOT_NULL_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_null.h b/include/sqlpp11/is_null.h index 1c692b1a..e199706b 100644 --- a/include/sqlpp11/is_null.h +++ b/include/sqlpp11/is_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_NULL_H -#define SQLPP11_IS_NULL_H - #include #include #include @@ -78,5 +77,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/is_null_fwd.h b/include/sqlpp11/is_null_fwd.h index e0e420bf..888ff84a 100644 --- a/include/sqlpp11/is_null_fwd.h +++ b/include/sqlpp11/is_null_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_IS_NULL_FWD_H -#define SQLPP11_IS_NULL_FWD_H - namespace sqlpp { template @@ -34,5 +33,3 @@ namespace sqlpp template struct is_not_null_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/join.h b/include/sqlpp11/join.h index 7bd99670..3d42027f 100644 --- a/include/sqlpp11/join.h +++ b/include/sqlpp11/join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_JOIN_H -#define SQLPP11_JOIN_H - #include #include #include @@ -90,5 +89,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/join_types.h b/include/sqlpp11/join_types.h index 55561981..4a6e1918 100644 --- a/include/sqlpp11/join_types.h +++ b/include/sqlpp11/join_types.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_JOIN_TYPES_H -#define SQLPP11_JOIN_TYPES_H - #include namespace sqlpp @@ -69,5 +68,3 @@ namespace sqlpp static constexpr const char* _name = " CROSS"; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/limit.h b/include/sqlpp11/limit.h index 25f94fc5..8173a5cb 100644 --- a/include/sqlpp11/limit.h +++ b/include/sqlpp11/limit.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_LIMIT_H -#define SQLPP11_LIMIT_H - #include #include #include @@ -317,5 +316,3 @@ namespace sqlpp return statement_t().dynamic_limit(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/logic.h b/include/sqlpp11/logic.h index e19c39fd..be3ffd33 100644 --- a/include/sqlpp11/logic.h +++ b/include/sqlpp11/logic.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_LOGIC_H -#define SQLPP11_LOGIC_H - #include // Required for some compilers to use aliases for boolean operators #include @@ -86,5 +85,3 @@ namespace sqlpp using identity_t = T; } // namespace logic } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/lower.h b/include/sqlpp11/lower.h index a5d2cafd..f9ad1a4b 100644 --- a/include/sqlpp11/lower.h +++ b/include/sqlpp11/lower.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2023, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_LOWER_H -#define SQLPP11_LOWER_H - #include #include #include @@ -95,5 +94,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/mysql/bind_result.h b/include/sqlpp11/mysql/bind_result.h index 473a0f80..e6045faf 100644 --- a/include/sqlpp11/mysql/bind_result.h +++ b/include/sqlpp11/mysql/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_BIND_RESULT_H -#define SQLPP_MYSQL_BIND_RESULT_H - #include #include #include @@ -485,4 +484,3 @@ namespace sqlpp }; } // namespace mysql } // namespace sqlpp -#endif diff --git a/include/sqlpp11/mysql/char_result.h b/include/sqlpp11/mysql/char_result.h index 16efb08b..e35b5406 100644 --- a/include/sqlpp11/mysql/char_result.h +++ b/include/sqlpp11/mysql/char_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CHAR_RESULT_H -#define SQLPP_MYSQL_CHAR_RESULT_H - #include #include #include @@ -302,4 +301,3 @@ namespace sqlpp }; } // namespace mysql } // namespace sqlpp -#endif diff --git a/include/sqlpp11/mysql/char_result_row.h b/include/sqlpp11/mysql/char_result_row.h index c4ccc460..41f5684b 100644 --- a/include/sqlpp11/mysql/char_result_row.h +++ b/include/sqlpp11/mysql/char_result_row.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CHAR_RESULT_ROW_H -#define SQLPP_MYSQL_CHAR_RESULT_ROW_H - namespace sqlpp { namespace mysql @@ -43,5 +42,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/mysql/connection.h b/include/sqlpp11/mysql/connection.h index a2a72c34..5b1a2e54 100644 --- a/include/sqlpp11/mysql/connection.h +++ b/include/sqlpp11/mysql/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2017, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CONNECTION_H -#define SQLPP_MYSQL_CONNECTION_H - #include #include #include @@ -606,5 +605,3 @@ namespace sqlpp } // namespace sqlpp #include - -#endif diff --git a/include/sqlpp11/mysql/connection_config.h b/include/sqlpp11/mysql/connection_config.h index f3c0371a..538bc69d 100644 --- a/include/sqlpp11/mysql/connection_config.h +++ b/include/sqlpp11/mysql/connection_config.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_CONNECTION_CONFIG_H -#define SQLPP_MYSQL_CONNECTION_CONFIG_H - #include namespace sqlpp @@ -61,5 +60,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/mysql/mysql.h b/include/sqlpp11/mysql/mysql.h index 2702fab0..484331c4 100644 --- a/include/sqlpp11/mysql/mysql.h +++ b/include/sqlpp11/mysql/mysql.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,11 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_H -#define SQLPP_MYSQL_H - #include #include #include - -#endif diff --git a/include/sqlpp11/mysql/prepared_statement.h b/include/sqlpp11/mysql/prepared_statement.h index a00475e2..42fbcb1d 100644 --- a/include/sqlpp11/mysql/prepared_statement.h +++ b/include/sqlpp11/mysql/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_PREPARED_STATEMENT_H -#define SQLPP_MYSQL_PREPARED_STATEMENT_H - #include #include @@ -219,4 +218,3 @@ namespace sqlpp }; } // namespace mysql } // namespace sqlpp -#endif diff --git a/include/sqlpp11/mysql/remove.h b/include/sqlpp11/mysql/remove.h index eaf317ae..9943fe01 100644 --- a/include/sqlpp11/mysql/remove.h +++ b/include/sqlpp11/mysql/remove.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock, ZerQAQ * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_MYSQL_REMOVE_H -#define SQLPP11_MYSQL_REMOVE_H - #include #include #include @@ -67,6 +66,3 @@ namespace sqlpp } // namespace mysql } // namespace sqlpp - -#endif - diff --git a/include/sqlpp11/mysql/serializer.h b/include/sqlpp11/mysql/serializer.h index e7d09f71..366aa40b 100644 --- a/include/sqlpp11/mysql/serializer.h +++ b/include/sqlpp11/mysql/serializer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_SERIALIZER_H -#define SQLPP_MYSQL_SERIALIZER_H - #include #include @@ -47,5 +46,3 @@ namespace sqlpp return context; } } - -#endif diff --git a/include/sqlpp11/mysql/sqlpp_mysql.h b/include/sqlpp11/mysql/sqlpp_mysql.h index f497e44c..4257c7a6 100644 --- a/include/sqlpp11/mysql/sqlpp_mysql.h +++ b/include/sqlpp11/mysql/sqlpp_mysql.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2018 - 2018, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MYSQL_MYSQL_H -#define SQLPP_MYSQL_MYSQL_H - #include namespace sqlpp @@ -38,5 +37,3 @@ namespace sqlpp #endif } } - -#endif diff --git a/include/sqlpp11/mysql/update.h b/include/sqlpp11/mysql/update.h index 3eefc048..4ff65484 100644 --- a/include/sqlpp11/mysql/update.h +++ b/include/sqlpp11/mysql/update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock, ZerQAQ * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_MYSQL_UPDATE_H -#define SQLPP11_MYSQL_UPDATE_H - #include #include #include @@ -59,6 +58,3 @@ namespace sqlpp } } // namespace mysql } // namespace sqlpp - -#endif - diff --git a/include/sqlpp11/named_interpretable.h b/include/sqlpp11/named_interpretable.h index bd829780..7923caa7 100644 --- a/include/sqlpp11/named_interpretable.h +++ b/include/sqlpp11/named_interpretable.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NAMED_INTERPRETABLE_H -#define SQLPP11_NAMED_INTERPRETABLE_H - #include #include #include @@ -111,5 +110,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/no_data.h b/include/sqlpp11/no_data.h index 8eced643..d4c772ff 100644 --- a/include/sqlpp11/no_data.h +++ b/include/sqlpp11/no_data.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NO_DATA_H -#define SQLPP11_NO_DATA_H - namespace sqlpp { struct no_data_t @@ -39,4 +38,3 @@ namespace sqlpp return context; } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/no_name.h b/include/sqlpp11/no_name.h index 515376a2..43260f7b 100644 --- a/include/sqlpp11/no_name.h +++ b/include/sqlpp11/no_name.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NO_NAME_H -#define SQLPP11_NO_NAME_H - namespace sqlpp { struct no_name_t { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/noop.h b/include/sqlpp11/noop.h index 6b28190b..db04e547 100644 --- a/include/sqlpp11/noop.h +++ b/include/sqlpp11/noop.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NOOP_H -#define SQLPP11_NOOP_H - #include #include #include @@ -91,4 +90,3 @@ namespace sqlpp { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/noop_fwd.h b/include/sqlpp11/noop_fwd.h index d2f4bf41..bc5e1860 100644 --- a/include/sqlpp11/noop_fwd.h +++ b/include/sqlpp11/noop_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_NOOP_FWD_H -#define SQLPP_NOOP_FWD_H - namespace sqlpp { struct noop; @@ -34,4 +33,3 @@ namespace sqlpp template struct is_noop; } -#endif diff --git a/include/sqlpp11/not_in.h b/include/sqlpp11/not_in.h index 40bc66ec..46f5636e 100644 --- a/include/sqlpp11/not_in.h +++ b/include/sqlpp11/not_in.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NOT_IN_H -#define SQLPP11_NOT_IN_H - #include #include #include @@ -117,5 +116,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/null.h b/include/sqlpp11/null.h index 41754df7..3ca4d7d0 100644 --- a/include/sqlpp11/null.h +++ b/include/sqlpp11/null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_NULL_H -#define SQLPP11_NULL_H - #include namespace sqlpp @@ -46,5 +45,3 @@ namespace sqlpp constexpr null_t null = {}; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/offset.h b/include/sqlpp11/offset.h index f72681cd..e22148a1 100644 --- a/include/sqlpp11/offset.h +++ b/include/sqlpp11/offset.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_OFFSET_H -#define SQLPP11_OFFSET_H - #include #include #include @@ -331,5 +330,3 @@ namespace sqlpp return statement_t().dynamic_offset(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/on.h b/include/sqlpp11/on.h index c33452dc..ee9be580 100644 --- a/include/sqlpp11/on.h +++ b/include/sqlpp11/on.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ON_H -#define SQLPP11_ON_H - #include #include #include @@ -77,5 +76,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/operand_check.h b/include/sqlpp11/operand_check.h index 6775334e..5c441400 100644 --- a/include/sqlpp11/operand_check.h +++ b/include/sqlpp11/operand_check.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_OPERAND_CHECK_H -#define SQLPP11_OPERAND_CHECK_H - #include #include @@ -71,5 +70,3 @@ namespace sqlpp template class LPred, typename R, template class RPred> using unwrapped_binary_operand_check_t = typename binary_operand_check::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/order_by.h b/include/sqlpp11/order_by.h index f1577dcf..bf288677 100644 --- a/include/sqlpp11/order_by.h +++ b/include/sqlpp11/order_by.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_ORDER_BY_H -#define SQLPP11_ORDER_BY_H - #include #include #include @@ -276,5 +275,3 @@ namespace sqlpp return statement_t().dynamic_order_by(std::forward(t)...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/over.h b/include/sqlpp11/over.h index f3023611..d42a4586 100644 --- a/include/sqlpp11/over.h +++ b/include/sqlpp11/over.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_OVER_H -#define SQLPP11_OVER_H - #include namespace sqlpp @@ -62,5 +61,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/parameter.h b/include/sqlpp11/parameter.h index 7b61d33b..20f27a96 100644 --- a/include/sqlpp11/parameter.h +++ b/include/sqlpp11/parameter.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PARAMETER_H -#define SQLPP11_PARAMETER_H - #include #include #include @@ -80,5 +79,3 @@ namespace sqlpp return {}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/parameter_list.h b/include/sqlpp11/parameter_list.h index e19ee5e5..f6dabb48 100644 --- a/include/sqlpp11/parameter_list.h +++ b/include/sqlpp11/parameter_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PARAMETER_LIST_H -#define SQLPP11_PARAMETER_LIST_H - #include #include #include @@ -66,5 +65,3 @@ namespace sqlpp template using make_parameter_list_t = parameter_list_t>; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/parameterized_verbatim.h b/include/sqlpp11/parameterized_verbatim.h index b0bcc364..456fb6b3 100644 --- a/include/sqlpp11/parameterized_verbatim.h +++ b/include/sqlpp11/parameterized_verbatim.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2020, Roland Bock, MacDue * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PARAMETERIZED_VERBATIM_COUNT_H -#define SQLPP11_PARAMETERIZED_VERBATIM_COUNT_H - #include #include #include @@ -76,5 +75,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/policy_update.h b/include/sqlpp11/policy_update.h index e47da9ee..6280cbcd 100644 --- a/include/sqlpp11/policy_update.h +++ b/include/sqlpp11/policy_update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_POLICY_UPDATE_H -#define SQLPP11_POLICY_UPDATE_H - #include namespace sqlpp @@ -68,5 +67,3 @@ namespace sqlpp template using new_statement_t = typename new_statement_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/portable_static_assert.h b/include/sqlpp11/portable_static_assert.h index b8701ca4..7129aff1 100644 --- a/include/sqlpp11/portable_static_assert.h +++ b/include/sqlpp11/portable_static_assert.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PORTABLE_STATIC_ASSERT_H -#define SQLPP11_PORTABLE_STATIC_ASSERT_H - #include #include @@ -94,5 +93,3 @@ namespace sqlpp template using static_combined_check_t = typename detail::static_combined_check_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/bind_result.h b/include/sqlpp11/postgresql/bind_result.h index 9de3c6a5..4146460a 100644 --- a/include/sqlpp11/postgresql/bind_result.h +++ b/include/sqlpp11/postgresql/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2020, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_BIND_RESULT_H -#define SQLPP_POSTGRESQL_BIND_RESULT_H - #include #include #include @@ -410,5 +409,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/connection.h b/include/sqlpp11/postgresql/connection.h index 9856332a..e7ecdde4 100644 --- a/include/sqlpp11/postgresql/connection.h +++ b/include/sqlpp11/postgresql/connection.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright (c) 2023, Vesselin Atanasov @@ -26,9 +28,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_CONNECTION_H -#define SQLPP_POSTGRESQL_CONNECTION_H - #include #include #include @@ -664,5 +663,3 @@ namespace sqlpp } // namespace sqlpp #include - -#endif diff --git a/include/sqlpp11/postgresql/connection_config.h b/include/sqlpp11/postgresql/connection_config.h index 9fd12a1a..62dec0f1 100644 --- a/include/sqlpp11/postgresql/connection_config.h +++ b/include/sqlpp11/postgresql/connection_config.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_CONNECTION_CONFIG_H -#define SQLPP_POSTGRESQL_CONNECTION_CONFIG_H - #include #include @@ -92,5 +91,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/postgresql/detail/connection_handle.h b/include/sqlpp11/postgresql/detail/connection_handle.h index a52fb551..33b0161e 100644 --- a/include/sqlpp11/postgresql/detail/connection_handle.h +++ b/include/sqlpp11/postgresql/detail/connection_handle.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_CONNECTION_HANDLE_H -#define SQLPP_POSTGRESQL_CONNECTION_HANDLE_H - #include #include #include @@ -240,5 +239,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/detail/prepared_statement_handle.h b/include/sqlpp11/postgresql/detail/prepared_statement_handle.h index a8fbb706..89d11a60 100644 --- a/include/sqlpp11/postgresql/detail/prepared_statement_handle.h +++ b/include/sqlpp11/postgresql/detail/prepared_statement_handle.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright © 2015-2016, Bartosz Wieczorek @@ -26,9 +28,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_PREPARED_STATEMENT_HANDLE_H -#define SQLPP_POSTGRESQL_PREPARED_STATEMENT_HANDLE_H - #include #include #include @@ -194,5 +193,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/dynamic_libpq.h b/include/sqlpp11/postgresql/dynamic_libpq.h index 80aecf3d..e681d611 100644 --- a/include/sqlpp11/postgresql/dynamic_libpq.h +++ b/include/sqlpp11/postgresql/dynamic_libpq.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015, Volker Assmann * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DYNAMIC_LIBPQ_H -#define DYNAMIC_LIBPQ_H - #include #include @@ -150,5 +149,3 @@ void init_pg(std::string libname); } } } -#endif // DYNAMIC_LIBPQ_H - diff --git a/include/sqlpp11/postgresql/exception.h b/include/sqlpp11/postgresql/exception.h index f42eb951..311a7218 100644 --- a/include/sqlpp11/postgresql/exception.h +++ b/include/sqlpp11/postgresql/exception.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_EXCEPTION_H -#define SQLPP_POSTGRESQL_EXCEPTION_H - /** classes copied from http://pqxx.org/devprojects/libpqxx/doc/3.1/html/Reference/a00032.html */ @@ -437,5 +436,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/postgresql/insert.h b/include/sqlpp11/postgresql/insert.h index e9eafe54..c77ce513 100644 --- a/include/sqlpp11/postgresql/insert.h +++ b/include/sqlpp11/postgresql/insert.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_INSERT_H -#define SQLPP_POSTGRESQL_INSERT_H - #include #include #include @@ -65,5 +64,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/on_conflict.h b/include/sqlpp11/postgresql/on_conflict.h index b467e23c..6bc8a0e8 100644 --- a/include/sqlpp11/postgresql/on_conflict.h +++ b/include/sqlpp11/postgresql/on_conflict.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2019, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_NO_CONFLICT_H -#define SQLPP_POSTGRESQL_NO_CONFLICT_H - #include #include #include @@ -260,5 +259,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/on_conflict_do_nothing.h b/include/sqlpp11/postgresql/on_conflict_do_nothing.h index e876d1f0..398e4263 100644 --- a/include/sqlpp11/postgresql/on_conflict_do_nothing.h +++ b/include/sqlpp11/postgresql/on_conflict_do_nothing.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2019, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_ON_CONFLICT_DO_NOTHING_H -#define SQLPP_POSTGRESQL_ON_CONFLICT_DO_NOTHING_H - #include #include #include @@ -123,5 +122,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/on_conflict_do_update.h b/include/sqlpp11/postgresql/on_conflict_do_update.h index 50b5defe..f85f1f93 100644 --- a/include/sqlpp11/postgresql/on_conflict_do_update.h +++ b/include/sqlpp11/postgresql/on_conflict_do_update.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2019, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_ON_CONFLICT_DO_UPDATE_H -#define SQLPP_POSTGRESQL_ON_CONFLICT_DO_UPDATE_H - #include #include #include @@ -228,5 +227,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/postgresql.h b/include/sqlpp11/postgresql/postgresql.h index e68f75fa..374fe70d 100644 --- a/include/sqlpp11/postgresql/postgresql.h +++ b/include/sqlpp11/postgresql/postgresql.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright (c) 2023, Vesselin Atanasov @@ -26,13 +28,8 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_H -#define SQLPP_POSTGRESQL_H - #include #include #include #include #include - -#endif diff --git a/include/sqlpp11/postgresql/prepared_statement.h b/include/sqlpp11/postgresql/prepared_statement.h index 4cd8d6f8..d4727610 100644 --- a/include/sqlpp11/postgresql/prepared_statement.h +++ b/include/sqlpp11/postgresql/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * Copyright © 2021-2021, Roland Bock @@ -26,9 +28,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_PREPARED_STATEMENT_H -#define SQLPP_POSTGRESQL_PREPARED_STATEMENT_H - #include #include #include @@ -264,5 +263,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/result.h b/include/sqlpp11/postgresql/result.h index cc56d1f5..879417d9 100644 --- a/include/sqlpp11/postgresql/result.h +++ b/include/sqlpp11/postgresql/result.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2015-2016, Bartosz Wieczorek * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_RESULT_H -#define SQLPP_POSTGRESQL_RESULT_H - #include #include #include @@ -381,5 +380,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/result_field.h b/include/sqlpp11/postgresql/result_field.h index 565ade42..64e73dcc 100644 --- a/include/sqlpp11/postgresql/result_field.h +++ b/include/sqlpp11/postgresql/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2021-2021, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_BLOB_RESULT_FIELD_H -#define SQLPP_POSTGRESQL_BLOB_RESULT_FIELD_H - #include #include #include @@ -119,4 +118,3 @@ namespace sqlpp }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/postgresql/returning.h b/include/sqlpp11/postgresql/returning.h index 5ecab977..296ba124 100644 --- a/include/sqlpp11/postgresql/returning.h +++ b/include/sqlpp11/postgresql/returning.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2018, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_RETURNING_H -#define SQLPP_POSTGRESQL_RETURNING_H - #include #include #include @@ -172,5 +171,3 @@ namespace sqlpp }; } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/returning_column_list.h b/include/sqlpp11/postgresql/returning_column_list.h index 051049ce..2542a22b 100644 --- a/include/sqlpp11/postgresql/returning_column_list.h +++ b/include/sqlpp11/postgresql/returning_column_list.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_RETURNING_COLUMN_LIST_H -#define SQLPP_POSTGRESQL_RETURNING_COLUMN_LIST_H - #include #include #include @@ -492,5 +491,3 @@ namespace sqlpp } } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/postgresql/serializer.h b/include/sqlpp11/postgresql/serializer.h index e801e7c5..95ba037d 100644 --- a/include/sqlpp11/postgresql/serializer.h +++ b/include/sqlpp11/postgresql/serializer.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright © 2014-2015, Matthijs Möhlmann * All rights reserved. @@ -25,9 +27,6 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_SERIALIZER_H -#define SQLPP_POSTGRESQL_SERIALIZER_H - #include #include #include @@ -73,5 +72,3 @@ namespace sqlpp return context; } } - -#endif diff --git a/include/sqlpp11/postgresql/update.h b/include/sqlpp11/postgresql/update.h index 8d72cd80..36bcfdfc 100644 --- a/include/sqlpp11/postgresql/update.h +++ b/include/sqlpp11/postgresql/update.h @@ -1,3 +1,5 @@ +#pragma once + /** * Copyright (c) 2016, Bartoszek * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_POSTGRESQL_UPDATE_H -#define SQLPP_POSTGRESQL_UPDATE_H - #include #include @@ -53,5 +52,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/postgresql/visibility.h b/include/sqlpp11/postgresql/visibility.h index 0da2365a..99266d5d 100644 --- a/include/sqlpp11/postgresql/visibility.h +++ b/include/sqlpp11/postgresql/visibility.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2015 cszawisza * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_POSTGRESQL_VISIBILITY_H -#define SQLPP11_POSTGRESQL_VISIBILITY_H - #ifdef SQLPP_DYNAMIC_LOADING #if defined _WIN32 || defined __CYGWIN__ #ifdef BUILDING_DLL @@ -56,5 +55,3 @@ #define DLL_PUBLIC #define DLL_LOCAL #endif - -#endif diff --git a/include/sqlpp11/ppgen.h b/include/sqlpp11/ppgen.h index f602ede5..11787d72 100644 --- a/include/sqlpp11/ppgen.h +++ b/include/sqlpp11/ppgen.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen_h -#define _sqlpp__ppgen_h - #include // enable the Clang support @@ -218,5 +217,3 @@ ) /***************************************************************************/ - -#endif // _sqlpp__ppgen_h diff --git a/include/sqlpp11/ppgen/colops/auto_increment.h b/include/sqlpp11/ppgen/colops/auto_increment.h index fc370b39..fca37238 100644 --- a/include/sqlpp11/ppgen/colops/auto_increment.h +++ b/include/sqlpp11/ppgen/colops/auto_increment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__auto_increment_h -#define _sqlpp__ppgen__colops__auto_increment_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_AUTO_INCREMENT \ PROC_SQLPP_AUTO_INCREMENT #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_AUTO_INCREMENT(...) \ ::sqlpp::tag::must_not_insert, ::sqlpp::tag::must_not_update - -#endif // _sqlpp__ppgen__colops__auto_increment_h diff --git a/include/sqlpp11/ppgen/colops/blob.h b/include/sqlpp11/ppgen/colops/blob.h index 5e5332d9..ae13040d 100644 --- a/include/sqlpp11/ppgen/colops/blob.h +++ b/include/sqlpp11/ppgen/colops/blob.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__blob_h -#define _sqlpp__ppgen__colops__blob_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_tinyblob \ PROC_tinyblob #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_tinyblob(...) \ @@ -48,5 +47,3 @@ PROC_longblob #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_longblob(...) \ ::sqlpp::blob - -#endif // _sqlpp__ppgen__colops__blob_h diff --git a/include/sqlpp11/ppgen/colops/bool.h b/include/sqlpp11/ppgen/colops/bool.h index d1ec8662..83bbfd76 100644 --- a/include/sqlpp11/ppgen/colops/bool.h +++ b/include/sqlpp11/ppgen/colops/bool.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__bool_h -#define _sqlpp__ppgen__colops__bool_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_bool \ PROC_bool #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_bool(...) \ ::sqlpp::boolean - -#endif // _sqlpp__ppgen__colops__bool_h diff --git a/include/sqlpp11/ppgen/colops/comment.h b/include/sqlpp11/ppgen/colops/comment.h index e5ab8d82..a6d764f1 100644 --- a/include/sqlpp11/ppgen/colops/comment.h +++ b/include/sqlpp11/ppgen/colops/comment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__comment_h -#define _sqlpp__ppgen__colops__comment_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_COMMENT \ PROC_SQLPP_COMMENT #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_COMMENT(str) \ [COMMENT is not implemented] - -#endif // _sqlpp__ppgen__colops__comment_h diff --git a/include/sqlpp11/ppgen/colops/datetime.h b/include/sqlpp11/ppgen/colops/datetime.h index 15ef632b..1e745b31 100644 --- a/include/sqlpp11/ppgen/colops/datetime.h +++ b/include/sqlpp11/ppgen/colops/datetime.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__datetime_h -#define _sqlpp__ppgen__colops__datetime_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_date \ PROC_date #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_date(...) \ @@ -38,5 +37,3 @@ PROC_datetime #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_datetime(...) \ ::sqlpp::time_point - -#endif // _sqlpp__ppgen__colops__datetime_h diff --git a/include/sqlpp11/ppgen/colops/default.h b/include/sqlpp11/ppgen/colops/default.h index f58c095f..ba2566f2 100644 --- a/include/sqlpp11/ppgen/colops/default.h +++ b/include/sqlpp11/ppgen/colops/default.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__default_h -#define _sqlpp__ppgen__colops__default_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_DEFAULT \ PROC_SQLPP_DEFAULT #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_DEFAULT(...) \ [DEFAULT is not implemented] - -#endif // _sqlpp__ppgen__colops__default_h diff --git a/include/sqlpp11/ppgen/colops/floating_point.h b/include/sqlpp11/ppgen/colops/floating_point.h index 2980815e..4efe269b 100644 --- a/include/sqlpp11/ppgen/colops/floating_point.h +++ b/include/sqlpp11/ppgen/colops/floating_point.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__floating_point_h -#define _sqlpp__ppgen__colops__floating_point_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_float \ PROC_float #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_float(...) \ @@ -43,5 +42,3 @@ PROC_double #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_double(...) \ ::sqlpp::floating_point - -#endif // _sqlpp__ppgen__colops__floating_point_h diff --git a/include/sqlpp11/ppgen/colops/foreign_key.h b/include/sqlpp11/ppgen/colops/foreign_key.h index 8b43938b..0b336036 100644 --- a/include/sqlpp11/ppgen/colops/foreign_key.h +++ b/include/sqlpp11/ppgen/colops/foreign_key.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__foreign_key_h -#define _sqlpp__ppgen__colops__foreign_key_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_FOREIGN_KEY \ PROC_SQLPP_FOREIGN_KEY #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_FOREIGN_KEY(keyname, tblname, colname) \ [FOREIGN KEY is not implemented] - -#endif // _sqlpp__ppgen__colops__foreign_key_h diff --git a/include/sqlpp11/ppgen/colops/index.h b/include/sqlpp11/ppgen/colops/index.h index bbea4bec..f0315859 100644 --- a/include/sqlpp11/ppgen/colops/index.h +++ b/include/sqlpp11/ppgen/colops/index.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__index_h -#define _sqlpp__ppgen__colops__index_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_INDEX \ PROC_SQLPP_INDEX #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_INDEX(indexname, tblname, /* cols */...) \ [INDEX is not implemented] - -#endif // _sqlpp__ppgen__colops__index_h diff --git a/include/sqlpp11/ppgen/colops/integer.h b/include/sqlpp11/ppgen/colops/integer.h index ccf2c60e..21752125 100644 --- a/include/sqlpp11/ppgen/colops/integer.h +++ b/include/sqlpp11/ppgen/colops/integer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__integer_h -#define _sqlpp__ppgen__colops__integer_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_tinyint \ PROC_tinyint #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_tinyint(...) \ @@ -48,5 +47,3 @@ PROC_bigint #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_bigint(...) \ ::sqlpp::bigint - -#endif // _sqlpp__ppgen__colops__integer_h diff --git a/include/sqlpp11/ppgen/colops/not_null.h b/include/sqlpp11/ppgen/colops/not_null.h index cae2767e..d710bf27 100644 --- a/include/sqlpp11/ppgen/colops/not_null.h +++ b/include/sqlpp11/ppgen/colops/not_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__not_null_h -#define _sqlpp__ppgen__colops__not_null_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_NOT_NULL \ PROC_SQLPP_NOT_NULL #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_NOT_NULL(...) \ ::sqlpp::tag::require_insert - -#endif // _sqlpp__ppgen__colops__not_null_h diff --git a/include/sqlpp11/ppgen/colops/null.h b/include/sqlpp11/ppgen/colops/null.h index c45807f0..c01346f7 100644 --- a/include/sqlpp11/ppgen/colops/null.h +++ b/include/sqlpp11/ppgen/colops/null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__null_h -#define _sqlpp__ppgen__colops__null_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_NULL \ PROC_SQLPP_NULL #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_NULL(...) \ ::sqlpp::tag::can_be_null - -#endif // _sqlpp__ppgen__colops__null_h diff --git a/include/sqlpp11/ppgen/colops/primary_key.h b/include/sqlpp11/ppgen/colops/primary_key.h index dd8583a1..33e3227e 100644 --- a/include/sqlpp11/ppgen/colops/primary_key.h +++ b/include/sqlpp11/ppgen/colops/primary_key.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__primary_key_h -#define _sqlpp__ppgen__colops__primary_key_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_PRIMARY_KEY \ PROC_SQLPP_PRIMARY_KEY #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_PRIMARY_KEY(...) \ ::sqlpp::tag::must_not_update - -#endif // _sqlpp__ppgen__colops__primary_key_h diff --git a/include/sqlpp11/ppgen/colops/text.h b/include/sqlpp11/ppgen/colops/text.h index 44203c4c..09513293 100644 --- a/include/sqlpp11/ppgen/colops/text.h +++ b/include/sqlpp11/ppgen/colops/text.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__text_h -#define _sqlpp__ppgen__colops__text_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_text \ PROC_text #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_text(...) \ ::sqlpp::text - -#endif // _sqlpp__ppgen__colops__text_h diff --git a/include/sqlpp11/ppgen/colops/timestamp.h b/include/sqlpp11/ppgen/colops/timestamp.h index 080be5fc..a3a1fcd1 100644 --- a/include/sqlpp11/ppgen/colops/timestamp.h +++ b/include/sqlpp11/ppgen/colops/timestamp.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__timestamp_h -#define _sqlpp__ppgen__colops__timestamp_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_timestamp \ PROC_timestamp #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_timestamp(...) \ ::sqlpp::time_point - -#endif // _sqlpp__ppgen__colops__timestamp_h diff --git a/include/sqlpp11/ppgen/colops/unique_index.h b/include/sqlpp11/ppgen/colops/unique_index.h index b003c13b..554c2aa8 100644 --- a/include/sqlpp11/ppgen/colops/unique_index.h +++ b/include/sqlpp11/ppgen/colops/unique_index.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__unique_index_h -#define _sqlpp__ppgen__colops__unique_index_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_SQLPP_UNIQUE_INDEX \ PROC_SQLPP_UNIQUE_INDEX #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_SQLPP_UNIQUE_INDEX(indexname, tblname, /* cols */...) \ [UNIQUE INDEX is not implemented] - -#endif // _sqlpp__ppgen__colops__unique_index_h diff --git a/include/sqlpp11/ppgen/colops/unsigned_integer.h b/include/sqlpp11/ppgen/colops/unsigned_integer.h index 08f54411..6d5fe301 100644 --- a/include/sqlpp11/ppgen/colops/unsigned_integer.h +++ b/include/sqlpp11/ppgen/colops/unsigned_integer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, Damien COJAN * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__unsigned_integer_h -#define _sqlpp__ppgen__colops__unsigned_integer_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_tinyint_unsigned \ PROC_tinyint_unsigned #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_tinyint_unsigned(...) \ @@ -48,5 +47,3 @@ PROC_bigint_unsigned #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_bigint_unsigned(...) \ ::sqlpp::bigint_unsigned - -#endif // _sqlpp__ppgen__colops__unsigned_integer_h diff --git a/include/sqlpp11/ppgen/colops/varchar.h b/include/sqlpp11/ppgen/colops/varchar.h index 2f952ee4..5fb78544 100644 --- a/include/sqlpp11/ppgen/colops/varchar.h +++ b/include/sqlpp11/ppgen/colops/varchar.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__colops__varchar_h -#define _sqlpp__ppgen__colops__varchar_h - #define SQLPP_DECLARE_COLUMN_GET_TRAITS_LAZY_varchar(str) \ PROC_varchar #define SQLPP_DECLARE_COLUMN_GEN_TRAITS_PROC_varchar(str) \ ::sqlpp::varchar - -#endif // _sqlpp__ppgen__colops__varchar_h diff --git a/include/sqlpp11/ppgen/tblops/character_set.h b/include/sqlpp11/ppgen/tblops/character_set.h index 2db1ba64..b6d9cee0 100644 --- a/include/sqlpp11/ppgen/tblops/character_set.h +++ b/include/sqlpp11/ppgen/tblops/character_set.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__character_set_h -#define _sqlpp__ppgen__tblops__character_set_h - #define SQLPP_DECLARE_TABLE_GET_PROC_LAZY_SQLPP_CHARACTER_SET \ PROC_SQLPP_CHARACTER_SET #define SQLPP_DECLARE_TABLE_GEN_PROC_SQLPP_CHARACTER_SET(str) \ [CHARACTER_SET is not implemented] - -#endif // _sqlpp__ppgen__tblops__character_set_h diff --git a/include/sqlpp11/ppgen/tblops/comment.h b/include/sqlpp11/ppgen/tblops/comment.h index 5b85563b..c44db214 100644 --- a/include/sqlpp11/ppgen/tblops/comment.h +++ b/include/sqlpp11/ppgen/tblops/comment.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__comment_h -#define _sqlpp__ppgen__tblops__comment_h - #define SQLPP_DECLARE_TABLE_GET_TRAITS_LAZY_SQLPP_COMMENT \ PROC_SQLPP_COMMENT #define SQLPP_DECLARE_TABLE_GEN_TRAITS_PROC_SQLPP_COMMENT(str) \ [COMMENT is not implemented] - -#endif // _sqlpp__ppgen__tblops__comment_h diff --git a/include/sqlpp11/ppgen/tblops/default.h b/include/sqlpp11/ppgen/tblops/default.h index 0de848af..65acc40f 100644 --- a/include/sqlpp11/ppgen/tblops/default.h +++ b/include/sqlpp11/ppgen/tblops/default.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__default_h -#define _sqlpp__ppgen__tblops__default_h - #define SQLPP_DECLARE_TABLE_GET_TRAITS_LAZY_SQLPP_DEFAULT \ PROC_SQLPP_DEFAULT #define SQLPP_DECLARE_TABLE_GEN_TRAITS_PROC_SQLPP_DEFAULT(...) \ [DEFAULT is not implemented] - -#endif // _sqlpp__ppgen__tblops__default_h diff --git a/include/sqlpp11/ppgen/tblops/engine.h b/include/sqlpp11/ppgen/tblops/engine.h index d2345f93..c6b46a5a 100644 --- a/include/sqlpp11/ppgen/tblops/engine.h +++ b/include/sqlpp11/ppgen/tblops/engine.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,12 +28,7 @@ // clang-format off -#ifndef _sqlpp__ppgen__tblops__engine_h -#define _sqlpp__ppgen__tblops__engine_h - #define SQLPP_DECLARE_TABLE_GET_PROC_LAZY_SQLPP_ENGINE \ PROC_SQLPP_ENGINE #define SQLPP_DECLARE_TABLE_GEN_PROC_SQLPP_ENGINE(str) \ [ENGINE is not implemented] - -#endif // _sqlpp__ppgen__tblops__engine_h diff --git a/include/sqlpp11/ppgen/tools/wrap_seq.h b/include/sqlpp11/ppgen/tools/wrap_seq.h index 49a8a71b..acd71a8c 100644 --- a/include/sqlpp11/ppgen/tools/wrap_seq.h +++ b/include/sqlpp11/ppgen/tools/wrap_seq.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2014-2017, niXman (i dot nixman dog gmail dot com) * All rights reserved. @@ -26,9 +28,6 @@ // clang-format off -#ifndef _sqlpp__ppgen__tools__wrap_seq_h -#define _sqlpp__ppgen__tools__wrap_seq_h - #define SQLPP_WRAP_SEQUENCE_X(...) \ ((__VA_ARGS__)) SQLPP_WRAP_SEQUENCE_Y #define SQLPP_WRAP_SEQUENCE_Y(...) \ @@ -36,5 +35,3 @@ #define SQLPP_WRAP_SEQUENCE_X0 #define SQLPP_WRAP_SEQUENCE_Y0 - -#endif // _sqlpp__ppgen__tools__wrap_seq_h diff --git a/include/sqlpp11/pre_join.h b/include/sqlpp11/pre_join.h index 61033579..ddf9beb0 100644 --- a/include/sqlpp11/pre_join.h +++ b/include/sqlpp11/pre_join.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PRE_JOIN_H -#define SQLPP11_PRE_JOIN_H - #include #include #include @@ -207,5 +206,3 @@ namespace sqlpp return {pre_join_t, from_table_t>{from_table(lhs), from_table(rhs)}, {}}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_execute.h b/include/sqlpp11/prepared_execute.h index 68d200e7..fadd1a6e 100644 --- a/include/sqlpp11/prepared_execute.h +++ b/include/sqlpp11/prepared_execute.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_EXECUTE_H -#define SQLPP11_PREPARED_EXECUTE_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_insert.h b/include/sqlpp11/prepared_insert.h index 25b02fd1..7c95f39a 100644 --- a/include/sqlpp11/prepared_insert.h +++ b/include/sqlpp11/prepared_insert.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_INSERT_H -#define SQLPP11_PREPARED_INSERT_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_remove.h b/include/sqlpp11/prepared_remove.h index bcf4c794..0baa3778 100644 --- a/include/sqlpp11/prepared_remove.h +++ b/include/sqlpp11/prepared_remove.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_REMOVE_H -#define SQLPP11_PREPARED_REMOVE_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_select.h b/include/sqlpp11/prepared_select.h index fb68d490..3d4ed444 100644 --- a/include/sqlpp11/prepared_select.h +++ b/include/sqlpp11/prepared_select.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_SELECT_H -#define SQLPP11_PREPARED_SELECT_H - #include #include #include @@ -61,5 +60,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/prepared_update.h b/include/sqlpp11/prepared_update.h index 885e8056..8f15b74a 100644 --- a/include/sqlpp11/prepared_update.h +++ b/include/sqlpp11/prepared_update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_PREPARED_UPDATE_H -#define SQLPP11_PREPARED_UPDATE_H - #include #include #include @@ -58,5 +57,3 @@ namespace sqlpp mutable _prepared_statement_t _prepared_statement; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/remove.h b/include/sqlpp11/remove.h index 209f6cdf..99a44080 100644 --- a/include/sqlpp11/remove.h +++ b/include/sqlpp11/remove.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_REMOVE_H -#define SQLPP11_REMOVE_H - #include #include #include @@ -123,5 +122,3 @@ namespace sqlpp return {blank_remove_t().from(table)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/result.h b/include/sqlpp11/result.h index 541982a9..58b0bd10 100644 --- a/include/sqlpp11/result.h +++ b/include/sqlpp11/result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_H -#define SQLPP11_RESULT_H - #include #include #include @@ -170,5 +169,3 @@ namespace sqlpp } }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/result_field.h b/include/sqlpp11/result_field.h index 2c98f990..bcfd965b 100644 --- a/include/sqlpp11/result_field.h +++ b/include/sqlpp11/result_field.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_FIELD_H -#define SQLPP11_RESULT_FIELD_H - #include #include #include @@ -61,4 +60,3 @@ namespace sqlpp return serialize(rf, os); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/result_field_base.h b/include/sqlpp11/result_field_base.h index c7b990d5..9206ebd6 100644 --- a/include/sqlpp11/result_field_base.h +++ b/include/sqlpp11/result_field_base.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_FIELD_BASE_H -#define SQLPP11_RESULT_FIELD_BASE_H - #include #include #include @@ -113,4 +112,3 @@ namespace sqlpp _cpp_storage_type _value; }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/result_row.h b/include/sqlpp11/result_row.h index de0eab8a..a6241b62 100644 --- a/include/sqlpp11/result_row.h +++ b/include/sqlpp11/result_row.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_ROW_H -#define SQLPP11_RESULT_ROW_H - #include #include #include @@ -363,5 +362,3 @@ namespace sqlpp row._apply(callable); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/result_row_fwd.h b/include/sqlpp11/result_row_fwd.h index 3562ad9f..e0ea5ef7 100644 --- a/include/sqlpp11/result_row_fwd.h +++ b/include/sqlpp11/result_row_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_RESULT_ROW_FWD_H -#define SQLPP11_RESULT_ROW_FWD_H - namespace sqlpp { template @@ -35,5 +34,3 @@ namespace sqlpp template struct dynamic_result_row_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/schema.h b/include/sqlpp11/schema.h index d44fc303..b7a8e721 100644 --- a/include/sqlpp11/schema.h +++ b/include/sqlpp11/schema.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SCHEMA_H -#define SQLPP11_SCHEMA_H - #include namespace sqlpp @@ -43,5 +42,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/schema_qualified_table.h b/include/sqlpp11/schema_qualified_table.h index e92da9e8..a8de5f12 100644 --- a/include/sqlpp11/schema_qualified_table.h +++ b/include/sqlpp11/schema_qualified_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SCHEMA_QUALIFIED_TABLE_H -#define SQLPP11_SCHEMA_QUALIFIED_TABLE_H - #include #include #include @@ -84,5 +83,3 @@ namespace sqlpp return {schema, table}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index 8dd84bd4..d15ed5c5 100644 --- a/include/sqlpp11/select.h +++ b/include/sqlpp11/select.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_H -#define SQLPP11_SELECT_H - #include #include @@ -106,4 +105,3 @@ namespace sqlpp return blank_select_t().columns(columns...); } } // namespace sqlpp -#endif diff --git a/include/sqlpp11/select_column_list.h b/include/sqlpp11/select_column_list.h index 88d66b3d..edfa2fc0 100644 --- a/include/sqlpp11/select_column_list.h +++ b/include/sqlpp11/select_column_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_COLUMN_LIST_H -#define SQLPP11_SELECT_COLUMN_LIST_H - #include #include #include @@ -450,5 +449,3 @@ namespace sqlpp return statement_t().dynamic_columns(std::forward(t)...); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select_flag_list.h b/include/sqlpp11/select_flag_list.h index 5c27ca73..8a2cfd2e 100644 --- a/include/sqlpp11/select_flag_list.h +++ b/include/sqlpp11/select_flag_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_FLAG_LIST_H -#define SQLPP11_SELECT_FLAG_LIST_H - #include #include #include @@ -265,5 +264,3 @@ namespace sqlpp return statement_t().dynamic_flags(std::forward(t)); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select_flags.h b/include/sqlpp11/select_flags.h index d906f5a1..2ce0cba8 100644 --- a/include/sqlpp11/select_flags.h +++ b/include/sqlpp11/select_flags.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_FLAGS_H -#define SQLPP11_SELECT_FLAGS_H - #include #include #include @@ -77,5 +76,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/select_pseudo_table.h b/include/sqlpp11/select_pseudo_table.h index 8327efb8..d3ce771b 100644 --- a/include/sqlpp11/select_pseudo_table.h +++ b/include/sqlpp11/select_pseudo_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SELECT_PSEUDO_TABLE_H -#define SQLPP11_SELECT_PSEUDO_TABLE_H - #include #include @@ -81,5 +80,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/serialize.h b/include/sqlpp11/serialize.h index b92bf174..76f735ab 100644 --- a/include/sqlpp11/serialize.h +++ b/include/sqlpp11/serialize.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SERIALIZE_H -#define SQLPP11_SERIALIZE_H - #include namespace sqlpp @@ -48,5 +47,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/serializer_context.h b/include/sqlpp11/serializer_context.h index 3a79cad3..42f7d44a 100644 --- a/include/sqlpp11/serializer_context.h +++ b/include/sqlpp11/serializer_context.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SERIALIZER_CONTEXT_H -#define SQLPP11_SERIALIZER_CONTEXT_H - #include namespace sqlpp @@ -64,5 +63,3 @@ namespace sqlpp std::ostream& _os; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/simple_column.h b/include/sqlpp11/simple_column.h index f1304e6a..7d5060e4 100644 --- a/include/sqlpp11/simple_column.h +++ b/include/sqlpp11/simple_column.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SIMPLE_COLUMN_H -#define SQLPP11_SIMPLE_COLUMN_H - #include namespace sqlpp @@ -60,5 +59,3 @@ namespace sqlpp return {c}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/single_table.h b/include/sqlpp11/single_table.h index 46ad77c3..ac5ec482 100644 --- a/include/sqlpp11/single_table.h +++ b/include/sqlpp11/single_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SINGLE_TABLE_H -#define SQLPP11_SINGLE_TABLE_H - #include #include #include @@ -197,5 +196,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/some.h b/include/sqlpp11/some.h index ebef753d..1024f086 100644 --- a/include/sqlpp11/some.h +++ b/include/sqlpp11/some.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SOME_H -#define SQLPP11_SOME_H - #include #include #include @@ -70,5 +69,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/sort_order.h b/include/sqlpp11/sort_order.h index 10795ef7..72d0ab6d 100644 --- a/include/sqlpp11/sort_order.h +++ b/include/sqlpp11/sort_order.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SORT_ORDER_H -#define SQLPP11_SORT_ORDER_H - #include namespace sqlpp @@ -65,5 +64,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/sqlite3/bind_result.h b/include/sqlpp11/sqlite3/bind_result.h index 614b68cc..b47d99aa 100644 --- a/include/sqlpp11/sqlite3/bind_result.h +++ b/include/sqlpp11/sqlite3/bind_result.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_BIND_RESULT_H -#define SQLPP_SQLITE3_BIND_RESULT_H - #include #include #include @@ -319,5 +318,3 @@ namespace sqlpp #ifdef _MSC_VER #pragma warning(pop) #endif - -#endif diff --git a/include/sqlpp11/sqlite3/connection.h b/include/sqlpp11/sqlite3/connection.h index d5f1bb4a..a8457143 100644 --- a/include/sqlpp11/sqlite3/connection.h +++ b/include/sqlpp11/sqlite3/connection.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2016, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_CONNECTION_H -#define SQLPP_SQLITE3_CONNECTION_H - #ifdef SQLPP_USE_SQLCIPHER #include #else @@ -624,5 +623,3 @@ namespace sqlpp #endif #include - -#endif diff --git a/include/sqlpp11/sqlite3/connection_config.h b/include/sqlpp11/sqlite3/connection_config.h index 4f7603dc..f73bd006 100644 --- a/include/sqlpp11/sqlite3/connection_config.h +++ b/include/sqlpp11/sqlite3/connection_config.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_CONNECTION_CONFIG_H -#define SQLPP_SQLITE3_CONNECTION_CONFIG_H - #include #include @@ -69,5 +68,3 @@ namespace sqlpp }; } } - -#endif diff --git a/include/sqlpp11/sqlite3/dynamic_libsqlite3.h b/include/sqlpp11/sqlite3/dynamic_libsqlite3.h index c5e4ecd7..b1f0162c 100644 --- a/include/sqlpp11/sqlite3/dynamic_libsqlite3.h +++ b/include/sqlpp11/sqlite3/dynamic_libsqlite3.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2017, Volker Aßmann * All rights reserved. @@ -23,8 +25,6 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef DYNAMIC_LIBSQLITE3_H -#define DYNAMIC_LIBSQLITE3_H #ifdef SQLPP_USE_SQLCIPHER #include @@ -234,4 +234,3 @@ namespace sqlpp #undef DYNDEFINE #endif -#endif // DYNAMIC_LIBSQLITE3_H diff --git a/include/sqlpp11/sqlite3/export.h b/include/sqlpp11/sqlite3/export.h index 4f387562..ec8ac458 100644 --- a/include/sqlpp11/sqlite3/export.h +++ b/include/sqlpp11/sqlite3/export.h @@ -1,5 +1,4 @@ -#ifndef SQLPP_SQLITE3_EXPORT_H -#define SQLPP_SQLITE3_EXPORT_H +#pragma once #ifdef _WIN32 #ifdef SQLPP11_SHARED @@ -14,5 +13,3 @@ #else #define SQLPP11_SQLITE3_EXPORT #endif - -#endif diff --git a/include/sqlpp11/sqlite3/insert_or.h b/include/sqlpp11/sqlite3/insert_or.h index bbd92706..00ded378 100644 --- a/include/sqlpp11/sqlite3/insert_or.h +++ b/include/sqlpp11/sqlite3/insert_or.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_INSERT_OR_H -#define SQLPP_SQLITE3_INSERT_OR_H - #include #include #include @@ -150,5 +149,3 @@ namespace sqlpp } } } - -#endif diff --git a/include/sqlpp11/sqlite3/prepared_statement.h b/include/sqlpp11/sqlite3/prepared_statement.h index 30158a96..bda11914 100644 --- a/include/sqlpp11/sqlite3/prepared_statement.h +++ b/include/sqlpp11/sqlite3/prepared_statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_PREPARED_STATEMENT_H -#define SQLPP_SQLITE3_PREPARED_STATEMENT_H - #include #include #include @@ -254,5 +253,3 @@ namespace sqlpp #ifdef _MSC_VER #pragma warning(pop) #endif - -#endif diff --git a/include/sqlpp11/sqlite3/prepared_statement_handle.h b/include/sqlpp11/sqlite3/prepared_statement_handle.h index 6af1ab6f..d06bce94 100644 --- a/include/sqlpp11/sqlite3/prepared_statement_handle.h +++ b/include/sqlpp11/sqlite3/prepared_statement_handle.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_PREPARED_STATEMENT_HANDLE_H -#define SQLPP_SQLITE3_PREPARED_STATEMENT_HANDLE_H - #include #include #include @@ -95,5 +94,3 @@ namespace sqlpp #ifdef _MSC_VER #pragma warning(pop) #endif - -#endif diff --git a/include/sqlpp11/sqlite3/serializer.h b/include/sqlpp11/sqlite3/serializer.h index 7bfa7b75..b4b02cd1 100644 --- a/include/sqlpp11/sqlite3/serializer.h +++ b/include/sqlpp11/sqlite3/serializer.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_SERIALIZER_H -#define SQLPP_SQLITE3_SERIALIZER_H - #ifdef SQLPP_USE_SQLCIPHER #include #else @@ -136,5 +135,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/sqlite3/sqlite3.h b/include/sqlpp11/sqlite3/sqlite3.h index c53977a3..10480258 100644 --- a/include/sqlpp11/sqlite3/sqlite3.h +++ b/include/sqlpp11/sqlite3/sqlite3.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * Copyright (c) 2023, Vesselin Atanasov @@ -25,11 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_SQLITE3_H -#define SQLPP_SQLITE3_H - #include #include #include - -#endif diff --git a/include/sqlpp11/sqlpp11.h b/include/sqlpp11/sqlpp11.h index 19fe7244..cf0f845b 100644 --- a/include/sqlpp11/sqlpp11.h +++ b/include/sqlpp11/sqlpp11.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_SQLPP11_H -#define SQLPP11_SQLPP11_H - #include #include #include @@ -39,5 +38,3 @@ #include #include #include - -#endif diff --git a/include/sqlpp11/statement.h b/include/sqlpp11/statement.h index 6da71842..4b56d84c 100644 --- a/include/sqlpp11/statement.h +++ b/include/sqlpp11/statement.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_STATEMENT_H -#define SQLPP11_STATEMENT_H - #include #include #include @@ -317,5 +316,3 @@ namespace sqlpp }; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/statement_fwd.h b/include/sqlpp11/statement_fwd.h index c626dba9..f29b5cb6 100644 --- a/include/sqlpp11/statement_fwd.h +++ b/include/sqlpp11/statement_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_STATEMENT_FWD_H -#define SQLPP11_STATEMENT_FWD_H - namespace sqlpp { template struct statement_t; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/table.h b/include/sqlpp11/table.h index 169ced39..cb78cd81 100644 --- a/include/sqlpp11/table.h +++ b/include/sqlpp11/table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TABLE_H -#define SQLPP11_TABLE_H - #include #include #include @@ -107,5 +106,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/table_alias.h b/include/sqlpp11/table_alias.h index 1be2e8cd..5fe6770a 100644 --- a/include/sqlpp11/table_alias.h +++ b/include/sqlpp11/table_alias.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TABLE_ALIAS_H -#define SQLPP11_TABLE_ALIAS_H - #include #include #include @@ -115,5 +114,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/table_ref.h b/include/sqlpp11/table_ref.h index 8a0c32a1..afa6287c 100644 --- a/include/sqlpp11/table_ref.h +++ b/include/sqlpp11/table_ref.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TABLE_REF_H -#define SQLPP11_TABLE_REF_H - #include namespace sqlpp @@ -51,5 +50,3 @@ namespace sqlpp return t; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/transaction.h b/include/sqlpp11/transaction.h index 353b461e..9635edbd 100644 --- a/include/sqlpp11/transaction.h +++ b/include/sqlpp11/transaction.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TRANSACTION_H -#define SQLPP11_TRANSACTION_H - #include #include #include @@ -121,5 +120,3 @@ namespace sqlpp return {db, report_unfinished_transaction, isolation}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/trim.h b/include/sqlpp11/trim.h index 9f8eac74..3eec5492 100644 --- a/include/sqlpp11/trim.h +++ b/include/sqlpp11/trim.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * Copyright (c) 2017, Juan Dent @@ -25,9 +27,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TRIM_H -#define SQLPP11_TRIM_H - #include #include #include @@ -96,5 +95,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/type_traits.h b/include/sqlpp11/type_traits.h index 85d16f74..9769c600 100644 --- a/include/sqlpp11/type_traits.h +++ b/include/sqlpp11/type_traits.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2017, Roland Bock, Aaron Bishop * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_TYPE_TRAITS_H -#define SQLPP11_TYPE_TRAITS_H - #include #include #include @@ -567,5 +566,3 @@ namespace sqlpp template using serializer_context_of = typename serializer_context_of_impl::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/unconditional.h b/include/sqlpp11/unconditional.h index 4d48b573..5d148c68 100644 --- a/include/sqlpp11/unconditional.h +++ b/include/sqlpp11/unconditional.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,13 +26,9 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNCONDITIONAL_H -#define SQLPP11_UNCONDITIONAL_H - namespace sqlpp { struct unconditional_t { }; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/union.h b/include/sqlpp11/union.h index 048435b5..5fa19141 100644 --- a/include/sqlpp11/union.h +++ b/include/sqlpp11/union.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNION_H -#define SQLPP11_UNION_H - #include #include #include @@ -267,5 +266,3 @@ namespace sqlpp } */ } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/union_data.h b/include/sqlpp11/union_data.h index a2ff2888..bb3c8bcd 100644 --- a/include/sqlpp11/union_data.h +++ b/include/sqlpp11/union_data.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNION_DATA_H -#define SQLPP11_UNION_DATA_H - namespace sqlpp { template @@ -58,5 +57,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/union_flags.h b/include/sqlpp11/union_flags.h index c30e4ba1..e5c36d67 100644 --- a/include/sqlpp11/union_flags.h +++ b/include/sqlpp11/union_flags.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UNION_FLAGS_H -#define SQLPP11_UNION_FLAGS_H - #include #include #include @@ -60,5 +59,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/update.h b/include/sqlpp11/update.h index 860ed54c..d7dff83c 100644 --- a/include/sqlpp11/update.h +++ b/include/sqlpp11/update.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UPDATE_H -#define SQLPP11_UPDATE_H - #include #include #include @@ -112,5 +111,3 @@ namespace sqlpp return {blank_update_t().single_table(table)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/update_list.h b/include/sqlpp11/update_list.h index a86f45f9..3e06c108 100644 --- a/include/sqlpp11/update_list.h +++ b/include/sqlpp11/update_list.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UPDATE_LIST_H -#define SQLPP11_UPDATE_LIST_H - #include #include #include @@ -303,5 +302,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/upper.h b/include/sqlpp11/upper.h index c07f74fe..0b26221e 100644 --- a/include/sqlpp11/upper.h +++ b/include/sqlpp11/upper.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2023, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_UPPER_H -#define SQLPP11_UPPER_H - #include #include #include @@ -95,5 +94,3 @@ namespace sqlpp } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/using.h b/include/sqlpp11/using.h index 2f8e2047..1518a324 100644 --- a/include/sqlpp11/using.h +++ b/include/sqlpp11/using.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_USING_H -#define SQLPP11_USING_H - #include #include #include @@ -253,5 +252,3 @@ namespace sqlpp return context; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/value.h b/include/sqlpp11/value.h index 66d66718..35caada7 100644 --- a/include/sqlpp11/value.h +++ b/include/sqlpp11/value.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_H -#define SQLPP11_VALUE_H - #include #include #include @@ -47,5 +46,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/value_or_null.h b/include/sqlpp11/value_or_null.h index 52c3f10d..7bb1aae1 100644 --- a/include/sqlpp11/value_or_null.h +++ b/include/sqlpp11/value_or_null.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_OR_NULL_H -#define SQLPP11_VALUE_OR_NULL_H - #include #include #include @@ -84,5 +83,3 @@ namespace sqlpp return {t}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/value_type.h b/include/sqlpp11/value_type.h index 86148857..7fa338c2 100644 --- a/include/sqlpp11/value_type.h +++ b/include/sqlpp11/value_type.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_TYPE_H -#define SQLPP11_VALUE_TYPE_H - #include #include @@ -35,4 +34,3 @@ namespace sqlpp template using value_type_t = value_type_of>; } // namespace sqlpp -#endif diff --git a/include/sqlpp11/value_type_fwd.h b/include/sqlpp11/value_type_fwd.h index 943c354a..e659cc8f 100644 --- a/include/sqlpp11/value_type_fwd.h +++ b/include/sqlpp11/value_type_fwd.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VALUE_TYPE_FWD_H -#define SQLPP11_VALUE_TYPE_FWD_H - #include namespace sqlpp @@ -52,5 +51,3 @@ namespace sqlpp ; }; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/verbatim.h b/include/sqlpp11/verbatim.h index 65397cf7..04cdbdda 100644 --- a/include/sqlpp11/verbatim.h +++ b/include/sqlpp11/verbatim.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VERBATIM_H -#define SQLPP11_VERBATIM_H - #include #include #include @@ -74,5 +73,3 @@ namespace sqlpp return {std::move(s)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/verbatim_table.h b/include/sqlpp11/verbatim_table.h index 46c45905..f111cbe5 100644 --- a/include/sqlpp11/verbatim_table.h +++ b/include/sqlpp11/verbatim_table.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_VERBATIM_TABLE_H -#define SQLPP11_VERBATIM_TABLE_H - #include #include #include @@ -87,5 +86,3 @@ namespace sqlpp return {std::move(name)}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/where.h b/include/sqlpp11/where.h index 32cdb8c7..9d3d854a 100644 --- a/include/sqlpp11/where.h +++ b/include/sqlpp11/where.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WHERE_H -#define SQLPP11_WHERE_H - #include #include #include @@ -417,5 +416,3 @@ namespace sqlpp return statement_t>().unconditionally(); } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/with.h b/include/sqlpp11/with.h index 7c364439..a6405e8c 100644 --- a/include/sqlpp11/with.h +++ b/include/sqlpp11/with.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2016, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WITH_H -#define SQLPP11_WITH_H - #include #include #include @@ -215,5 +214,3 @@ namespace sqlpp return {{cte...}}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/without_table_check.h b/include/sqlpp11/without_table_check.h index 3ab70010..2db10d11 100644 --- a/include/sqlpp11/without_table_check.h +++ b/include/sqlpp11/without_table_check.h @@ -1,5 +1,4 @@ -#ifndef SQLPP11_WITHOUT_TABLE_CHECK_H -#define SQLPP11_WITHOUT_TABLE_CHECK_H +#pragma once /* * Copyright (c) 2016-2016, Roland Bock @@ -59,5 +58,3 @@ namespace sqlpp return {expr}; } } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/wrap_operand.h b/include/sqlpp11/wrap_operand.h index b14b03e3..114f9a96 100644 --- a/include/sqlpp11/wrap_operand.h +++ b/include/sqlpp11/wrap_operand.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WRAP_OPERAND_H -#define SQLPP11_WRAP_OPERAND_H - namespace sqlpp { template @@ -38,5 +37,3 @@ namespace sqlpp template using wrap_operand_t = typename wrap_operand::type; } // namespace sqlpp - -#endif diff --git a/include/sqlpp11/wrong.h b/include/sqlpp11/wrong.h index 1ed403e0..c52f0d35 100644 --- a/include/sqlpp11/wrong.h +++ b/include/sqlpp11/wrong.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP11_WRONG_H -#define SQLPP11_WRONG_H - #include namespace sqlpp @@ -45,4 +44,3 @@ namespace sqlpp template using wrong_t = typename detail::wrong::type; } // namespace sqlpp -#endif diff --git a/scripts/ddl2cpp b/scripts/ddl2cpp index ab392fec..5876a383 100755 --- a/scripts/ddl2cpp +++ b/scripts/ddl2cpp @@ -518,9 +518,9 @@ def escape_if_reserved(name): def beginHeader(pathToHeader, namespace, nsList): header = open(pathToHeader, "w") + print('#pragma once', file=header) + print('', file=header) print("// generated by " + " ".join(sys.argv), file=header) - print("#ifndef " + get_include_guard_name(namespace, pathToHeader), file=header) - print("#define " + get_include_guard_name(namespace, pathToHeader), file=header) print("", file=header) print("#include ", file=header) print("#include ", file=header) @@ -535,7 +535,6 @@ def beginHeader(pathToHeader, namespace, nsList): def endHeader(header, nsList): for ns in reversed(nsList): print("} // namespace " + ns, file=header) - print("#endif", file=header) header.close() diff --git a/scripts/sqlite2cpp.py b/scripts/sqlite2cpp.py index acc34844..8b61e798 100644 --- a/scripts/sqlite2cpp.py +++ b/scripts/sqlite2cpp.py @@ -71,9 +71,9 @@ def main(): nsList = namespace.split('::') # start printing + print('#pragma once', file=header) + print('', file=header) print('// generated by ' + ' '.join(sys.argv), file=header) - print('#ifndef '+get_include_guard_name(namespace, pathToHeader), file=header) - print('#define '+get_include_guard_name(namespace, pathToHeader), file=header) print('', file=header) print('#include <' + INCLUDE + '/table.h>', file=header) print('#include <' + INCLUDE + '/data_types.h>', file=header) @@ -164,7 +164,6 @@ def main(): for ns in reversed(nsList): print('} // namespace ' + ns, file=header) - print('#endif', file=header) if (DataTypeError): print("Error: unsupported datatypes." ) diff --git a/tests/core/serialize/compare.h b/tests/core/serialize/compare.h index 3dec0039..52c75e48 100644 --- a/tests/core/serialize/compare.h +++ b/tests/core/serialize/compare.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TEST_SERIALIZER_H -#define SQLPP_TEST_SERIALIZER_H - #include "MockDb.h" #include @@ -52,5 +51,3 @@ namespace assert_equal(lineNo, result, expected); } } - -#endif diff --git a/tests/core/static_asserts/AssertTables.h b/tests/core/static_asserts/AssertTables.h index d21dae53..bdc48bfc 100644 --- a/tests/core/static_asserts/AssertTables.h +++ b/tests/core/static_asserts/AssertTables.h @@ -1,6 +1,6 @@ +#pragma once + // generated by ../scripts/ddl2cpp ../test_static_asserts/AssertTables.sql ../test_static_asserts/AssertTables test -#ifndef TEST_ASSERTTABLES_H -#define TEST_ASSERTTABLES_H #include #include @@ -310,4 +310,3 @@ namespace test }; }; } -#endif diff --git a/tests/core/usage/MockDb.h b/tests/core/usage/MockDb.h index 96947365..8a58cb34 100644 --- a/tests/core/usage/MockDb.h +++ b/tests/core/usage/MockDb.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_MOCK_DB_H -#define SQLPP_MOCK_DB_H - #include #include #include @@ -495,5 +494,3 @@ struct MockSizeDb : public sqlpp::connection // temporary data store to verify the expected results were produced InternalMockData _mock_data; }; - -#endif diff --git a/tests/core/usage/Sample.h b/tests/core/usage/Sample.h index d0119149..e73f9930 100644 --- a/tests/core/usage/Sample.h +++ b/tests/core/usage/Sample.h @@ -1,5 +1,4 @@ -#ifndef TEST_SAMPLE_H -#define TEST_SAMPLE_H +#pragma once #include #include @@ -349,4 +348,3 @@ namespace test }; }; } // namespace test -#endif diff --git a/tests/core/usage/is_regular.h b/tests/core/usage/is_regular.h index 6c4fdf7e..47fed5c5 100644 --- a/tests/core/usage/is_regular.h +++ b/tests/core/usage/is_regular.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -24,9 +26,6 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_IS_REGULAR_H -#define SQLPP_IS_REGULAR_H - #include namespace sqlpp @@ -58,5 +57,3 @@ namespace sqlpp ; }; } - -#endif diff --git a/tests/mysql/serialize/compare.h b/tests/mysql/serialize/compare.h index 9bf6b059..7378ad96 100644 --- a/tests/mysql/serialize/compare.h +++ b/tests/mysql/serialize/compare.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TESTS_MYSQL_COMPARE_H -#define SQLPP_TESTS_MYSQL_COMPARE_H - #include #include @@ -68,5 +67,3 @@ namespace assert_equal(lineNo, result, expected); } } // namespace - -#endif diff --git a/tests/mysql/usage/TabJson.h b/tests/mysql/usage/TabJson.h index 40f80ead..7772f49a 100644 --- a/tests/mysql/usage/TabJson.h +++ b/tests/mysql/usage/TabJson.h @@ -1,6 +1,6 @@ +#pragma once + // generated by ../../sqlpp11/scripts/ddl2cpp ../tests/TabJson.sql ../tests/TabJson test -#ifndef TEST_TABJSON_H -#define TEST_TABJSON_H #include #include @@ -45,4 +45,3 @@ namespace test }; }; } // namespace test -#endif diff --git a/tests/mysql/usage/TabSample.h b/tests/mysql/usage/TabSample.h index 8bb8114a..f846d94f 100644 --- a/tests/mysql/usage/TabSample.h +++ b/tests/mysql/usage/TabSample.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TAB_SAMPLE_H -#define SQLPP_TAB_SAMPLE_H - #include #include #include @@ -259,5 +258,3 @@ struct TabDateTime : sqlpp::table_t #include @@ -55,5 +54,3 @@ namespace assert_equal(lineNo, result, expected); } } // namespace - -#endif diff --git a/tests/postgresql/usage/BlobSample.h b/tests/postgresql/usage/BlobSample.h index b71f14c0..5cfac5cb 100644 --- a/tests/postgresql/usage/BlobSample.h +++ b/tests/postgresql/usage/BlobSample.h @@ -1,6 +1,6 @@ +#pragma once + // generated by scripts/ddl2cpp tests/postgresql/usage/BlobSample.sql tests/postgresql/usage/BlobSample model -#ifndef MODEL_BLOBSAMPLE_H -#define MODEL_BLOBSAMPLE_H #include #include @@ -62,4 +62,3 @@ namespace model }; }; } // namespace model -#endif diff --git a/tests/postgresql/usage/TabBar.h b/tests/postgresql/usage/TabBar.h index e9c299af..6d668c4b 100644 --- a/tests/postgresql/usage/TabBar.h +++ b/tests/postgresql/usage/TabBar.h @@ -1,5 +1,4 @@ -#ifndef MODEL_TABBAR_H -#define MODEL_TABBAR_H +#pragma once #include #include @@ -57,5 +56,3 @@ namespace model }; }; } - -#endif diff --git a/tests/postgresql/usage/TabDateTime.h b/tests/postgresql/usage/TabDateTime.h index 597eeb86..85a6b44f 100644 --- a/tests/postgresql/usage/TabDateTime.h +++ b/tests/postgresql/usage/TabDateTime.h @@ -1,5 +1,4 @@ -#ifndef MODEL_TABDATETIME_H -#define MODEL_TABDATETIME_H +#pragma once #include #include @@ -108,5 +107,3 @@ namespace model }; }; } - -#endif diff --git a/tests/postgresql/usage/TabFoo.h b/tests/postgresql/usage/TabFoo.h index 95cbe9a1..cf5d1b58 100644 --- a/tests/postgresql/usage/TabFoo.h +++ b/tests/postgresql/usage/TabFoo.h @@ -1,5 +1,4 @@ -#ifndef MODEL_TABFOO_H -#define MODEL_TABFOO_H +#pragma once #include #include @@ -183,5 +182,3 @@ namespace model }; }; } - -#endif diff --git a/tests/postgresql/usage/TabSample.h b/tests/postgresql/usage/TabSample.h index 54256ae5..c3037d0e 100644 --- a/tests/postgresql/usage/TabSample.h +++ b/tests/postgresql/usage/TabSample.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013 - 2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TAB_SAMPLE_H -#define SQLPP_TAB_SAMPLE_H - #include #include #include @@ -244,5 +243,3 @@ struct TabDateTime : sqlpp::table_t namespace sqlpp @@ -75,5 +73,3 @@ namespace sqlpp } } // namespace postgresql } // namespace sqlpp - -#endif diff --git a/tests/sqlite3/serialize/compare.h b/tests/sqlite3/serialize/compare.h index e821c124..f4483379 100644 --- a/tests/sqlite3/serialize/compare.h +++ b/tests/sqlite3/serialize/compare.h @@ -1,3 +1,5 @@ +#pragma once + /* * Copyright (c) 2013-2015, Roland Bock * All rights reserved. @@ -23,9 +25,6 @@ * OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SQLPP_TESTS_SQLITE3_COMPARE_H -#define SQLPP_TESTS_SQLITE3_COMPARE_H - #include #include @@ -59,5 +58,3 @@ namespace assert_equal(lineNo, result, expected); } } // namespace - -#endif diff --git a/tests/sqlite3/usage/BlobSample.h b/tests/sqlite3/usage/BlobSample.h index 25cce282..a37853f0 100644 --- a/tests/sqlite3/usage/BlobSample.h +++ b/tests/sqlite3/usage/BlobSample.h @@ -1,6 +1,6 @@ +#pragma once + // generated by ../../sqlpp11/scripts/ddl2cpp -fail-on-parse BlobSample.sql BlobSample blob -#ifndef BLOB_BLOBSAMPLE_H -#define BLOB_BLOBSAMPLE_H #include #include @@ -75,4 +75,3 @@ struct BlobSample : sqlpp::table_t #include @@ -75,5 +75,3 @@ struct FpSample : sqlpp::table_t }; }; }; - -#endif diff --git a/tests/sqlite3/usage/IntegralSample.h b/tests/sqlite3/usage/IntegralSample.h index 75c3fee5..207dec54 100644 --- a/tests/sqlite3/usage/IntegralSample.h +++ b/tests/sqlite3/usage/IntegralSample.h @@ -1,5 +1,4 @@ -#ifndef INTEGRAL_SAMPLE_H -#define INTEGRAL_SAMPLE_H +#pragma once #include #include @@ -75,5 +74,3 @@ struct IntegralSample : sqlpp::table_t #include #include @@ -246,5 +245,3 @@ struct TabDateTime : sqlpp::table_t