Skip to content

Commit

Permalink
Merge pull request #1219 from fnc12/fts5
Browse files Browse the repository at this point in the history
refactored serialize declaration
  • Loading branch information
fnc12 authored Oct 3, 2023
2 parents 26b7a3e + 4595779 commit 7287b95
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions dev/column_names_getter.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ namespace sqlite_orm {

namespace internal {

template<class T, class DBOs>
std::string serialize(const T&, const serializer_context<DBOs>&);
template<class T, class C>
std::string serialize(const T& t, const C& context);

template<class T, class Ctx>
std::vector<std::string>& collect_table_column_names(std::vector<std::string>& collectedExpressions,
Expand Down
4 changes: 2 additions & 2 deletions dev/default_value_extractor.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ namespace sqlite_orm {

namespace internal {

template<class T, class DBOs>
std::string serialize(const T&, const serializer_context<DBOs>&);
template<class T, class C>
std::string serialize(const T& t, const C& context);

/**
* Serialize default value of a column's default valu
Expand Down
4 changes: 2 additions & 2 deletions dev/serializing_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ namespace sqlite_orm {
template<class O>
struct order_by_t;

template<class T, class DBOs>
std::string serialize(const T&, const serializer_context<DBOs>&);
template<class T, class C>
std::string serialize(const T& t, const C& context);

template<class T, class Ctx>
std::string serialize_order_by(const T&, const Ctx&);
Expand Down
4 changes: 2 additions & 2 deletions dev/statement_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ namespace sqlite_orm {
template<class T, class SFINAE = void>
struct statement_serializer;

template<class T, class DBOs>
std::string serialize(const T& t, const serializer_context<DBOs>& context) {
template<class T, class C>
std::string serialize(const T& t, const C& context) {
statement_serializer<T> serializer;
return serializer(t, context);
}
Expand Down
16 changes: 8 additions & 8 deletions include/sqlite_orm/sqlite_orm.h
Original file line number Diff line number Diff line change
Expand Up @@ -10244,8 +10244,8 @@ namespace sqlite_orm {

namespace internal {

template<class T, class DBOs>
std::string serialize(const T&, const serializer_context<DBOs>&);
template<class T, class C>
std::string serialize(const T& t, const C& context);

/**
* Serialize default value of a column's default valu
Expand Down Expand Up @@ -13188,8 +13188,8 @@ namespace sqlite_orm {
template<class O>
struct order_by_t;

template<class T, class DBOs>
std::string serialize(const T&, const serializer_context<DBOs>&);
template<class T, class C>
std::string serialize(const T& t, const C& context);

template<class T, class Ctx>
std::string serialize_order_by(const T&, const Ctx&);
Expand Down Expand Up @@ -15273,8 +15273,8 @@ namespace sqlite_orm {

namespace internal {

template<class T, class DBOs>
std::string serialize(const T&, const serializer_context<DBOs>&);
template<class T, class C>
std::string serialize(const T& t, const C& context);

template<class T, class Ctx>
std::vector<std::string>& collect_table_column_names(std::vector<std::string>& collectedExpressions,
Expand Down Expand Up @@ -15469,8 +15469,8 @@ namespace sqlite_orm {
template<class T, class SFINAE = void>
struct statement_serializer;

template<class T, class DBOs>
std::string serialize(const T& t, const serializer_context<DBOs>& context) {
template<class T, class C>
std::string serialize(const T& t, const C& context) {
statement_serializer<T> serializer;
return serializer(t, context);
}
Expand Down

0 comments on commit 7287b95

Please sign in to comment.