rbock
fa8cb7b0af
Replaced field_spec_t::is_compatible function with a class template.
...
Also removed two stand-alone union functions which did not work anyway.
Let's see if MSVC is happy now.
2016-12-25 12:20:00 +01:00
rbock
1b9a4b1594
Replace is_compatible function with class template
...
MSVC choked on that function (claimed that the number of arguments was
incorrect)
2016-12-25 10:44:22 +01:00
rbock
fa0fe887b5
Slightly better comparison of row types for unions.
...
Needs some work for non-static versions
2016-10-10 22:25:53 +02:00
rbock
57797ffffa
Added for_each_field function
2016-08-17 09:51:24 +02:00
rbock
d3debe4229
Fixed constructor of result_row.
...
This accepted just any(!) argument.
2016-01-23 22:04:55 +01:00
rbock
f029e5993b
Allow in() and not_in() to have zero arguments
...
This is then equivalent to in(value_list(some_empty_vector)) and
not_in(value_list(some_empty_vector):
tab.a.in() evaluates to false
tab.a.not_in() evaluates to true
2015-12-19 15:15:04 +01:00
rbock
929a543d8c
Minor cleanup
2015-11-01 11:22:56 +01:00
rbock
3cbeb8b196
Eliminated redundant ValueType parameter from result_field_t
...
Got rid of a bunch of static_asserts checking that the redundant
parameter actually matched.
Also discovered that serveral result_field operator<< specializations
were unnecessary (removed those).
2015-11-01 11:10:33 +01:00
rbock
173d6adbc9
Moved data types into separate folder, split boolean
...
Each file within data_types/boolean/ is relatively short and easy to
grok.
2015-10-29 22:21:46 +01:00
rbock
09f23cea0a
Reformatted using clang-format
...
Please use clang-format before submitting code, e.g via the pre-commit
supplied in the repo (thanks AndiDog)
2015-09-13 21:33:19 +02:00
Reto Schneider
5756b2355f
Remove trailing spaces.
2015-08-05 14:43:21 +02:00
rbock
cdf86695d1
Fixed a bunch of shadowing warnings issued by g++
...
A bit over the top in some places, I think
2015-03-21 11:41:07 +01:00
rbock
1e9910b12f
Replaced node tuple by node type vector
2015-02-17 08:03:19 +01:00
rbock
436ef67072
Replaced recursive traits with local traits which are evaluated recursively
...
Ok, that sounds weird...
Earlier, each node in the SQL tree had a struct containing all recursive
traits. This is now gone. It only contains a reference to all sub nodes
and its own specific traits.
2015-02-17 07:05:41 +01:00
rbock
97de6fad7f
Adjusted license dates
2015-02-15 19:00:21 +01:00
rbock
12a0d9d698
cte.h compiles
2015-01-27 08:29:10 +01:00
rbock
08de44e8a8
Union works with static results only
2015-01-19 09:16:41 +01:00
rbock
74cafe35dd
We now have unique name representations per name
...
Before this, there could be multiple classes representing multiple id
columns. Now there is one class representing ALL the name "id". Very
important for analyzing potential name clashes.
2014-11-30 19:40:34 +01:00
rbock
f478e7c8e8
Applied new member_t to remaining places
2014-08-25 18:31:01 +02:00
rbock
a59d7ed381
Fixed bug in field index calculation for multi_fields
2014-08-09 20:46:40 +02:00
rbock
88d28d6830
Moved value types out of detail namespace
2014-07-31 08:40:13 +02:00
rbock
f60f1504b8
Extracted result_field_t from value types.
...
This is a preparation for adding serializer specializations for them
2014-07-30 22:37:07 +02:00
rbock
dd33b8096e
Streamlined type traits a bit
2014-07-28 06:54:54 +02:00
rbock
c3d758c776
Renamed _result_entry_t to _result_field_t
2014-07-25 15:33:26 +02:00
rbock
4bf0db5611
Renamed field to field_spec
2014-07-25 15:20:19 +02:00
rbock
e21fdb4829
Transport null_is_trivial_value and can_be_null to result fields
2014-07-24 23:02:08 +02:00
rbock
2f20f7ef82
Renamed bind and (in)validate to indicate their usage (vendor only)
2014-06-29 11:35:51 +02:00
rbock
c2d00b14ec
Removed char_result_row from result_row
2014-06-27 18:40:57 +02:00
rbock
620f9bef29
Fixed dynamic rows for bind_results
2014-06-27 18:11:12 +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
d062c1a0d8
Started to rewrite traits and recursive traits
...
traits are shorter and easier to identify by using tags in a variadic
template
recursive traits can be automatically derived, which makes it much
easier to add new traits to be handed through the expression tree.
2014-05-15 08:00:03 +02:00
rbock
57239d10ed
Rewrote result_row implementation to be non-recursive
...
Cool. This is so much easier to understand now!
2014-05-07 23:56:12 +02:00
rbock
bef4d0874b
Updates copyright year
2014-03-27 16:43:36 +01:00
rbock
8c8b95d14e
Added template parameter Db to result_entry
2014-02-21 07:24:07 +01:00
rbock
b7935b61d5
Added some (no-op) statement executions
2014-02-21 06:02:49 +01:00
rbock
25c1cfb399
Cleanup some minor bind issues
2014-01-28 06:50:21 +01:00
rbock
dda4fc2586
Small fix in result row
2014-01-27 12:12:38 +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
Roland Bock
c140e13510
Small fix for dynamic results and a hint for positional parameters
2014-01-04 18:26:11 +01:00
Roland Bock
099250945c
Successfully running the first prepared select statement including result evaluation
2014-01-03 14:27:06 +01:00
Roland Bock
6e5ee56577
prepared to detemplatify connector results
2014-01-02 20:20:58 +01:00
Roland Bock
9ca174054d
Can bind results.
2014-01-02 19:05:27 +01:00
Roland Bock
1360b1d9db
Turned value_type::parameter_t into a non-template
2014-01-02 13:11:19 +01:00
Roland Bock
9d0746b15c
Can now bind integral parameters and execute prepared queries
2013-12-29 20:31:59 +01:00
Roland Bock
3ef3faa0f4
Fixed bug in dynamic result row.
2013-12-18 08:19:50 +01:00
Roland Bock
a915bd9e50
Refactored of result and result row (clearer structure depending on connectors)
2013-12-17 22:12:13 +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
a17a8ecfa6
Reduced resource requirements for non-dynamic selects
2013-10-31 09:43:10 +01:00