mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
Added a few comments for better orientation
This commit is contained in:
parent
5ddaaeeac8
commit
1d52d59e57
@ -48,6 +48,7 @@ namespace sqlpp
|
||||
using _is_valid_operand = is_boolean_t<T>;
|
||||
};
|
||||
|
||||
// boolean parameter type
|
||||
template<>
|
||||
struct parameter_value_t<boolean>
|
||||
{
|
||||
@ -116,6 +117,7 @@ namespace sqlpp
|
||||
bool _is_null;
|
||||
};
|
||||
|
||||
// boolean expression operators
|
||||
template<typename Base>
|
||||
struct expression_operators<Base, boolean>: public basic_expression_operators<Base, boolean>
|
||||
{
|
||||
@ -146,11 +148,13 @@ namespace sqlpp
|
||||
}
|
||||
};
|
||||
|
||||
// boolean column operators
|
||||
template<typename Base>
|
||||
struct column_operators<Base, boolean>
|
||||
{
|
||||
};
|
||||
|
||||
// boolean result field
|
||||
template<typename Db, typename FieldSpec>
|
||||
struct result_field_t<boolean, Db, FieldSpec>: public result_field_methods_t<result_field_t<boolean, Db, FieldSpec>>
|
||||
{
|
||||
|
@ -46,6 +46,7 @@ namespace sqlpp
|
||||
using _is_valid_operand = is_numeric_t<T>;
|
||||
};
|
||||
|
||||
// floating_point parameter type
|
||||
template<>
|
||||
struct parameter_value_t<floating_point>
|
||||
{
|
||||
@ -114,6 +115,7 @@ namespace sqlpp
|
||||
bool _is_null;
|
||||
};
|
||||
|
||||
// floating_point expression operators
|
||||
template<typename Expr>
|
||||
struct expression_operators<Expr, floating_point>:
|
||||
public basic_expression_operators<Expr, floating_point>
|
||||
@ -166,6 +168,7 @@ namespace sqlpp
|
||||
}
|
||||
};
|
||||
|
||||
// floating_point column operators
|
||||
template<typename Column>
|
||||
struct column_operators<Column, floating_point>
|
||||
{
|
||||
@ -208,6 +211,7 @@ namespace sqlpp
|
||||
return { *static_cast<const Column*>(this), { *static_cast<const Column*>(this), rhs{t} } };
|
||||
}
|
||||
};
|
||||
// floating_point result field
|
||||
template<typename Db, typename FieldSpec>
|
||||
struct result_field_t<floating_point, Db, FieldSpec>: public result_field_methods_t<result_field_t<floating_point, Db, FieldSpec>>
|
||||
{
|
||||
|
@ -48,6 +48,7 @@ namespace sqlpp
|
||||
using _is_valid_operand = is_numeric_t<T>;
|
||||
};
|
||||
|
||||
// integral parameter value
|
||||
template<>
|
||||
struct parameter_value_t<integral>
|
||||
{
|
||||
@ -115,6 +116,7 @@ namespace sqlpp
|
||||
bool _is_null;
|
||||
};
|
||||
|
||||
// integral expression operators
|
||||
template<typename Base>
|
||||
struct expression_operators<Base, integral>: public basic_expression_operators<Base, integral>
|
||||
{
|
||||
@ -196,6 +198,7 @@ namespace sqlpp
|
||||
|
||||
};
|
||||
|
||||
// integral column operators
|
||||
template<typename Base>
|
||||
struct column_operators<Base, integral>
|
||||
{
|
||||
@ -239,6 +242,7 @@ namespace sqlpp
|
||||
}
|
||||
};
|
||||
|
||||
// integral result field
|
||||
template<typename Db, typename FieldSpec>
|
||||
struct result_field_t<integral, Db, FieldSpec>: public result_field_methods_t<result_field_t<integral, Db, FieldSpec>>
|
||||
{
|
||||
@ -309,6 +313,7 @@ namespace sqlpp
|
||||
_cpp_value_type _value;
|
||||
};
|
||||
|
||||
// ostream operator for integral result field
|
||||
template<typename Db, typename FieldSpec>
|
||||
inline std::ostream& operator<<(std::ostream& os, const result_field_t<integral, Db, FieldSpec>& e)
|
||||
{
|
||||
|
@ -47,6 +47,7 @@ namespace sqlpp
|
||||
using _is_valid_operand = is_text_t<T>;
|
||||
};
|
||||
|
||||
// text parameter type
|
||||
template<>
|
||||
struct parameter_value_t<text>
|
||||
{
|
||||
@ -116,6 +117,8 @@ namespace sqlpp
|
||||
};
|
||||
|
||||
|
||||
// text expression operators
|
||||
template<>
|
||||
template<typename Base>
|
||||
struct expression_operators<Base, text>: public basic_expression_operators<Base, text>
|
||||
{
|
||||
@ -141,6 +144,7 @@ namespace sqlpp
|
||||
}
|
||||
};
|
||||
|
||||
// text column operators
|
||||
template<typename Base>
|
||||
struct column_operators<Base, text>
|
||||
{
|
||||
@ -157,6 +161,7 @@ namespace sqlpp
|
||||
}
|
||||
};
|
||||
|
||||
// text result field
|
||||
template<typename Db, typename FieldSpec>
|
||||
struct result_field_t<text, Db, FieldSpec>: public result_field_methods_t<result_field_t<text, Db, FieldSpec>>
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user