rbock
1f20d244c7
Added improved check for potential name duplicates in from()
2014-06-26 18:56:07 +02:00
rbock
1267aa252f
Added _check_consistency call to all statement parts
...
For instance, enforce where() to be called
2014-06-24 21:53:25 +02:00
rbock
0b27373314
Adjusted code to work with g++-4.8 as well
2014-06-22 23:37:43 +02:00
rbock
1d82cf7f09
Fixed a bunch of bugs that came up when integrating with mySQL again.
...
Thanks Matthijs!
2014-06-20 16:53:52 +02:00
rbock
4ce8f2419b
All tests compile again for clang-3.2
2014-06-14 17:57:12 +02:00
rbock
3d26f9a686
Re-animated prepared statements
2014-06-14 17:44:22 +02:00
rbock
269f2e7e17
Fixed indentations
2014-06-14 07:45:10 +02:00
rbock
09d220541e
removed namespace vendor
2014-06-14 07:43:27 +02:00
rbock
060d59125c
Moved files from sqlpp11/vendor to sqlpp11
2014-06-13 18:51:51 +02:00
rbock
4d1b60d93a
Cleanup
...
Moved check_consistency call to statement
2014-06-13 09:33:08 +02:00
rbock
f8e0e90477
Fixed serializability of statements
2014-06-09 14:06:04 +02:00
rbock
c866f31ea5
Turned remove into a generic statement
2014-06-03 09:12:27 +02:00
rbock
d11f529bd8
Minor cleanup.
2014-05-26 07:42:59 +02:00
rbock
2a215905fd
Migrated remove to being variadic
2014-05-23 20:36:13 +02:00
rbock
f47ef75c24
Added a few checks to insert, update and remove
2014-04-22 22:21:44 +02:00
rbock
0ffd93108b
Added a table consistency checks to several dynamic methods
2014-04-22 20:46:32 +02:00
rbock
7e78c0d878
Migrated update to inheritance model
2014-04-10 21:20:37 +02:00
rbock
d2b59c0f59
Some cleanup
2014-04-10 20:20:59 +02:00
rbock
7f94002bec
Migrated remove to use inherited methods
2014-04-10 18:59:05 +02:00
rbock
bef4d0874b
Updates copyright year
2014-03-27 16:43:36 +01:00
rbock
1a347048df
Migrated remove and update to using arg_selector
2014-03-27 08:37:05 +01:00
rbock
abf4bb8e9a
Added serializer to interpreter
...
The serializer has partial specializations for all templates. It is a
good basis if the connector/database requires strings close to the
standard.
The interpreter is unspecialized (and uses a static assert to say so).
It is a good basis if the connector/database requires a different
interpretation, e.g. re-writing the expression tree.
The interpretable_t implements three methods for interpretation:
serializing with the sqlpp::serializer_context, serializing with the
database's serialization context and interpretation with the database's
interpretation context.
2014-02-18 17:45:08 +01:00
rbock
1d5ee2068d
Fixed a bunch of bugs found while adjusting the mysql connector
2014-02-16 13:16:09 +01:00
rbock
54687c5e69
Added a bunch of static asserts to prevent misuse of insert and update
...
There are quite a few more to be inserted
2014-02-10 17:56:16 +01:00
rbock
22c43358f2
All statements back to composite design
...
The point is that even though the CRTP code looked nice, it was too hard
to comprehend.
2014-02-09 23:30:30 +01:00
rbock
cc76820870
Migrated insert and remove back to composite design
2014-02-09 18:14:52 +01:00
rbock
3c6e7cb89a
Fixed a bunch of smaller migration errors
2014-02-08 22:24:05 +01:00
rbock
68750aac80
Refactored insert to use policies
...
Much cleaner now.
2014-02-08 21:06:23 +01:00
rbock
f7aa56b7dc
Fixed possible dangling references problem
2014-02-08 00:43:20 +01:00
rbock
9c4832df0f
Switched remove to policy based design.
...
A lot of sweating to figure out how to do it, but now it looks MUCH
cleaner and it is probably a lot easier to extend :-)
2014-02-07 21:25:23 +01:00
rbock
9c75c7b873
Removed a whole lot of unnecessary(?) perfect forwarding.
...
The code is much easier to read, the optimizer should take care of
pretty much everything, AND it copiles even faster without the code
being riddled with std::forward and std::decay
2014-01-30 08:43:55 +01:00
rbock
b90eb7192a
Renamed run and prepare methods to _run and _prepare
...
_methods are to be used by vendors
2014-01-29 13:11:11 +01:00
rbock
375dec25f8
Minor code cleanup
2014-01-28 18:03:14 +01:00
rbock
019a920739
Added a .where(bool) to choose all or no row
2014-01-22 22:53:23 +01:00
rbock
63ac89accb
Fixed some "const" bugs and a parameter_tuple bug
2014-01-18 22:40:13 +01:00
rbock
87302fa27f
Make g++-4.8 compile again
2014-01-18 16:10:46 +01:00
rbock
312e735d6d
Moved a bunch of things into namespace vendor
...
This namespace is for things the developer will not get in touch with
(normally) but the vendor might need to use for specialization of the
interpreter.
This separation is not fully completed yet, some changes will have to
follow...
2014-01-18 15:50:16 +01:00
rbock
54d45e97ae
Added interpret support for remove()
2014-01-15 08:24:42 +01:00
rbock
602f33726f
interpreter added for update()
2014-01-15 07:22:54 +01:00
rbock
a68d6fb828
Prepared insert/update/delete now work with the mysql connector
2014-01-09 22:33:23 +01:00
rbock
121f56549b
Added prepared statement support to insert, update and remove (untested yet)
2014-01-08 22:14:16 +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
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
2e7d5478f6
Added dynamic functions to insert, remove and update
2013-09-30 07:46:50 +02:00
Roland Bock
581353dc53
Streamlined some typenames
2013-09-29 08:51:29 +02:00
Roland Bock
4ea28cac4b
Added support for g++-4.8
2013-08-15 11:54:20 +02:00
Roland Bock
e6f086bbfa
Cleaned up directory structure.
2013-08-14 06:34:11 +02:00