No real changes, just remove trailing whitespace.

Insignificant trailing whitespace was annoying as it resulted in extra noise
in the diffs, just get rid of it everywhere at once.
This commit is contained in:
Mateusz Łoskot
2015-04-10 11:36:56 +02:00
parent ef6d90dcc3
commit 56d3aa6f18
9 changed files with 33 additions and 33 deletions

View File

@@ -72,7 +72,7 @@ Tomasz Olszewski
Vaclav Slavik
xol
There are a lot of people that help to drive SOCI project forward,
There are a lot of people that help to drive SOCI project forward,
if we have forgot to mention someone in here,
if you would like to be listed by name instead of GitHub username,
send us an email!

View File

@@ -72,7 +72,7 @@ include(SociDependencies)
get_property(SOCI_INCLUDE_DIRS DIRECTORY ${CMAKE_SOURCE_DIR}
PROPERTY INCLUDE_DIRECTORIES)
if(Threads_FOUND)
list(APPEND SOCI_CORE_DEPS_LIBS ${CMAKE_THREAD_LIBS_INIT})
else()

View File

@@ -131,14 +131,14 @@ std::copy(rs.begin(), rs.end(), std::ostream_iterator<std::string>(std::co
<h3 id="bulk">Bulk operations</h3>
<p>When using some databases, further performance improvements may be possible by
having the underlying database API group operations together to reduce network roundtrips.
<p>When using some databases, further performance improvements may be possible by
having the underlying database API group operations together to reduce network roundtrips.
SOCI makes such bulk operations possible by supporting <code>std::vector</code>
based types.</p>
<p>The following example presents how to insert 100 records in 4 batches.
It is also important to note, that size of vector remains equal in every batch interaction.
This ensures vector is not reallocated and, what's crucial for the bulk trick, new data
<p>The following example presents how to insert 100 records in 4 batches.
It is also important to note, that size of vector remains equal in every batch interaction.
This ensures vector is not reallocated and, what's crucial for the bulk trick, new data
should be pushed to the vector before every call to <code>statement::execute</code>:</p>
<pre class="example">

View File

@@ -23,7 +23,7 @@ namespace details
class use_type_vector: public std::vector<use_type_base *>
{
public:
~use_type_vector()
~use_type_vector()
{
for(iterator iter = begin(), _end = end();
iter != _end; iter++)
@@ -31,7 +31,7 @@ public:
}
void exchange(use_type_ptr const& u) { push_back(u.get()); u.release(); }
template <typename T, typename Indicator>
void exchange(use_container<T, Indicator> const &uc)
{
@@ -96,11 +96,11 @@ private:
template <typename T>
void exchange_(use_container<T, details::no_indicator> const &uc, ...)
{ exchange(do_use(uc.t, uc.name, typename details::exchange_traits<T>::type_family())); }
template <typename T, typename Indicator>
void exchange_(use_container<const T, Indicator> const &uc, ...)
{ exchange(do_use(uc.t, uc.ind, uc.name, typename details::exchange_traits<T>::type_family())); }
template <typename T>
void exchange_(use_container<const T, details::no_indicator> const &uc, ...)
{ exchange(do_use(uc.t, uc.name, typename details::exchange_traits<T>::type_family())); }
@@ -109,7 +109,7 @@ private:
class into_type_vector: public std::vector<details::into_type_base *>
{
public:
~into_type_vector()
~into_type_vector()
{
for(iterator iter = begin(), _end = end();
iter != _end; iter++)
@@ -127,7 +127,7 @@ public:
exchange_(ic, NULL);
#endif // HAVE_BOOST
}
private:
#ifdef HAVE_BOOST
template <typename T, typename Indicator>
@@ -180,7 +180,7 @@ private:
template <typename T>
void exchange_(into_container<T, details::no_indicator> const &ic, ...)
{ exchange(do_into(ic.t, typename details::exchange_traits<T>::type_family())); }
{ exchange(do_into(ic.t, typename details::exchange_traits<T>::type_family())); }
};
} // namespace details

View File

@@ -37,7 +37,7 @@ public:
}
prepare_temp_type & operator,(into_type_ptr const & i);
template <typename T, typename Indicator>
prepare_temp_type &operator,(into_container<T, Indicator> const &ic)
{

View File

@@ -52,7 +52,7 @@ public:
template <typename T, typename Indicator>
void exchange(use_container<T, Indicator> const &uc)
{ uses_.exchange(uc); }
void clean_up();
void prepare(std::string const & query,
@@ -116,7 +116,7 @@ private:
}
intos_.exchange(i);
int definePosition = 1;
for(into_type_vector::iterator iter = intos_.begin(),
end = intos_.end();
@@ -229,7 +229,7 @@ public:
void describe() { impl_->describe(); }
void set_row(row * r) { impl_->set_row(r); }
template <typename T, typename Indicator>
void exchange_for_rowset(details::into_container<T, Indicator> const & ic)
{

View File

@@ -60,12 +60,12 @@ details::use_container<const T, indicator> use(T const &t, indicator & ind, std:
// vector containers
template <typename T>
details::use_container<T, std::vector<indicator> >
details::use_container<T, std::vector<indicator> >
use(T &t, std::vector<indicator> & ind, const std::string &name = std::string())
{ return details::use_container<T, std::vector<indicator> >(t, ind, name); }
template <typename T>
details::use_container<std::vector<T>, details::no_indicator >
details::use_container<std::vector<T>, details::no_indicator >
use(std::vector<T> &t, const std::string &name = std::string())
{ return details::use_container<std::vector<T>, details::no_indicator>(t, name); }

View File

@@ -836,7 +836,7 @@ void test15()
sql << "select @a := 123", into(n);
assert(n == 123);
}
std::cout << "test 15 passed" << std::endl;
}

View File

@@ -37,7 +37,7 @@ C++ code, staying entirely within the Standard C++.</p>
databases in the most natural and intuitive way. If you find existing
libraries too difficult for your needs or just distracting, SOCI can be
a good alternative.</p>
<p>The simplest motivating code example for the SQL query that is supposed
to retrieve a single row is:</p>
<pre>
@@ -69,9 +69,9 @@ copy(rs.begin(), rs.end(), ostream_iterator&lt;string&gt;(cout, "\n"));</span>
<p>SOCI offers also extensive integration with Boost datatypes (optional, tuple and fusion) and flexible support
for user-defined datatypes.</p>
<p>Even though SOCI is mainly a C++ library, it also allows to use it from other programming languages. Currently the package contains the Ada binding, with more bindings likely to come in the future.</p>
<p>Starting from its 2.0.0 release, SOCI uses the plug-in architecture for
backends - this allows to target various database servers.
Currently (3.2.3), the following database systems are supported:</p>
@@ -98,10 +98,10 @@ Software License</a>.</p>
<p>All SOCI downloads are hosted on SourceForge.net servers. The current
stable release (3.2.3) can be downloaded <a href="https://sourceforge.net/p/soci/" target="_blank">here</a>,
and all previous releases are available
and all previous releases are available
<a href="http://sourceforge.net/project/showfiles.php?group_id=121480" target="_blank">here</a>.</p>
<p>The development of SOCI happens on GitHub. All repositories live
<p>The development of SOCI happens on GitHub. All repositories live
under the <a target="_blank" href="http://github.com/organizations/SOCI">SOCI</a>
organization where all Git repositories are available.</p>
@@ -110,20 +110,20 @@ organization where all Git repositories are available.</p>
$ git clone git://github.com/SOCI/soci.git
</pre>
<p>The <a href="https://github.com/SOCI/soci/issues">Issues</a> tracker is open
<p>The <a href="https://github.com/SOCI/soci/issues">Issues</a> tracker is open
for bug reports and patches submission.</p>
<p>The best way to contribute to SOCI is to follow the typical GitHub workflow:
<p>The best way to contribute to SOCI is to follow the typical GitHub workflow:
fork SOCI, apply your edits and submit <a href="https://github.com/SOCI/soci/pulls">Pull Request</a>.
<br /> Feel free to join SOCI development!</p>
<p>To meet other users, please consider subscribing to the
<a target="_blank" href="https://lists.sourceforge.net/lists/listinfo/soci-users">SOCI-users mailing list</a>.
There is also <a target="_blank" href="https://lists.sourceforge.net/lists/listinfo/soci-devel">SOCI-devel mailing list</a>
<p>To meet other users, please consider subscribing to the
<a target="_blank" href="https://lists.sourceforge.net/lists/listinfo/soci-users">SOCI-users mailing list</a>.
There is also <a target="_blank" href="https://lists.sourceforge.net/lists/listinfo/soci-devel">SOCI-devel mailing list</a>
available dedicated to development discussions only.</p>
<p>There is also community-driven <a target="_blank" href="https://github.com/SOCI/soci/wiki/">Wiki</a>
and <a target="_blank" href="https://github.com/SOCI/soci/wiki/FAQ">FAQ</a> hosted at GitHub, where everybody
<p>There is also community-driven <a target="_blank" href="https://github.com/SOCI/soci/wiki/">Wiki</a>
and <a target="_blank" href="https://github.com/SOCI/soci/wiki/FAQ">FAQ</a> hosted at GitHub, where everybody
is welcome to contribute.</p>
</td>
</tr>