diff --git a/AUTHORS b/AUTHORS index f7790053..0b4d5487 100644 --- a/AUTHORS +++ b/AUTHORS @@ -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! diff --git a/CMakeLists.txt b/CMakeLists.txt index bbef7811..e8d78f9b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() diff --git a/docs/statements.html b/docs/statements.html index 61cf2c0d..0da984af 100644 --- a/docs/statements.html +++ b/docs/statements.html @@ -131,14 +131,14 @@ std::copy(rs.begin(), rs.end(), std::ostream_iterator<std::string>(std::co

Bulk operations

-

When using some databases, further performance improvements may be possible by -having the underlying database API group operations together to reduce network roundtrips. +

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 std::vector based types.

-

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 +

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 statement::execute:

diff --git a/include/soci/bind-values.h b/include/soci/bind-values.h
index 3b3911b9..9fed1dc7 100644
--- a/include/soci/bind-values.h
+++ b/include/soci/bind-values.h
@@ -23,7 +23,7 @@ namespace details
 class use_type_vector: public std::vector
 {
 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 
     void exchange(use_container const &uc)
     {
@@ -96,11 +96,11 @@ private:
     template 
     void exchange_(use_container const &uc, ...)
     { exchange(do_use(uc.t, uc.name, typename details::exchange_traits::type_family())); }
-        
+
     template 
     void exchange_(use_container const &uc, ...)
     { exchange(do_use(uc.t, uc.ind, uc.name, typename details::exchange_traits::type_family())); }
-        
+
     template 
     void exchange_(use_container const &uc, ...)
     { exchange(do_use(uc.t, uc.name, typename details::exchange_traits::type_family())); }
@@ -109,7 +109,7 @@ private:
 class into_type_vector: public std::vector
 {
 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 
@@ -180,7 +180,7 @@ private:
 
     template 
     void exchange_(into_container const &ic, ...)
-    { exchange(do_into(ic.t, typename details::exchange_traits::type_family())); }        
+    { exchange(do_into(ic.t, typename details::exchange_traits::type_family())); }
 };
 
 } // namespace details
diff --git a/include/soci/prepare-temp-type.h b/include/soci/prepare-temp-type.h
index 65b456fd..52c183d4 100644
--- a/include/soci/prepare-temp-type.h
+++ b/include/soci/prepare-temp-type.h
@@ -37,7 +37,7 @@ public:
     }
 
     prepare_temp_type & operator,(into_type_ptr const & i);
-    
+
     template 
     prepare_temp_type &operator,(into_container const &ic)
     {
diff --git a/include/soci/statement.h b/include/soci/statement.h
index f5a75aad..f09cb692 100644
--- a/include/soci/statement.h
+++ b/include/soci/statement.h
@@ -52,7 +52,7 @@ public:
     template 
     void exchange(use_container 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 
     void exchange_for_rowset(details::into_container const & ic)
     {
diff --git a/include/soci/use.h b/include/soci/use.h
index 28a710bc..17521586 100644
--- a/include/soci/use.h
+++ b/include/soci/use.h
@@ -60,12 +60,12 @@ details::use_container use(T const &t, indicator & ind, std:
 
 // vector containers
 template 
-details::use_container > 
+details::use_container >
     use(T &t, std::vector & ind, const std::string &name = std::string())
 { return details::use_container >(t, ind, name); }
 
 template 
-details::use_container, details::no_indicator > 
+details::use_container, details::no_indicator >
     use(std::vector &t, const std::string &name = std::string())
 { return details::use_container, details::no_indicator>(t, name); }
 
diff --git a/tests/mysql/test-mysql.cpp b/tests/mysql/test-mysql.cpp
index d549eaad..65c574d6 100644
--- a/tests/mysql/test-mysql.cpp
+++ b/tests/mysql/test-mysql.cpp
@@ -836,7 +836,7 @@ void test15()
         sql << "select @a := 123", into(n);
         assert(n == 123);
     }
-    
+
     std::cout << "test 15 passed" << std::endl;
 }
 
diff --git a/www/index.html b/www/index.html
index 500847bd..cb836da6 100644
--- a/www/index.html
+++ b/www/index.html
@@ -37,7 +37,7 @@ C++ code, staying entirely within the Standard C++.

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.

- +

The simplest motivating code example for the SQL query that is supposed to retrieve a single row is:

@@ -69,9 +69,9 @@ copy(rs.begin(), rs.end(), ostream_iterator<string>(cout, "\n"));
 
 

SOCI offers also extensive integration with Boost datatypes (optional, tuple and fusion) and flexible support for user-defined datatypes.

- +

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.

- +

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:

@@ -98,10 +98,10 @@ Software License.

All SOCI downloads are hosted on SourceForge.net servers. The current stable release (3.2.3) can be downloaded here, -and all previous releases are available +and all previous releases are available here.

-

The development of SOCI happens on GitHub. All repositories live +

The development of SOCI happens on GitHub. All repositories live under the SOCI organization where all Git repositories are available.

@@ -110,20 +110,20 @@ organization where all Git repositories are available.

$ git clone git://github.com/SOCI/soci.git
-

The Issues tracker is open +

The Issues tracker is open for bug reports and patches submission.

-

The best way to contribute to SOCI is to follow the typical GitHub workflow: +

The best way to contribute to SOCI is to follow the typical GitHub workflow: fork SOCI, apply your edits and submit Pull Request.
Feel free to join SOCI development!

-

To meet other users, please consider subscribing to the -SOCI-users mailing list. -There is also SOCI-devel mailing list +

To meet other users, please consider subscribing to the +SOCI-users mailing list. +There is also SOCI-devel mailing list available dedicated to development discussions only.

-

There is also community-driven Wiki -and FAQ hosted at GitHub, where everybody +

There is also community-driven Wiki +and FAQ hosted at GitHub, where everybody is welcome to contribute.