0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00
Commit Graph

195 Commits

Author SHA1 Message Date
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
db26a88031 Merge tag '0.8' into develop
Added verbatim tables.
Aligned static and dynamic method signatures.
2013-11-18 07:36:45 +01:00
Roland Bock
82c0a9849a Merge branch 'release/0.8' 2013-11-18 07:35:02 +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
0ad689c116 Merge tag '0.7' into develop
Fixed compiler errors and warnings for clang.
Smaller memory footprint for non-dynamic cases.
2013-11-15 10:11:12 +01:00
Roland Bock
a5643cf847 Merge branch 'release/0.7' 2013-11-15 10:10:03 +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
85f2a97649 Added link to postgreSQL connector 2013-11-12 18:44:16 +01:00
Roland Bock
fd3e0428cd Added link to postgreSQL connector 2013-11-12 18:40:35 +01:00
Roland Bock
ce998ff46a Merge tag '0.6' into develop
Release 0.6

Mainly a bug fix release (insert did not work at all).
2013-11-10 18:07:05 +01:00
Roland Bock
1152a61382 Merge branch 'release/0.6' 2013-11-10 18:06:15 +01:00
Roland Bock
a0af42e57e Added a few more type tests. 2013-11-10 18:03:39 +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
aa5c2c90a6 Updated connector API 2013-11-04 08:02:39 +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
21c5de2eca Fixed small documentation bug 2013-10-02 07:34:37 +02:00
Roland Bock
a2d23006f0 Fixed ambiguous assignment operator 2013-10-02 07:32:28 +02:00
Roland Bock
fd51066e70 Fixed outdated code example in README 2013-10-01 07:05:12 +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