mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
added common SQL data types like binary and bit
This commit is contained in:
parent
e271e3e4fb
commit
24ca3b2217
@ -39,6 +39,8 @@ namespace sqlpp
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
using _is_valid_operand = is_boolean_t<T>;
|
using _is_valid_operand = is_boolean_t<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using bit = sqlpp::boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -42,5 +42,7 @@ namespace sqlpp
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
using _is_valid_assignment_operand = is_day_point_t<T>;
|
using _is_valid_assignment_operand = is_day_point_t<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using date = day_point;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -43,5 +43,7 @@ namespace sqlpp
|
|||||||
using blob = text;
|
using blob = text;
|
||||||
using varchar = text;
|
using varchar = text;
|
||||||
using char_ = text;
|
using char_ = text;
|
||||||
|
using binary = text;
|
||||||
|
using varbinary = text;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -40,5 +40,9 @@ namespace sqlpp
|
|||||||
template <typename T>
|
template <typename T>
|
||||||
using _is_valid_operand = is_day_or_time_point_t<T>;
|
using _is_valid_operand = is_day_or_time_point_t<T>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
using datetime = time_point;
|
||||||
|
using timestamp = time_point;
|
||||||
|
using time = time_point;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user