mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Merge branch 'Erroneous1-feature/extra_data_types' into develop
This commit is contained in:
commit
47bc9d3942
@ -139,7 +139,11 @@ To demonstrate that sqlpp11 can work with other backends as well, here is an exp
|
|||||||
* STL Container: https://github.com/rbock/sqlpp11-connector-stl
|
* STL Container: https://github.com/rbock/sqlpp11-connector-stl
|
||||||
|
|
||||||
__Date Library:__
|
__Date Library:__
|
||||||
sqlpp11 requires [Howard Hinnant's date library](https://github.com/HowardHinnant/date) for `date` and `date_time` data types.
|
sqlpp11 requires [Howard Hinnant's date library](https://github.com/HowardHinnant/date) for `date` and `date_time` data types. Sqlpp11 includes CMake search module for this, but if you didn't install this library system-wide, you should modify CMakeLists.txt or add some flags to compile sqlpp11:
|
||||||
|
|
||||||
|
```
|
||||||
|
cmake -DHinnantDate_ROOT_DIR=/%PATH_TO_HinnantDate_SOURCE%/ -DHinnantDate_INCLUDE_DIR=/%PATH_TO_HinnantDate_SOURCE%/
|
||||||
|
```
|
||||||
|
|
||||||
Basic usage:
|
Basic usage:
|
||||||
-------------
|
-------------
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user