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

17 Commits

Author SHA1 Message Date
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
Roland Bock
7050491bf0 Added support for dynamic columns 2013-10-29 19:32:52 +01:00
Roland Bock
161da75723 Stripped a lot of superfluouos type information from result rows.
Moved member template into name class to utilize the fact the class
aliases are really just aliases.
This makes the code leaner in many cases and less complex for the compiler
(I guess). It also has the benefit, that the field name is available as
string in the result_rows. This might be useful for debugging one day.
2013-09-13 09:18:15 +02:00
Roland Bock
2defeff18e Introduced field template to make result_row_t less specific.
It is sufficient to have name and type. There is no need for the result
"to know" what exact expression was used to define the column.

Surprisingly, template alias creates new templates (in contrast to
non-template using, which really just creates an alias of a type).

template<typename T> struct A{};

struct X
{
  template<typename T>
    using U = A<T>;
};

struct Y
{
  template<typename T>
    using U = A<T>;
  template<>
    using U<int> = X;
};

template<template<typename> class X>
struct Z{};

static_assert(std::is_same<X::U<int>, Y::U<int>>::value, "class aliases are really just aliases");
static_assert(not std::is_same<Z<X::U>, Z<Y::U>>::value, "template aliases are new templates");

int main()
{
}
2013-09-13 07:24:41 +02:00
Roland Bock
e6f086bbfa Cleaned up directory structure. 2013-08-14 06:34:11 +02:00