0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00
Commit Graph

71 Commits

Author SHA1 Message Date
Roland Bock
a915bd9e50 Refactored of result and result row (clearer structure depending on connectors) 2013-12-17 22:12:13 +01:00
Roland Bock
2b43d3bc15 Added default constructor to result field types 2013-12-15 18:52:05 +01:00
Roland Bock
9597c3712c Moved result construction more towards connector.
This will make it easier to handle different formats
2013-12-15 13:02:41 +01:00
Roland Bock
51786a9f1d Added a prepared_select_t type and a prepare method for select
This is not done yet, but it indicates the way to go...
2013-11-28 11:12:44 +01:00
Roland Bock
221e20918b select now collects parameters from Where and Having 2013-11-26 23:45:31 +01:00
Roland Bock
8f99a03359 Can extract parameters from expression 2013-11-22 09:42:28 +01:00
Roland Bock
1aa67c6604 Added parameter and parameter_list
parameters are to be used as placeholders in the query.
parameter lists are to be used to assign values to these parameters and
forward them to the database.
2013-11-19 19:21:58 +01:00
Roland Bock
6f780a9542 Allow non-zero start values for dynamic limit and offset 2013-11-18 07:32:09 +01:00
Roland Bock
8d12d23d67 Added verbatim table 2013-11-16 23:19:37 +01:00
Roland Bock
5304e77f4a Streamlined usage of dynamic and non-dynamic method versions
from, where, having, group_py, order_by, using.

Prepared on() as well
2013-11-16 18:36:05 +01:00
Roland Bock
4b4048bd11 Unified interface for where and dynamic_where.
Compatible with previous interface.
Both where and dynamic where can now take a variable amount of
arguments. where() requires at least one argument.
2013-11-16 09:37:38 +01:00
Roland Bock
81309ce58f Minor cleanup 2013-11-15 10:09:42 +01:00
Roland Bock
e7c6f88d23 Remove clang warning for in() and is_null() 2013-11-15 10:01:45 +01:00
Roland Bock
6db64212b6 Prevent template constructor to overload default copy constructors 2013-11-15 10:00:48 +01:00
Roland Bock
3c5682f3ae Use serializable_list in update and insert 2013-11-15 09:59:44 +01:00
Roland Bock
16e3851847 Prevent template constructor to overload default copy cosntructors 2013-11-15 09:57:30 +01:00
Roland Bock
d3e438606c Added serializable_list (which is a noop for non-dynamic cases) 2013-11-15 09:56:46 +01:00
Roland Bock
9d09127e71 Fixed stupid bug in insert.
Basically nothing would have ever been inserted other than default
lines.
2013-11-10 15:29:20 +01:00
Roland Bock
81c77a58f4 Even moe function tests and a few corrections 2013-11-08 09:09:52 +01:00
Roland Bock
813549690e More function tests and a few corrections for names and return types 2013-11-07 15:06:13 +01:00
Roland Bock
9d94f6770b Added function tests and fixed a few return types 2013-11-07 13:36:54 +01:00
Roland Bock
0a57af0b3d Added tests for integral and floating point 2013-11-07 12:23:49 +01:00
Roland Bock
aae910671e Replaced numeric by integral and floating_point 2013-11-07 11:31:42 +01:00
Roland Bock
d3963e04b6 Added more checks for database traits 2013-11-01 15:25:52 +01:00
Roland Bock
e63a798a82 Started to use flags to indicate database traits
e.g. support for any or outer join, or how string concatenation is
implemented
2013-11-01 12:23:50 +01:00
Roland Bock
a17a8ecfa6 Reduced resource requirements for non-dynamic selects 2013-10-31 09:43:10 +01:00
Roland Bock
7050491bf0 Added support for dynamic columns 2013-10-29 19:32:52 +01:00
Roland Bock
902583a33b Added support for dynamic columns to select_expression_list
Dynamic columns are not yet supported in results, though.
2013-10-09 10:36:38 +02:00
Roland Bock
3718f4a57c Added default constructor for result type 2013-10-05 20:14:05 +02:00
Roland Bock
29165b2ce3 Removed obsolete flag in join types 2013-10-05 20:13:42 +02:00
Roland Bock
cff18e917b Reworked join syntax 2013-10-05 17:35:40 +02:00
Roland Bock
c59c8d9ba9 Reduced likelihood of mistakes in CRTP for tables.
Renaming serialize -> serialize_impl helped tracking down an error in
the connection implementation examples
2013-10-03 22:25:23 +02:00
Roland Bock
4d8e448152 Disabled select(tab). Use select(all_of(tab)) instead. 2013-10-03 21:36:50 +02:00
Roland Bock
96c6e5d435 Dynamic methods of select, insert and co return *this now.
Not sure if chaining makes much sense, but it is possible now
2013-10-03 20:53:55 +02:00
Roland Bock
bd337954fa Deleted unused struct 2013-10-02 19:45:58 +02:00
Roland Bock
1a8ea5a3b3 Re-wrote in()/not_in() to use a specific template and removed the generic nary member function template
The specific version is easier to understand and could be adjusted more
easily if some database should not support it...
2013-10-02 10:55:36 +02:00
Roland Bock
7fde9dafb2 Cleaned up a bunch of unused expression templates 2013-10-02 07:40:26 +02:00
Roland Bock
a2d23006f0 Fixed ambiguous assignment operator 2013-10-02 07:32:28 +02:00
Roland Bock
2e7d5478f6 Added dynamic functions to insert, remove and update 2013-09-30 07:46:50 +02:00
Roland Bock
d0d5fd2969 Replaced tag_yes and tag_no by std::true_type and std::false_type 2013-09-29 09:02:51 +02:00
Roland Bock
581353dc53 Streamlined some typenames 2013-09-29 08:51:29 +02:00
Roland Bock
3d777d982a Added missing file offset.h 2013-09-27 10:59:09 +02:00
Roland Bock
75447a2959 Fixed compile bug in gcc-4.8 2013-09-27 10:58:41 +02:00
Roland Bock
5604d5d663 Added dynamic limit and offset 2013-09-26 18:54:52 +02:00
Roland Bock
716996db51 Added dynamic versions of group_by, having and order_by 2013-09-22 21:29:53 +02:00
Roland Bock
472833016f Added dynamic versions of from and where to select 2013-09-22 20:42:19 +02:00
Roland Bock
5576df1775 Cleaned up select_pseudo_table and started to prepare for dynamic select parts 2013-09-22 12:16:28 +02:00
Roland Bock
950859af5f Rewrote macro generated function code to handwritten code
This increases the number of Bytes, but it also increases readability,
and reduces complexity.
It also allows to specialize functions for database engines.
2013-09-19 17:07:14 +02:00
Roland Bock
0db405c28c Rewrote like() member function, added more type control to concat() 2013-09-19 09:04:07 +02:00
Roland Bock
1ab504f908 Fixed compile time checks for concat 2013-09-19 08:15:19 +02:00